From 45aad2a9de8fc30162c92fe2f93e03e27d60d44a Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 21 Jan 2024 16:01:30 +0000 Subject: [PATCH] Set dark mode by default --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d513b2d..250b5a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {