summaryrefslogtreecommitdiffstats
path: root/glow
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-11 20:41:11 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-07-08 11:19:56 +0200
commit61f22b1db23f3495145a9a4f7255311fe8381998 (patch)
tree925db905f29c3df13cf6e7480672d2a294ce10c7 /glow
parent0ff5a02550e5d5de8fb5fd0643ea424d9e508888 (diff)
downloadiced-61f22b1db23f3495145a9a4f7255311fe8381998.tar.gz
iced-61f22b1db23f3495145a9a4f7255311fe8381998.tar.bz2
iced-61f22b1db23f3495145a9a4f7255311fe8381998.zip
Add styling support for `ComboBox` and `Menu`
Diffstat (limited to 'glow')
-rw-r--r--glow/src/widget/combo_box.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/glow/src/widget/combo_box.rs b/glow/src/widget/combo_box.rs
index bb3931ef..bfface29 100644
--- a/glow/src/widget/combo_box.rs
+++ b/glow/src/widget/combo_box.rs
@@ -1,3 +1,8 @@
pub use iced_native::combo_box::State;
-pub type ComboBox<'a, T, Message> = iced_native::ComboBox<'a, T, Message>;
+pub use iced_graphics::combo_box::{Style, StyleSheet};
+pub use iced_graphics::overlay::menu::Style as Menu;
+
+/// A widget allowing the selection of a single value from a list of options.
+pub type ComboBox<'a, T, Message> =
+ iced_native::ComboBox<'a, T, Message, crate::Renderer>;