mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-22 23:08:08 +03:00
Dark mode will be decided based on itself in admin mode
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user