Fine tuned some dialogs, added some more color settings, enabled drag and drop for profiles and folders in settings
This commit is contained in:
1 parent
9fd5287ec7
commit
6f5a115cff
2 files changed
+692
-55
No files matched your search
+680
-51
File diff suppressed because it is too large.
Load diff
+12
-4
@@ -27,6 +27,8 @@ pub const TAB_TEXT: Color = Color::from_rgb8(0xe6, 0xe6, 0xe6);
|
||||
/// Blue used for folders that only exist at runtime because a profile refers
|
||||
/// to a path missing from `folders.toml`.
|
||||
pub const UNTRACKED_FOLDER: Color = Color::from_rgb8(0x4a, 0x90, 0xd9);
|
||||
/// Name color for profiles marked hidden.
|
||||
pub const HIDDEN_PROFILE: Color = Color::from_rgb8(0x80, 0x80, 0x80);
|
||||
|
||||
/// Border color shared by every styled frame and control.
|
||||
static BORDER_COLOR: OnceLock<RwLock<Color>> = OnceLock::new();
|
||||
@@ -133,11 +135,17 @@ pub fn menubar_button(theme: &Theme, status: button::Status, text_color: Color)
|
||||
style
|
||||
}
|
||||
|
||||
/// Style for dropdown menu panels.
|
||||
/// Style for dropdown menus and dialogs: a raised panel with a themed border.
|
||||
pub fn menu(theme: &Theme) -> container::Style {
|
||||
let mut style = container::rounded_box(theme);
|
||||
style.background = Some(theme.extended_palette().background.weak.color.into());
|
||||
style
|
||||
container::Style {
|
||||
background: Some(theme.extended_palette().background.weak.color.into()),
|
||||
border: Border {
|
||||
color: border_color(),
|
||||
width: 1.0,
|
||||
radius: 6.0.into(),
|
||||
},
|
||||
..container::Style::default()
|
||||
}
|
||||
}
|
||||
|
||||
/// Style for a tab in the menubar; active tabs sit on the content surface.
|
||||
|
||||
Reference in new issue
Block a user