diff options
author | 2020-07-06 23:58:15 +0200 | |
---|---|---|
committer | 2020-07-06 23:58:15 +0200 | |
commit | dfeb3db003d724a1c980329dab9cbfae55b7f589 (patch) | |
tree | b23c83af87ffa59770971eafbc2843e1053f1adc /graphics | |
parent | 946bbd26835fef21b770c1ae56921fb4d8512287 (diff) | |
download | iced-dfeb3db003d724a1c980329dab9cbfae55b7f589.tar.gz iced-dfeb3db003d724a1c980329dab9cbfae55b7f589.tar.bz2 iced-dfeb3db003d724a1c980329dab9cbfae55b7f589.zip |
Use `default_font_size` for `TextInput` widget
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/text_input.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/graphics/src/widget/text_input.rs b/graphics/src/widget/text_input.rs index f13f6606..575d67f5 100644 --- a/graphics/src/widget/text_input.rs +++ b/graphics/src/widget/text_input.rs @@ -27,14 +27,8 @@ impl<B> text_input::Renderer for Renderer<B> where B: Backend + backend::Text, { - type Font = Font; type Style = Box<dyn StyleSheet>; - fn default_size(&self) -> u16 { - // TODO: Make this configurable - 20 - } - fn measure_value(&self, value: &str, size: u16, font: Font) -> f32 { let backend = self.backend(); |