summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/mainwindow.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-05 23:20:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-05 23:21:07 +0000
commit676702692d5388e2251a0a94a428e13f6d1383bb (patch)
tree47122db13d7610e47aa2f89bf56c6367f40c7751 /deluge/ui/gtk3/mainwindow.py
parentReleasing debian version 2.1.2~dev0+20240121-1. (diff)
downloaddeluge-676702692d5388e2251a0a94a428e13f6d1383bb.tar.xz
deluge-676702692d5388e2251a0a94a428e13f6d1383bb.zip
Merging upstream version 2.1.2~dev0+20240219.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/ui/gtk3/mainwindow.py')
-rw-r--r--deluge/ui/gtk3/mainwindow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/deluge/ui/gtk3/mainwindow.py b/deluge/ui/gtk3/mainwindow.py
index e1e3bb3..6c871d2 100644
--- a/deluge/ui/gtk3/mainwindow.py
+++ b/deluge/ui/gtk3/mainwindow.py
@@ -72,6 +72,12 @@ class MainWindow(component.Component):
self.config = ConfigManager('gtk3ui.conf')
self.main_builder = Gtk.Builder()
+ # Set theme
+ Gtk.Settings.get_default().set_property(
+ 'gtk-application-prefer-dark-theme',
+ self.config['prefer_dark_theme'],
+ )
+
# Patch this GtkBuilder to avoid connecting signals from elsewhere
#
# Think about splitting up mainwindow gtkbuilder file into the necessary parts