Move DEFAULT_HEIGHT constant to Renderer

Also fixes some minor documentation issues.
This commit is contained in:
Héctor Ramón Jiménez 2020-01-03 18:23:19 +01:00
parent 0b663ca82a
commit 9116afaf59
2 changed files with 22 additions and 19 deletions

View file

@ -2,6 +2,8 @@ use crate::{Primitive, Renderer};
use iced_native::{progress_bar, Background, Color, MouseCursor, Rectangle};
impl progress_bar::Renderer for Renderer {
const DEFAULT_HEIGHT: u16 = 30;
fn draw(
&self,
bounds: Rectangle,