Pages
API Documentation
On this page

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

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.

[read-only] 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.

[read-only] Theme.fixedWidthFont : font

Fixed width font.

Theme.focusColor : color

A decoration color that indicates active focus.

[read-only] 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

[read-only] 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).

[read-only] 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.

[read-only] 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.

[read-only] Theme.toolsArea : ToolsArea

How the window's tools area (toolbars and main menu bar under the title bar) is drawn, as the platform gives it. The same object for every item.

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.