From 50b69482d5b5463a8bda2a220a25ce10ed8cdf39 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Wed, 3 Aug 2022 00:17:46 +0200 Subject: [PATCH] Added `devel` style to `FirstRunApp` if it's debug mode --- src/ui/first_run/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/first_run/mod.rs b/src/ui/first_run/mod.rs index 6e2109f..e84ee2e 100644 --- a/src/ui/first_run/mod.rs +++ b/src/ui/first_run/mod.rs @@ -66,6 +66,11 @@ impl AppWidgets { result.carousel.append(&result.page_5.page); result.carousel.append(&result.page_6.page); + // Set devel style to ApplicationWindow if it's debug mode + if crate::APP_DEBUG { + result.window.add_css_class("devel"); + } + Ok(result) } }