From b1157474c9bd9d5a8ac4b7b0c4832d50f3be924a Mon Sep 17 00:00:00 2001 From: electria Date: Thu, 30 Jul 2026 20:35:45 -0700 Subject: [PATCH] feat: simplify theme --- src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4de72f4..4168550 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use std::{borrow::Cow, env, ffi::OsStr, path::Path}; use iced::{ - Alignment, Color, Element, Length, Renderer, Subscription, Task, Theme, color, event, + Alignment, Color, Element, Length, Renderer, Subscription, Task, Theme, event, keyboard::{self, Key, key}, theme, widget, window, }; @@ -213,12 +213,9 @@ fn main() -> Result<(), iced::Error> { .theme(Theme::custom( "custom", theme::Palette { - background: color!(0x080808), + background: Color::BLACK, text: Color::WHITE, - primary: color!(0xff00ff), - success: color!(0x00ff00), - warning: color!(0x880000), - danger: color!(0xff0000), + ..theme::Palette::DARK }, )) .run()