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

@@ -184,7 +184,6 @@ pub fn view<'a>(state: &'a DashboardState, locale: UiLocale) -> Element<'a, Mess
}
fn stat_card<'a>(label: &str, value: String, details: Vec<String>) -> Element<'a, Message> {
let card_bg = Color::from_rgb(0.15, 0.16, 0.20);
container(
column(
std::iter::once(text(value).size(28).color(Color::WHITE).into())
@@ -207,8 +206,8 @@ fn stat_card<'a>(label: &str, value: String, details: Vec<String>) -> Element<'a
)
.padding(16)
.width(Length::FillPortion(1))
.style(move |_: &Theme| container::Style {
background: Some(Background::Color(card_bg)),
.style(|_: &Theme| container::Style {
background: Some(Background::Color(inputs::SURFACE_BG)),
border: iced::Border {
radius: 8.0.into(),
..iced::Border::default()
@@ -310,7 +309,7 @@ fn category_cloud<'a>(
)
.padding([6, 10])
.style(|_: &Theme| container::Style {
background: Some(Background::Color(Color::from_rgb(0.16, 0.18, 0.22))),
background: Some(Background::Color(inputs::ELEVATED_BG)),
border: iced::Border {
radius: 999.0.into(),
..iced::Border::default()
@@ -374,7 +373,7 @@ fn recent_posts<'a>(posts: &'a [DashboardRecentPost], locale: UiLocale) -> Eleme
)
.padding(12)
.style(|_: &Theme| container::Style {
background: Some(Background::Color(Color::from_rgb(0.13, 0.14, 0.18))),
background: Some(Background::Color(inputs::ELEVATED_BG)),
border: iced::Border {
radius: 8.0.into(),
..iced::Border::default()