diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 5c8ed2e8e5..52a9099964 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -46,6 +46,12 @@ namespace Qt { transparent }; + enum class Appearance { + Unknown = 0x0000, + Light = 0x0001, + Dark = 0x0002 + }; + enum MouseButton { NoButton = 0x00000000, LeftButton = 0x00000001, @@ -1745,6 +1751,7 @@ namespace Qt { Q_ENUM_NS(DayOfWeek) Q_ENUM_NS(CursorShape) Q_ENUM_NS(GlobalColor) + Q_ENUM_NS(Appearance) Q_ENUM_NS(AspectRatioMode) Q_ENUM_NS(TransformationMode) Q_FLAG_NS(ImageConversionFlags) diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 23e3e9736b..22092a2dae 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -788,6 +788,17 @@ \sa QDockWidget::setAllowedAreas, QDockWidget::isAreaAllowed */ +/*! + \enum Qt::Appearance + + Represents the appearance of an application's theme, + defined by QGuiApplication::palette(). + + \value Unknown The appearance is unknown. + \value Light The background colors are lighter than the text color, i.e. the theme is light. + \value Dark The background colors are darker than the text color, i.e. the theme is dark. +*/ + /*! \enum Qt::ImageConversionFlag