Skip to content

Commit

Permalink
feat(widget): add dropdown::multi list widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Nov 30, 2023
1 parent d6c8fbe commit bb7c7ac
Show file tree
Hide file tree
Showing 8 changed files with 1,346 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/theme/style/dropdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ impl dropdown::menu::StyleSheet for Theme {

selected_text_color: cosmic.accent.base.into(),
selected_background: Background::Color(cosmic.primary.component.hover.into()),

description_color: cosmic.primary.component.on_disabled.into(),
}
}
}
2 changes: 2 additions & 0 deletions src/widget/dropdown/menu/appearance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pub struct Appearance {
pub selected_text_color: Color,
/// Background when selected
pub selected_background: Background,
/// Description text color
pub description_color: Color,
}

/// The style sheet of a menu.
Expand Down
2 changes: 2 additions & 0 deletions src/widget/dropdown/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
pub mod menu;
pub use menu::Menu;

pub mod multi;

mod widget;
pub use widget::*;

Expand Down
Loading

0 comments on commit bb7c7ac

Please sign in to comment.