Darken the desktop base palette.
This commit is contained in:
@@ -549,9 +549,9 @@ fn shortcut_hint(action: MenuAction) -> Option<&'static str> {
|
||||
|
||||
fn menu_bar_style(_theme: &Theme) -> iced::widget::container::Style {
|
||||
iced::widget::container::Style {
|
||||
background: Some(Background::Color(Color::from_rgb8(0x25, 0x25, 0x26))),
|
||||
background: Some(Background::Color(inputs::SURFACE_BG)),
|
||||
border: Border {
|
||||
color: Color::from_rgb8(0x3C, 0x3C, 0x3C),
|
||||
color: inputs::BORDER_COLOR,
|
||||
width: 0.0,
|
||||
radius: 0.0.into(),
|
||||
},
|
||||
@@ -561,9 +561,9 @@ fn menu_bar_style(_theme: &Theme) -> iced::widget::container::Style {
|
||||
|
||||
fn menu_popup_style(_theme: &Theme) -> iced::widget::container::Style {
|
||||
iced::widget::container::Style {
|
||||
background: Some(Background::Color(Color::from_rgb8(0x25, 0x25, 0x26))),
|
||||
background: Some(Background::Color(inputs::SURFACE_BG)),
|
||||
border: Border {
|
||||
color: Color::from_rgb8(0x4A, 0x4A, 0x4D),
|
||||
color: inputs::BORDER_COLOR,
|
||||
width: 1.0,
|
||||
radius: 6.0.into(),
|
||||
},
|
||||
@@ -583,7 +583,7 @@ fn menu_button_style(
|
||||
) -> iced::widget::button::Style {
|
||||
let highlighted = active || matches!(status, iced::widget::button::Status::Hovered);
|
||||
iced::widget::button::Style {
|
||||
background: highlighted.then_some(Background::Color(Color::from_rgb8(0x3A, 0x3D, 0x41))),
|
||||
background: highlighted.then_some(Background::Color(inputs::HOVER_BG)),
|
||||
text_color: Color::from_rgb8(0xE4, 0xE4, 0xE4),
|
||||
border: Border {
|
||||
radius: 4.0.into(),
|
||||
@@ -601,7 +601,7 @@ fn menu_item_style(
|
||||
let highlighted = selected || matches!(status, iced::widget::button::Status::Hovered);
|
||||
let disabled = matches!(status, iced::widget::button::Status::Disabled);
|
||||
iced::widget::button::Style {
|
||||
background: highlighted.then_some(Background::Color(Color::from_rgb8(0x3A, 0x3D, 0x41))),
|
||||
background: highlighted.then_some(Background::Color(inputs::HOVER_BG)),
|
||||
text_color: if disabled {
|
||||
Color::from_rgb8(0x7D, 0x7D, 0x7D)
|
||||
} else {
|
||||
@@ -655,7 +655,7 @@ fn window_menu_popup<'a>(
|
||||
.height(Length::Fixed(1.0))
|
||||
.width(Length::Fill)
|
||||
.style(|_| iced::widget::container::Style {
|
||||
background: Some(Background::Color(Color::from_rgb8(0x3C, 0x3C, 0x3C))),
|
||||
background: Some(Background::Color(inputs::BORDER_COLOR)),
|
||||
..iced::widget::container::Style::default()
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user