DQuickSystemPalette 是 DTk 自定义 QML 类型,用于在 QML 中使用调色板相关功能的类。 继承自 QObject,DObject,QQmlParserStatus,需要在 QML 中配合 Item 一起使用,通过 属性 sourceItem 可以绑定一个 Item 控件,根据控件状态获取相应调色板调色板的值。
更多...
|
| enum | ColorGroup { Active = QPalette::Active
, Inactive = QPalette::Inactive
, Disabled = QPalette::Disabled
} |
| |
|
|
void | setColorGroup (DQuickSystemPalette::ColorGroup colorGroup) |
| |
|
|
| DQuickSystemPalette (QObject *parent=Q_NULLPTR) |
| |
|
const DGUI_NAMESPACE::DPalette & | palette () const |
| |
|
DQuickSystemPalette::ColorGroup | colorGroup () const |
| |
| QColor | window () const |
| | DQuickSystemPalette::window window 用于获取 DPalette 的 window 类型的颜色值。
|
| |
| QColor | windowText () const |
| | DQuickSystemPalette::window windowText 用于获取 DPalette 的 windowText 类型的颜色值。
|
| |
| QColor | base () const |
| | DQuickSystemPalette::window base 用于获取 DPalette 的 base 类型的颜色值。
|
| |
| QColor | text () const |
| | DQuickSystemPalette::window text 用于获取 DPalette 的 text 类型的颜色值。
|
| |
| QColor | alternateBase () const |
| | DQuickSystemPalette::window alternateBase 用于获取 DPalette 的 alternateBase 类型的颜色值。
|
| |
| QColor | button () const |
| | DQuickSystemPalette::window button 用于获取 DPalette 的 button 类型的颜色值。
|
| |
| QColor | buttonText () const |
| | DQuickSystemPalette::window buttonText 用于获取 DPalette 的 buttonText 类型的颜色值。
|
| |
| QColor | light () const |
| | DQuickSystemPalette::light light 用于获取 DPalette 的 light 类型的颜色值。
|
| |
| QColor | midlight () const |
| | DQuickSystemPalette::midlight midlight 用于获取 DPalette 的 midlight 类型的颜色值。
|
| |
| QColor | dark () const |
| | DQuickSystemPalette::dark dark 用于获取 DPalette 的 dark 类型的颜色值。
|
| |
| QColor | mid () const |
| | DQuickSystemPalette::mid mid 用于获取 DPalette 的 mid 类型的颜色值。
|
| |
| QColor | shadow () const |
| | DQuickSystemPalette::shadow shadow 用于获取 DPalette 的 shadow 类型的颜色值。
|
| |
| QColor | highlight () const |
| | DQuickSystemPalette::highlight highlight 用于获取 DPalette 的 highlight 类型的颜色值。
|
| |
| QColor | highlightedText () const |
| | DQuickSystemPalette::highlightedText highlightedText 用于获取 DPalette 的 highlightedText 类型的颜色值。
|
| |
| QColor | itemBackground () const |
| | DQuickSystemPalette::itemBackground itemBackground 用于获取 DPalette 的 itemBackground 类型的颜色值。
|
| |
| QColor | textTitle () const |
| | DQuickSystemPalette::textTitle textTitle 用于获取 DPalette 的 textTitle 类型的颜色值。
|
| |
| QColor | textTips () const |
| | DQuickSystemPalette::textTips textTips 用于获取 DPalette 的 textTips 类型的颜色值。
|
| |
| QColor | textWarning () const |
| | DQuickSystemPalette::textWarning textWarning 用于获取 DPalette 的 textWarning 类型的颜色值。
|
| |
| QColor | textLively () const |
| | DQuickSystemPalette::textLively textLively 用于获取 DPalette 的 textLively 类型的颜色值。
|
| |
| QColor | lightLively () const |
| | DQuickSystemPalette::lightLively lightLively 用于获取 DPalette 的 lightLively 类型的颜色值。
|
| |
| QColor | darkLively () const |
| | DQuickSystemPalette::darkLively darkLively 用于获取 DPalette 的 darkLively 类型的颜色值。
|
| |
| QColor | frameBorder () const |
| | DQuickSystemPalette::frameBorder frameBorder 用于获取 DPalette 的 frameBorder 类型的颜色值。
|
| |
| QColor | placeholderText () const |
| | DQuickSystemPalette::placeholderText placeholderText 用于获取 DPalette 的 placeholderText 类型的颜色值。
|
| |
| QColor | frameShadowBorder () const |
| | DQuickSystemPalette::frameShadowBorder frameShadowBorder 用于获取 DPalette 的 frameShadowBorder 类型的颜色值。
|
| |
| QColor | obviousBackground () const |
| | DQuickSystemPalette::obviousBackground obviousBackground 用于获取 DPalette 的 obviousBackground 类型的颜色值。
|
| |
|
|
DGUI_NAMESPACE::DPalette | palette |
| |
|
DQuickSystemPalette::ColorGroup | colorGroup |
| |
|
QColor | window |
| |
|
QColor | windowText |
| |
|
QColor | base |
| |
|
QColor | text |
| |
|
QColor | alternateBase |
| |
|
QColor | button |
| |
|
QColor | buttonText |
| |
|
QColor | light |
| |
|
QColor | midlight |
| |
|
QColor | dark |
| |
|
QColor | mid |
| |
|
QColor | shadow |
| |
|
QColor | highlight |
| |
|
QColor | highlightedText |
| |
|
QColor | itemBackground |
| |
|
QColor | textTitle |
| |
|
QColor | textTips |
| |
|
QColor | textWarning |
| |
|
QColor | textLively |
| |
|
QColor | lightLively |
| |
|
QColor | darkLively |
| |
|
QColor | frameBorder |
| |
|
QColor | placeholderText |
| |
|
QColor | frameShadowBorder |
| |
|
QColor | obviousBackground |
| |
DQuickSystemPalette 是 DTk 自定义 QML 类型,用于在 QML 中使用调色板相关功能的类。 继承自 QObject,DObject,QQmlParserStatus,需要在 QML 中配合 Item 一起使用,通过 属性 sourceItem 可以绑定一个 Item 控件,根据控件状态获取相应调色板调色板的值。
◆ alternateBase()
| QColor Dtk::Quick::DQuickSystemPalette::alternateBase |
( |
| ) |
const |
DQuickSystemPalette::window alternateBase 用于获取 DPalette 的 alternateBase 类型的颜色值。
- 返回
- alternateBase 返回 DPalette 的 alternateBase 类型的颜色值。
◆ base()
| QColor Dtk::Quick::DQuickSystemPalette::base |
( |
| ) |
const |
DQuickSystemPalette::window base 用于获取 DPalette 的 base 类型的颜色值。
- 返回
- base 返回 DPalette 的 base 类型的颜色值。
◆ button()
| QColor Dtk::Quick::DQuickSystemPalette::button |
( |
| ) |
const |
DQuickSystemPalette::window button 用于获取 DPalette 的 button 类型的颜色值。
- 返回
- button 返回 DPalette 的 button 类型的颜色值。
◆ buttonText()
| QColor Dtk::Quick::DQuickSystemPalette::buttonText |
( |
| ) |
const |
DQuickSystemPalette::window buttonText 用于获取 DPalette 的 buttonText 类型的颜色值。
- 返回
- buttonText 返回 DPalette 的 buttonText 类型的颜色值。
◆ dark()
| QColor Dtk::Quick::DQuickSystemPalette::dark |
( |
| ) |
const |
DQuickSystemPalette::dark dark 用于获取 DPalette 的 dark 类型的颜色值。
- 返回
- dark 返回 DPalette 的 dark 类型的颜色值。
◆ darkLively()
| QColor Dtk::Quick::DQuickSystemPalette::darkLively |
( |
| ) |
const |
DQuickSystemPalette::darkLively darkLively 用于获取 DPalette 的 darkLively 类型的颜色值。
- 返回
- darkLively 返回 DPalette 的 darkLively 类型的颜色值。
◆ frameBorder()
| QColor Dtk::Quick::DQuickSystemPalette::frameBorder |
( |
| ) |
const |
DQuickSystemPalette::frameBorder frameBorder 用于获取 DPalette 的 frameBorder 类型的颜色值。
- 返回
- frameBorder 返回 DPalette 的 frameBorder 类型的颜色值。
◆ frameShadowBorder()
| QColor Dtk::Quick::DQuickSystemPalette::frameShadowBorder |
( |
| ) |
const |
DQuickSystemPalette::frameShadowBorder frameShadowBorder 用于获取 DPalette 的 frameShadowBorder 类型的颜色值。
- 返回
- frameShadowBorder 返回 DPalette 的 frameShadowBorder 类型的颜色值。
◆ highlight()
| QColor Dtk::Quick::DQuickSystemPalette::highlight |
( |
| ) |
const |
DQuickSystemPalette::highlight highlight 用于获取 DPalette 的 highlight 类型的颜色值。
- 返回
- highlight 返回 DPalette 的 highlight 类型的颜色值。
◆ highlightedText()
| QColor Dtk::Quick::DQuickSystemPalette::highlightedText |
( |
| ) |
const |
DQuickSystemPalette::highlightedText highlightedText 用于获取 DPalette 的 highlightedText 类型的颜色值。
- 返回
- highlightedText 返回 DPalette 的 highlightedText 类型的颜色值。
◆ itemBackground()
| QColor Dtk::Quick::DQuickSystemPalette::itemBackground |
( |
| ) |
const |
DQuickSystemPalette::itemBackground itemBackground 用于获取 DPalette 的 itemBackground 类型的颜色值。
- 返回
- itemBackground 返回 DPalette 的 itemBackground 类型的颜色值。
◆ light()
| QColor Dtk::Quick::DQuickSystemPalette::light |
( |
| ) |
const |
DQuickSystemPalette::light light 用于获取 DPalette 的 light 类型的颜色值。
- 返回
- light 返回 DPalette 的 light 类型的颜色值。
◆ lightLively()
| QColor Dtk::Quick::DQuickSystemPalette::lightLively |
( |
| ) |
const |
DQuickSystemPalette::lightLively lightLively 用于获取 DPalette 的 lightLively 类型的颜色值。
- 返回
- lightLively 返回 DPalette 的 lightLively 类型的颜色值。
◆ mid()
| QColor Dtk::Quick::DQuickSystemPalette::mid |
( |
| ) |
const |
DQuickSystemPalette::mid mid 用于获取 DPalette 的 mid 类型的颜色值。
- 返回
- mid 返回 DPalette 的 mid 类型的颜色值。
◆ midlight()
| QColor Dtk::Quick::DQuickSystemPalette::midlight |
( |
| ) |
const |
DQuickSystemPalette::midlight midlight 用于获取 DPalette 的 midlight 类型的颜色值。
- 返回
- midlight 返回 DPalette 的 midlight 类型的颜色值。
◆ obviousBackground()
| QColor Dtk::Quick::DQuickSystemPalette::obviousBackground |
( |
| ) |
const |
DQuickSystemPalette::obviousBackground obviousBackground 用于获取 DPalette 的 obviousBackground 类型的颜色值。
- 返回
- obviousBackground 返回 DPalette 的 obviousBackground 类型的颜色值。
◆ placeholderText()
| QColor Dtk::Quick::DQuickSystemPalette::placeholderText |
( |
| ) |
const |
DQuickSystemPalette::placeholderText placeholderText 用于获取 DPalette 的 placeholderText 类型的颜色值。
- 返回
- placeholderText 返回 DPalette 的 placeholderText 类型的颜色值。
◆ shadow()
| QColor Dtk::Quick::DQuickSystemPalette::shadow |
( |
| ) |
const |
DQuickSystemPalette::shadow shadow 用于获取 DPalette 的 shadow 类型的颜色值。
- 返回
- shadow 返回 DPalette 的 shadow 类型的颜色值。
◆ text()
| QColor Dtk::Quick::DQuickSystemPalette::text |
( |
| ) |
const |
DQuickSystemPalette::window text 用于获取 DPalette 的 text 类型的颜色值。
- 返回
- text 返回 DPalette 的 text 类型的颜色值。
◆ textLively()
| QColor Dtk::Quick::DQuickSystemPalette::textLively |
( |
| ) |
const |
DQuickSystemPalette::textLively textLively 用于获取 DPalette 的 textLively 类型的颜色值。
- 返回
- textLively 返回 DPalette 的 textLively 类型的颜色值。
◆ textTips()
| QColor Dtk::Quick::DQuickSystemPalette::textTips |
( |
| ) |
const |
DQuickSystemPalette::textTips textTips 用于获取 DPalette 的 textTips 类型的颜色值。
- 返回
- textTips 返回 DPalette 的 textTips 类型的颜色值。
◆ textTitle()
| QColor Dtk::Quick::DQuickSystemPalette::textTitle |
( |
| ) |
const |
DQuickSystemPalette::textTitle textTitle 用于获取 DPalette 的 textTitle 类型的颜色值。
- 返回
- textTitle 返回 DPalette 的 textTitle 类型的颜色值。
◆ textWarning()
| QColor Dtk::Quick::DQuickSystemPalette::textWarning |
( |
| ) |
const |
DQuickSystemPalette::textWarning textWarning 用于获取 DPalette 的 textWarning 类型的颜色值。
- 返回
- textWarning 返回 DPalette 的 textWarning 类型的颜色值。
◆ window()
| QColor Dtk::Quick::DQuickSystemPalette::window |
( |
| ) |
const |
DQuickSystemPalette::window window 用于获取 DPalette 的 window 类型的颜色值。
- 返回
- window 返回 DPalette 的 window 类型的颜色值。
◆ windowText()
| QColor Dtk::Quick::DQuickSystemPalette::windowText |
( |
| ) |
const |
DQuickSystemPalette::window windowText 用于获取 DPalette 的 windowText 类型的颜色值。
- 返回
- windowText 返回 DPalette 的 windowText 类型的颜色值。
该类的文档由以下文件生成: