Darken the desktop base palette.

This commit is contained in:
2026-08-15 11:19:50 +02:00
parent ef9a55c2a2
commit 7c2a5bf8c8
19 changed files with 127 additions and 111 deletions

View File

@@ -8,6 +8,7 @@ use bds_core::i18n::UiLocale;
use bds_core::model::Project;
use crate::app::Message;
use crate::components::inputs;
use crate::i18n::t;
// ---------------------------------------------------------------------------
@@ -16,9 +17,9 @@ use crate::i18n::t;
fn dropdown_bg(_theme: &Theme) -> container::Style {
container::Style {
background: Some(Background::Color(Color::from_rgb(0.18, 0.18, 0.22))),
background: Some(Background::Color(inputs::ELEVATED_BG)),
border: Border {
color: Color::from_rgb(0.30, 0.30, 0.35),
color: inputs::BORDER_COLOR,
width: 1.0,
radius: 10.0.into(),
},
@@ -28,8 +29,8 @@ fn dropdown_bg(_theme: &Theme) -> container::Style {
fn project_item(_theme: &Theme, status: button::Status) -> button::Style {
let bg = match status {
button::Status::Hovered => Color::from_rgb(0.25, 0.25, 0.30),
_ => Color::from_rgb(0.18, 0.18, 0.22),
button::Status::Hovered => inputs::BORDER_COLOR,
_ => inputs::ELEVATED_BG,
};
button::Style {
background: Some(Background::Color(bg)),
@@ -62,7 +63,7 @@ fn project_item_active(_theme: &Theme, status: button::Status) -> button::Style
fn new_project_btn(_theme: &Theme, status: button::Status) -> button::Style {
let bg = match status {
button::Status::Hovered => Color::from_rgb(0.25, 0.25, 0.30),
button::Status::Hovered => inputs::BORDER_COLOR,
_ => Color::TRANSPARENT,
};
button::Style {
@@ -163,7 +164,7 @@ pub fn view(
items.push(
container(Space::new().width(Length::Fill).height(Length::Fixed(1.0)))
.style(|_theme: &Theme| container::Style {
background: Some(Background::Color(Color::from_rgb(0.30, 0.30, 0.35))),
background: Some(Background::Color(inputs::BORDER_COLOR)),
..container::Style::default()
})
.width(Length::Fill)
@@ -227,7 +228,7 @@ pub fn view(
pub fn trigger_style(_theme: &Theme, status: button::Status) -> button::Style {
let bg = match status {
button::Status::Hovered => Color::from_rgb(0.22, 0.22, 0.27),
button::Status::Hovered => inputs::HOVER_BG,
_ => Color::TRANSPARENT,
};
button::Style {