Theme QML Type
This class is the base for color management in Kirigami, different platforms can reimplement this class to integrate with system platform colors of a given platform. More...
| Import Statement: | import org.kde.kirigami.platform |
| In C++: | PlatformTheme |
Attached Properties
- activeBackgroundColor : color
- activeTextColor : color
- alternateBackgroundColor : color
- backgroundColor : color
- colorGroup : enumeration
- colorSet : enumeration
- defaultFont : font
- disabledTextColor : color
- fixedWidthFont : font
- 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 : bool
- visitedLinkBackgroundColor : color
- visitedLinkColor : color
Detailed Description
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.
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 [read-only]
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.fixedWidthFont : font [read-only]
Fixed width font.
Theme.focusColor : color
A decoration color that indicates active focus.
Theme.frameContrast : real [read-only]
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 [read-only]
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 [read-only]
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 [read-only]
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 : bool
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.
Theme.visitedLinkColor : color
Color for visited links, usually a bit darker than linkColor.