From d1ce01e7bcd41206aa63a522daba40cd9ec794ff Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Tue, 2 Dec 2025 15:07:25 +0800 Subject: [PATCH] Dark mode will be decided based on itself in admin mode Signed-off-by: Loren Eteval --- Furious/Widget/Application.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Furious/Widget/Application.py b/Furious/Widget/Application.py index ee514e6..60418b2 100644 --- a/Furious/Widget/Application.py +++ b/Furious/Widget/Application.py @@ -279,9 +279,11 @@ class Application(ApplicationFactory, SingletonApplication): return backgroudColor.lightness() < 128 - @staticmethod - def isDarkModeEnabled(): - return AppSettings.isStateON_('DarkMode') + def isDarkModeEnabled(self): + if not SystemRuntime.isAdmin(): + return AppSettings.isStateON_('DarkMode') + else: + return self.isDarkMode() def switchToDarkMode(self): self.setStyleSheet(qdarkstyle.load_stylesheet_pyside6())