Set dark mode by default
This commit is contained in:
parent
eb69f5f56f
commit
45aad2a9de
|
@ -1,6 +1,6 @@
|
|||
use iced::{
|
||||
widget::{column, text, text_editor},
|
||||
Element, Result, Sandbox, Settings,
|
||||
Element, Result, Sandbox, Settings, Theme,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
@ -40,6 +40,10 @@ impl Sandbox for Application {
|
|||
.padding(10)
|
||||
.into()
|
||||
}
|
||||
|
||||
fn theme(&self) -> Theme {
|
||||
Theme::Dark
|
||||
}
|
||||
}
|
||||
|
||||
fn main() -> Result {
|
||||
|
|
Loading…
Reference in New Issue