summaryrefslogtreecommitdiffstats
path: root/native/src/widget/checkbox.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-04-24 19:45:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-24 19:45:48 +0200
commit70081c96496ec58563150fe32ee2c4e2a0d46e6a (patch)
tree5c8371294c946bf3cf453aa9c04fd4937031e71b /native/src/widget/checkbox.rs
parent3375824630949f4a2e9b532ef8ad8de0458a8541 (diff)
parent0300b649d7f99bd63494a9672e3a295bca7ec5d7 (diff)
downloadiced-70081c96496ec58563150fe32ee2c4e2a0d46e6a.tar.gz
iced-70081c96496ec58563150fe32ee2c4e2a0d46e6a.tar.bz2
iced-70081c96496ec58563150fe32ee2c4e2a0d46e6a.zip
Merge pull request #318 from hecrj/font-associated-type
Make `Font` an associated type of `text::Renderer`
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r--native/src/widget/checkbox.rs4
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,