annotate src/sys/x11/dark_theme.cc @ 359:4e0e17d3c67a
CI/linux: ignore linuxdeployqt silently failing
author |
Paper <paper@paper.us.eu.org> |
date |
Mon, 15 Jul 2024 01:06:39 -0400 |
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
|