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 .