Use Theme::Dark in editor example

This commit is contained in:
Héctor Ramón Jiménez 2023-09-13 15:17:04 +02:00
parent d502c9f16f
commit 52b36a9574
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

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