summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 4e3a28243..20c4914a4 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -1293,6 +1293,12 @@ SPDesktop::is_iconified()
return 0!=(window_state & GDK_WINDOW_STATE_ICONIFIED);
}
+bool
+SPDesktop::is_darktheme()
+{
+ return getToplevel()->get_style_context()->has_class("dark");
+}
+
void
SPDesktop::iconify()
{