initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
30
libs/wxWidgets-3.3.1/include/wx/gtk/private/appearance.h
Normal file
30
libs/wxWidgets-3.3.1/include/wx/gtk/private/appearance.h
Normal file
@@ -0,0 +1,30 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// 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_
|
||||
Reference in New Issue
Block a user