summaryrefslogtreecommitdiffstats
path: root/style/src/menu.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-06 17:08:28 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-06 17:08:57 +0100
commit597a41cea73f078eda04eb3ff40cfda5d37d6135 (patch)
tree216779f151b68952fd5d668065dc900be08e3e99 /style/src/menu.rs
parent9b2fd6416775cb27af69e34fb20063d28b4314eb (diff)
downloadiced-597a41cea73f078eda04eb3ff40cfda5d37d6135.tar.gz
iced-597a41cea73f078eda04eb3ff40cfda5d37d6135.tar.bz2
iced-597a41cea73f078eda04eb3ff40cfda5d37d6135.zip
Simplify theming for `PickList`, `ComboBox`, and `Menu` widgets
Diffstat (limited to 'style/src/menu.rs')
-rw-r--r--style/src/menu.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/style/src/menu.rs b/style/src/menu.rs
deleted file mode 100644
index be60a3f8..00000000
--- a/style/src/menu.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-//! Change the appearance of menus.
-use iced_core::{Background, Border, Color};
-
-/// The appearance of a menu.
-#[derive(Debug, Clone, Copy)]
-pub struct Appearance {
- /// The text [`Color`] of the menu.
- pub text_color: Color,
- /// The [`Background`] of the menu.
- pub background: Background,
- /// The [`Border`] of the menu.
- pub border: Border,
- /// The text [`Color`] of a selected option in the menu.
- pub selected_text_color: Color,
- /// The background [`Color`] of a selected option in the menu.
- pub selected_background: Background,
-}
-
-/// The style sheet of a menu.
-pub trait StyleSheet {
- /// The supported style of the [`StyleSheet`].
- type Style: Default + Clone;
-
- /// Produces the [`Appearance`] of a menu.
- fn appearance(&self, style: &Self::Style) -> Appearance;
-}