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
+694
-57
No files matched your search
+682
-53
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
|
/// Blue used for folders that only exist at runtime because a profile refers
|
||||||
/// to a path missing from `folders.toml`.
|
/// to a path missing from `folders.toml`.
|
||||||
pub const UNTRACKED_FOLDER: Color = Color::from_rgb8(0x4a, 0x90, 0xd9);
|
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.
|
/// Border color shared by every styled frame and control.
|
||||||
static BORDER_COLOR: OnceLock<RwLock<Color>> = OnceLock::new();
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 {
|
pub fn menu(theme: &Theme) -> container::Style {
|
||||||
let mut style = container::rounded_box(theme);
|
container::Style {
|
||||||
style.background = Some(theme.extended_palette().background.weak.color.into());
|
background: Some(theme.extended_palette().background.weak.color.into()),
|
||||||
style
|
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.
|
/// Style for a tab in the menubar; active tabs sit on the content surface.
|
||||||
|
|||||||
Reference in new issue
Block a user