Use default_font_size for TextInput widget
This commit is contained in:
parent
946bbd2683
commit
dfeb3db003
3 changed files with 7 additions and 26 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue