diff options
author | 2020-07-08 07:04:20 +0200 | |
---|---|---|
committer | 2020-07-08 11:29:21 +0200 | |
commit | 69ac47f463fd5c392f1f8e788fcf89b1a76abcae (patch) | |
tree | f4a4f6618766acd15d1d7ca726668c07ec9857dc /graphics/src/overlay | |
parent | 1c12bad866d06b320f16609576d5937413418a0c (diff) | |
download | iced-69ac47f463fd5c392f1f8e788fcf89b1a76abcae.tar.gz iced-69ac47f463fd5c392f1f8e788fcf89b1a76abcae.tar.bz2 iced-69ac47f463fd5c392f1f8e788fcf89b1a76abcae.zip |
Implement `font` method for `ComboBox`
Diffstat (limited to 'graphics/src/overlay')
-rw-r--r-- | graphics/src/overlay/menu.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/src/overlay/menu.rs b/graphics/src/overlay/menu.rs index 914baa6a..89a9cd03 100644 --- a/graphics/src/overlay/menu.rs +++ b/graphics/src/overlay/menu.rs @@ -43,8 +43,9 @@ where cursor_position: Point, options: &[T], hovered_option: Option<usize>, - text_size: u16, padding: u16, + text_size: u16, + font: Font, style: &Style, ) -> Self::Output { use std::f32; @@ -83,7 +84,7 @@ where ..bounds }, size: f32::from(text_size), - font: Font::Default, + font, color: if is_selected { style.selected_text_color } else { |