MauiKit Controls
style.h
19 * These properties are standard values meant to be used across the UI elements for a cohesive look and feel.
21 * @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.
51 * @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.
65 explicit GroupSizes(const uint tiny,const uint small, const uint medium, const uint big, const uint large, const uint huge, const uint enormous, QObject *parent = nullptr);
93 * The standard height size for the toolbars, such as ToolBar, TabBar, etc. Usually this is used as the minimum height fo those bars.
107 * @note This property is read only. It can only be modified from the MauiMan global preferences.
113 * @note This property is read only. It can only be modified from the MauiMan global preferences.
119 * This can be used for keeping a coherent look, when an implicit height is not desired, or as the minimum height.
129 * The preferred size for the margins in the browsing views, such as the ListBrowser and GridBrowser, but also for the margins in menus.
130 * @note This property is read only. It can only be modified from the MauiMan global preferences.
136 * @note This property is read only. It can only be modified from the MauiMan global preferences.
143 * @note This property is read only. It can only be modified from the MauiMan global preferences.
149 * @note This property is read only. It can only be modified from the MauiMan global preferences.
155 * @note This property is read only. It can only be modified from the MauiMan global preferences.
171 * @note This property is read only. It can only be modified from the MauiMan global preferences.
200 * Sets the color to be used for highlighted, active, checked and such states of the UI elements.
202 * This can be overridden by each application to a custom color. To reset it back to the system preference set the property to `undefined`.
204 Q_PROPERTY(QColor accentColor READ accentColor WRITE setAccentColor NOTIFY accentColorChanged FINAL RESET unsetAccentColor)
207 * The source for picking up the application color palette when the style type is set to Style.Adaptive.
211 Q_PROPERTY(QVariant adaptiveColorSchemeSource READ adaptiveColorSchemeSource WRITE setAdaptiveColorSchemeSource NOTIFY adaptiveColorSchemeSourceChanged RESET unsetAdaptiveColorSchemeSource)
217 * It can be overridden by the application, and to reset it - back to the original system preference - by setting this to `undefined`.
219 Q_PROPERTY(StyleType styleType READ styleType WRITE setStyleType NOTIFY styleTypeChanged RESET unsetStyeType)
222 * Whether special effects are desired. This can be tweaked in the MauiMan system preferences in cases where the resources need to be preserved.
224 * @note This property is read-only. It can only be modified from the MauiMan global preferences.
230 * @note This property is read-only. It can only be modified from the MauiMan global preferences.
231 * @warning This only works when using the Maui Shell ecosystem. There is not support for Plasma or GNOME desktops.
237 * @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.
243 * @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.
249 * @note This property is read-only. It can only be modified from the MauiMan global preferences.
254 * Whether the application window surface should be transparent and request the compositor to blur the background area of the window surface.
257 Q_PROPERTY(bool translucencyAvailable READ translucencyAvailable NOTIFY translucencyAvailableChanged)
282 * 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.
288 * @note Use this type when mixing MauiKit with Kirigami controls, so both frameworks pick up the color palette from the same source.
293 * 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.
298 * A fully white color palette with a true black accent color. This is the inverted version of the TrueBlack type.
301 }; Q_ENUM(StyleType)
The sizes group for some Style properties, such as Style::iconSize, Style::space, etc.
Definition style.h:54
uint rowHeight
The standard size for the height of elements represented as a row.
Definition style.h:121
uint rowHeightAlt
An alternative height to the rowHeight, this size is a bit smaller.
Definition style.h:126
QVariant adaptiveColorSchemeSource
The source for picking up the application color palette when the style type is set to Style....
Definition style.h:211
uint iconSize
The preferred size for painting the icons in places, such as menus, buttons and delegates.
Definition style.h:115
bool playSounds
Whether the user desires for the application to play sounds or not.
Definition style.h:251
uint contentMargins
The preferred size for the margins in the browsing views, such as the ListBrowser and GridBrowser,...
Definition style.h:132
uint defaultSpacing
The preferred spacing size between elements in rows or columns, etc.
Definition style.h:151
uint toolBarHeightAlt
An alternative size for the tab bars, this is a bit smaller then the toolBarHeight.
Definition style.h:103
GroupSizes * fontSizes
The group of different standard font sizes for the MauiKit applications.
Definition style.h:179
@ Auto
Picks the colors from the system palette, usually from Plasma color-scheme files.
Definition style.h:290
uint scrollBarPolicy
The preferred scroll bars policy for displaying them or not.
Definition style.h:245
QML_ELEMENTuint toolBarHeight
The standard height size for the toolbars, such as ToolBar, TabBar, etc.
Definition style.h:96
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:375
GroupSizes * iconSizes
The group of different standard icon sizes for consistency in the MauiKit apps.
Definition style.h:192
uint defaultFontSize
The preferred font size for the text labels in the UI elements.
Definition style.h:138
uint defaultPadding
The preferred padding size for the UI elements, such a menu entries, buttons, bars,...
Definition style.h:145
GroupSizes * space
The group of different standard spacing values for consistency in the MauiKit apps.
Definition style.h:185
StyleType styleType
The preferred style type for setting the color scheme of the application.
Definition style.h:219
bool translucencyAvailable
Whether the application window surface should be transparent and request the compositor to blur the b...
Definition style.h:257
QColor accentColor
Sets the color to be used for highlighted, active, checked and such states of the UI elements.
Definition style.h:204
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.