view src/sys/x11/dark_theme.cc @ 371:c87dcf967cff

dep/animone: add mpc-qt posix and x11
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 11:01:57 -0400
parents 99c961c91809
children
line wrap: on
line source

#include "sys/x11/dark_theme.h"
#include "sys/x11/settings.h"
#include "sys/glib/dark_theme.h" /* glib::IsGTKThemeDark */

namespace x11 {

bool IsInDarkTheme() {
	SettingsItem setting;
	if (!FindSetting(u8"Net/ThemeName", setting))
		return false;

	return glib::IsGTKThemeDark(setting.data.string);
}

} // namespace glib