MauiKit Controls
style.h
20 * These properties are standard values meant to be used across the UI elements for a cohesive look and feel.
22 * @note This object can not be instantiated. It only exists as part of the Style::units implementation, which ca be accessed via the global Style singleton.
52 * @note This object can not be instantiated. It only exists as part of some of the Style property implementations, which ca be accessed via the global Style singleton.
94 * The standard height size for the toolbars, such as ToolBar, TabBar, etc. Usually this is used as the minimum height fo those bars.
108 * @note This property is read only. It can only be modified from the MauiMan global preferences.
114 * @note This property is read only. It can only be modified from the MauiMan global preferences.
120 * This can be used for keeping a coherent look, when an implicit height is not desired, or as the minimum height.
130 * The preferred size for the margins in the browsing views, such as the ListBrowser and GridBrowser, but also for the margins in menus.
131 * @note This property is read only. It can only be modified from the MauiMan global preferences.
137 * @note This property is read only. It can only be modified from the MauiMan global preferences.
144 * @note This property is read only. It can only be modified from the MauiMan global preferences.
150 * @note This property is read only. It can only be modified from the MauiMan global preferences.
156 * @note This property is read only. It can only be modified from the MauiMan global preferences.
172 * @note This property is read only. It can only be modified from the MauiMan global preferences.
201 * Sets the color to be used for highlighted, active, checked and such states of the UI elements.
203 * This can be overridden by each application to a custom color. To reset it back to the system preference set the property to `undefined`.
205 Q_PROPERTY(QColor accentColor READ accentColor WRITE setAccentColor NOTIFY accentColorChanged FINAL RESET unsetAccentColor)
208 * The source for picking up the application color palette when the style type is set to Style.Adaptive.
212 Q_PROPERTY(QVariant adaptiveColorSchemeSource READ adaptiveColorSchemeSource WRITE setAdaptiveColorSchemeSource NOTIFY adaptiveColorSchemeSourceChanged RESET unsetAdaptiveColorSchemeSource)
218 * It can be overridden by the application, and to reset it - back to the original system preference - by setting this to `undefined`.
220 Q_PROPERTY(StyleType styleType READ styleType WRITE setStyleType NOTIFY styleTypeChanged RESET unsetStyeType)
223 * Whether special effects are desired. This can be tweaked in the MauiMan system preferences in cases where the resources need to be preserved.
225 * @note This property is read-only. It can only be modified from the MauiMan global preferences.
231 * @note This property is read-only. It can only be modified from the MauiMan global preferences.
232 * @warning This only works when using the Maui Shell ecosystem. There is not support for Plasma or GNOME desktops.
238 * @note This property is read-only. This is picked by from the QPA Qt Theme integration platform, so its default value will depend on the desktop shell being used.
244 * @note This property is read-only. This is picked by from the QPA Qt Theme integration platform, so its default value will depend on the desktop shell being used.
250 * @note This property is read-only. It can only be modified from the MauiMan global preferences.
255 * Whether the application window surface should be transparent and request the compositor to blur the background area of the window surface.
258 Q_PROPERTY(bool translucencyAvailable READ translucencyAvailable NOTIFY translucencyAvailableChanged)
283 * Picks the color scheme based on an source input, such as an image. The generated color palette determines if it is a dark or light scheme, and also its accent color.
289 * @note Use this type when mixing MauiKit with Kirigami controls, so both frameworks pick up the color palette from the same source.
294 * A fully black color palette with a full white accent color. This is might be useful as a accessibility enhance or for performance on E-Ink and AMOLED displays.
The sizes group for some Style properties, such as Style::iconSize, Style::space, etc.
Definition style.h:55
uint rowHeight
The standard size for the height of elements represented as a row.
Definition style.h:122
uint rowHeightAlt
An alternative height to the rowHeight, this size is a bit smaller.
Definition style.h:127
QVariant adaptiveColorSchemeSource
The source for picking up the application color palette when the style type is set to Style....
Definition style.h:212
uint iconSize
The preferred size for painting the icons in places, such as menus, buttons and delegates.
Definition style.h:116
bool playSounds
Whether the user desires for the application to play sounds or not.
Definition style.h:252
uint contentMargins
The preferred size for the margins in the browsing views, such as the ListBrowser and GridBrowser,...
Definition style.h:133
uint defaultSpacing
The preferred spacing size between elements in rows or columns, etc.
Definition style.h:152
uint toolBarHeightAlt
An alternative size for the tab bars, this is a bit smaller then the toolBarHeight.
Definition style.h:104
GroupSizes * fontSizes
The group of different standard font sizes for the MauiKit applications.
Definition style.h:180
@ Auto
Picks the colors from the system palette, usually from Plasma color-scheme files.
Definition style.h:291
uint scrollBarPolicy
The preferred scroll bars policy for displaying them or not.
Definition style.h:246
int defaultFontSize
The preferred font size for the text labels in the UI elements.
Definition style.h:139
QML_ELEMENTuint toolBarHeight
The standard height size for the toolbars, such as ToolBar, TabBar, etc.
Definition style.h:97
int mapToIconSizes(const int &size)
Given a size as argument this function will return the best fitted icon size from the standard icon s...
Definition style.cpp:346
GroupSizes * iconSizes
The group of different standard icon sizes for consistency in the MauiKit apps.
Definition style.h:193
uint defaultPadding
The preferred padding size for the UI elements, such a menu entries, buttons, bars,...
Definition style.h:146
GroupSizes * space
The group of different standard spacing values for consistency in the MauiKit apps.
Definition style.h:186
StyleType styleType
The preferred style type for setting the color scheme of the application.
Definition style.h:220
bool translucencyAvailable
Whether the application window surface should be transparent and request the compositor to blur the b...
Definition style.h:258
QColor accentColor
Sets the color to be used for highlighted, active, checked and such states of the UI elements.
Definition style.h:205
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
virtual bool event(QEvent *e)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:16:12 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:16:12 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.