diff options
author | 2020-04-23 22:17:11 +0200 | |
---|---|---|
committer | 2020-04-23 22:17:11 +0200 | |
commit | 0300b649d7f99bd63494a9672e3a295bca7ec5d7 (patch) | |
tree | 5c8371294c946bf3cf453aa9c04fd4937031e71b /native/src/widget/checkbox.rs | |
parent | 6786b8a3aaf87bd9875b2253ac0986f050cc8445 (diff) | |
download | iced-0300b649d7f99bd63494a9672e3a295bca7ec5d7.tar.gz iced-0300b649d7f99bd63494a9672e3a295bca7ec5d7.tar.bz2 iced-0300b649d7f99bd63494a9672e3a295bca7ec5d7.zip |
Make `Font` an associated type of `text::Renderer`
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r-- | native/src/widget/checkbox.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index d611993f..4d167df7 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -3,7 +3,7 @@ use std::hash::Hash; use crate::{ input::{mouse, ButtonState}, - layout, row, text, Align, Clipboard, Element, Event, Font, Hasher, + layout, row, text, Align, Clipboard, Element, Event, Hasher, HorizontalAlignment, Layout, Length, Point, Rectangle, Row, Text, VerticalAlignment, Widget, }; @@ -186,7 +186,7 @@ where label_layout.bounds(), &self.label, self.text_size, - Font::Default, + Default::default(), None, HorizontalAlignment::Left, VerticalAlignment::Center, |