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 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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue