palette QML Basic Type

a palette of colors. The palette type refers to a palette of colors for various roles.

Available properties:

特性 描述
palette.alternateBase : color Used as the alternate background color in item views with alternating row colors.
palette.base : color Used mostly as the background color for text editor controls and items views. It is usually white or another light color.
palette.brightText : color 文本顔色很不同於 palette.windowText ,且有鮮明對比與 palette.dark 。通常用於需要繪製的文本,其中 palette.text , palette.windowText or palette.buttonText would give poor contrast, such as on highlighted buttons.
palette.button : color 一般按鈕的背景色。此背景可以不同於 palette.window 因為有些樣式要求不同背景色對於按鈕。
palette.buttonText : color 前景顔色使用 palette.button 顔色。
palette.dark : color 更暗比 palette.button .
palette.highlight : color A color to indicate a selected item or the current item.
palette.highlightedText : color 文本顔色形成對比與 palette.highlight .
palette.light : color 更亮比 palette.button .
palette.link : color A text color used for hyperlinks.
palette.linkVisited : color A text color used for already visited hyperlinks.
palette.mid : color 介於 palette.button and palette.dark .
palette.midlight : color 介於 palette.button and palette.light .
palette.shadow : color A very dark color.
palette.text : color 前景顔色使用 palette.base 。這通常如同 palette.windowText ,在這種情況下,它必須提供很好的對比與 palette.window and palette.base .
palette.toolTipBase : color Used as the background color for tooltips.
palette.toolTipText : color Used as the foreground color for tooltips.
palette.window : color 一般背景色。
palette.windowText : color 一般前景色。

另請參閱 Control::palette , Popup::palette , ApplicationWindow::palette ,和 QPalette::ColorRole .