Mercurial > minori
annotate include/sys/glib/dark_theme.h @ 355:83e6ba09338f
gui/pages/seasons: fix function disambiguation on win32
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 14 Jul 2024 23:46:18 -0400 |
parents | c844f8bb87ce |
children |
rev | line source |
---|---|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
232
diff
changeset
|
1 #ifndef MINORI_SYS_GLIB_DARK_THEME_H_ |
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
232
diff
changeset
|
2 #define MINORI_SYS_GLIB_DARK_THEME_H_ |
232
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
3 |
351
c844f8bb87ce
gui/theme: add xsettings backend
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
4 #include <string_view> |
c844f8bb87ce
gui/theme: add xsettings backend
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
5 |
232
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
6 namespace glib { |
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
7 |
351
c844f8bb87ce
gui/theme: add xsettings backend
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
8 bool IsGTKThemeDark(const std::string_view str); |
232
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
9 bool IsInDarkTheme(); |
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
10 |
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
11 } |
ff0061e75f0f
theme: add OS detection with glib
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
12 |
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
232
diff
changeset
|
13 #endif // MINORI_SYS_GLIB_DARK_THEME_H_ |