1
0

option to set a dark theme for Qt

qdarkstyle is now a new dependency - note that it is only for qt and qt is not strictly a dependency, but it is pure python and relatively small
This commit is contained in:
SomberNight
2018-06-25 16:45:56 +02:00
parent 9a8183f348
commit ca7e5575bf
4 changed files with 30 additions and 3 deletions

View File

@@ -706,8 +706,8 @@ class ColorScheme:
return brightness < (255*3/2)
@staticmethod
def update_from_widget(widget):
if ColorScheme.has_dark_background(widget):
def update_from_widget(widget, force_dark=False):
if force_dark or ColorScheme.has_dark_background(widget):
ColorScheme.dark_scheme = True