Files
wx_wherigo/libs/wxWidgets-3.3.1/include/wx/gtk/private/appearance.h
2026-02-14 09:47:24 +01:00

31 lines
883 B
C++

///////////////////////////////////////////////////////////////////////////////
// Name: wx/gtk/private/appearance.h
// Purpose: Private wxGTK functions for working with appearance settings
// Copyright: (c) 2024 Vadim Zeitlin
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_GTK_PRIVATE_APPEARANCE_H_
#define _WX_GTK_PRIVATE_APPEARANCE_H_
namespace wxGTKImpl
{
// This enum uses the same values as org.freedesktop.appearance.color-scheme
enum class ColorScheme
{
NoPreference = 0,
PreferDark = 1,
PreferLight = 2
};
// Update GTK color scheme if possible.
//
// Return false if the preference wasn't changed because it is overridden by
// the theme anyhow.
bool UpdateColorScheme(ColorScheme colorScheme);
} // namespace wxGTKImpl
#endif // _WX_GTK_PRIVATE_APPEARANCE_H_