diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-01-26 17:42:42 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-01-27 00:41:20 +0000 |
| commit | a266e9f871e38a28d1a3f7d5c8732590e5e4fecd (patch) | |
| tree | f964f4f8a13ce466ec26f084713c3b50033786cc /src/desktop.cpp | |
| parent | Fix compiling errors (diff) | |
| download | inkscape-a266e9f871e38a28d1a3f7d5c8732590e5e4fecd.tar.gz inkscape-a266e9f871e38a28d1a3f7d5c8732590e5e4fecd.zip | |
Add desktop function to know we are on dark theme
Diffstat (limited to 'src/desktop.cpp')
| -rw-r--r-- | src/desktop.cpp | 6 |
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() { |
