feat: simplify theme

This commit is contained in:
electria 2026-07-30 20:35:45 -07:00
commit b1157474c9
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -1,7 +1,7 @@
use std::{borrow::Cow, env, ffi::OsStr, path::Path}; use std::{borrow::Cow, env, ffi::OsStr, path::Path};
use iced::{ 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}, keyboard::{self, Key, key},
theme, widget, window, theme, widget, window,
}; };
@ -213,12 +213,9 @@ fn main() -> Result<(), iced::Error> {
.theme(Theme::custom( .theme(Theme::custom(
"custom", "custom",
theme::Palette { theme::Palette {
background: color!(0x080808), background: Color::BLACK,
text: Color::WHITE, text: Color::WHITE,
primary: color!(0xff00ff), ..theme::Palette::DARK
success: color!(0x00ff00),
warning: color!(0x880000),
danger: color!(0xff0000),
}, },
)) ))
.run() .run()