From dfeb3db003d724a1c980329dab9cbfae55b7f589 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 6 Jul 2020 23:58:15 +0200 Subject: Use `default_font_size` for `TextInput` widget --- graphics/src/widget/text_input.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'graphics') 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 text_input::Renderer for Renderer where B: Backend + backend::Text, { - type Font = Font; type Style = Box; - 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(); -- cgit