Set dark mode by default

This commit is contained in:
Jarrod Doyle 2024-01-21 16:01:30 +00:00
parent eb69f5f56f
commit 45aad2a9de
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 1 deletions

View File

@ -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 {