Mercurial > minori
annotate src/sys/x11/dark_theme.cc @ 361:d1d772665a07
CI/linux: install binaries into appdir
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 15 Jul 2024 01:14:13 -0400 (6 months ago) |
parents | c844f8bb87ce |
children | 99c961c91809 |
rev | line source |
---|---|
351 | 1 #include "sys/x11/dark_theme.h" |
2 #include "sys/x11/settings.h" | |
3 #include "sys/glib/dark_theme.h" /* glib::IsGTKThemeDark */ | |
4 | |
5 #include <iostream> | |
6 | |
7 namespace x11 { | |
8 | |
9 bool IsInDarkTheme() { | |
10 SettingsItem setting; | |
11 if (!FindSetting(u8"Net/ThemeName", setting)) | |
12 return false; | |
13 | |
14 return glib::IsGTKThemeDark(setting.data.string); | |
15 } | |
16 | |
17 } // namespace glib |