Theme QML Type
Import Statement: | import org.kde.kirigami.platform |
In C++: | PlatformTheme |
Attached Properties
- activeBackgroundColor : color
- activeTextColor : color
- alternateBackgroundColor : color
- backgroundColor : color
- colorGroup : enumeration
(since 4.43)
- colorSet : enumeration
- defaultFont : font
- disabledTextColor : color
- focusColor : color
- frameContrast : real
- highlightColor : color
- highlightedTextColor : color
- hoverColor : color
- inherit : bool
- lightFrameContrast : real
- linkBackgroundColor : color
- linkColor : color
- negativeBackgroundColor : color
- negativeTextColor : color
- neutralBackgroundColor : color
- neutralTextColor : color
- palette : QPalette
- positiveBackgroundColor : color
- positiveTextColor : color
- smallFont : font
- textColor : color
- useAlternateBackgroundColor : color
- visitedLinkBackgroundColor : color
- visitedLinkColor : color
Detailed Description
Theme
Attached Property Documentation
Theme.activeBackgroundColor : color |
Background for areas that are active or requesting attention
Theme.activeTextColor : color |
Foreground for areas that are active or requesting attention
Theme.alternateBackgroundColor : color |
The generic background color Alternate background; for example, for use in lists. This color may be the same as BackgroundNormal, especially in sets other than View and Window.
Theme.backgroundColor : color |
The generic background color
Theme.colorGroup : enumeration |
This enumeration describes the color group used to generate the colors. The enum value is based upon QPalette::ColorGroup and has the same values. It's redefined here in order to make it work with QML.
This property was introduced in 4.43.
Theme.colorSet : enumeration |
This enumeration describes the color set for which a color is being selected.
Color sets define a color "environment", suitable for drawing all parts of a given region. Colors from different sets should not be combined.
Theme.defaultFont : font |
The default font
Theme.disabledTextColor : color |
Foreground color for disabled areas, usually a mid-gray @note Depending on the implementation, the color used for this property may not be based on the disabled palette. For example, for the Plasma implementation, "Inactive Text Color" of the active palette is used.
Theme.focusColor : color |
A decoration color that indicates active focus
Theme.frameContrast : real |
Frame contrast value, usually used for separators and outlines Value is between 0.0 and 1.0
Theme.highlightColor : color |
The background color for selected areas
Theme.highlightedTextColor : color |
Color for text that has been highlighted, often is a light color while normal text is dark
Theme.hoverColor : color |
A decoration color that indicates mouse hovering
Theme.inherit : bool |
If true, the colorSet will be inherited from the colorset of a theme of one of the ancestor items default: true
Theme.lightFrameContrast : real |
Returns half of the frameContrast value; used by Separator.Weight.Light Value is between 0.0 and 1.0
Theme.linkBackgroundColor : color |
Background color for links
Theme.linkColor : color |
Color for links
Theme.negativeBackgroundColor : color |
Background color for negative areas, such as critical errors and destructive actions
Theme.negativeTextColor : color |
Foreground color for negative areas, such as critical error text
Theme.neutralBackgroundColor : color |
Background color for neutral areas, such as warnings (but not critical)
Theme.neutralTextColor : color |
Foreground color for neutral areas, such as warning texts (but not critical)
Theme.palette : QPalette |
Palette
Theme.positiveBackgroundColor : color |
Background color for positive areas, such as success messages and trusted content
Theme.positiveTextColor : color |
Success messages, trusted content
Theme.smallFont : font |
Small font
Theme.textColor : color |
Color for normal foregrounds, usually text, but not limited to it, anything that should be painted with a clear contrast should use this color
Theme.useAlternateBackgroundColor : color |
Hint for item views to actually make use of the alternate background color feature
Theme.visitedLinkBackgroundColor : color |
Background color for visited links, usually a bit darker than linkBackgroundColor