Use Theme::Dark in editor example
This commit is contained in:
parent
d502c9f16f
commit
52b36a9574
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use iced::widget::{container, text_editor};
|
||||
use iced::{Element, Font, Sandbox, Settings};
|
||||
use iced::{Element, Font, Sandbox, Settings, Theme};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
Editor::run(Settings::default())
|
||||
|
|
@ -46,4 +46,8 @@ impl Sandbox for Editor {
|
|||
.padding(20)
|
||||
.into()
|
||||
}
|
||||
|
||||
fn theme(&self) -> Theme {
|
||||
Theme::Dark
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue