feat: simplify theme
This commit is contained in:
parent
9bdd556c9d
commit
b1157474c9
1 changed files with 3 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue