forked from qt-creator/qt-creator
QmlDesigner: Fix colors in some control states
* Fix color of press state in AbstractButton and CheckIndicator * Replace hard coded color value for disabled due to MCU Change-Id: Ic73c95e263ad30a5804f77ef1bfa44fa16ed5de9 Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
94bf7a656f
commit
e05ecea4f5
@@ -94,7 +94,7 @@ T.AbstractButton {
|
||||
when: myButton.enabled && myButton.pressed
|
||||
PropertyChanges {
|
||||
target: buttonIcon
|
||||
color: StudioTheme.Values.themeIconColorInteraction
|
||||
color: StudioTheme.Values.themeIconColor
|
||||
}
|
||||
},
|
||||
State {
|
||||
@@ -152,7 +152,7 @@ T.AbstractButton {
|
||||
when: myButton.hover && myButton.pressed
|
||||
PropertyChanges {
|
||||
target: buttonBackground
|
||||
color: StudioTheme.Values.themeControlBackgroundInteraction
|
||||
color: StudioTheme.Values.themeInteraction
|
||||
border.color: StudioTheme.Values.themeInteraction
|
||||
}
|
||||
PropertyChanges {
|
||||
|
@@ -110,7 +110,7 @@ Rectangle {
|
||||
when: checkIndicator.checked
|
||||
PropertyChanges {
|
||||
target: checkIndicatorIcon
|
||||
color: StudioTheme.Values.themeIconColorInteraction
|
||||
color: StudioTheme.Values.themeIconColor
|
||||
}
|
||||
PropertyChanges {
|
||||
target: checkIndicator
|
||||
@@ -136,7 +136,7 @@ Rectangle {
|
||||
&& checkIndicator.pressed
|
||||
PropertyChanges {
|
||||
target: checkIndicatorIcon
|
||||
color: StudioTheme.Values.themeIconColorInteraction
|
||||
color: StudioTheme.Values.themeIconColor
|
||||
}
|
||||
PropertyChanges {
|
||||
target: checkIndicator
|
||||
|
@@ -236,7 +236,7 @@ QtObject {
|
||||
property string themeTextColorDisabled: Theme.color(Theme.DStextColorDisabled)
|
||||
property string themeTextSelectionColor: Theme.color(Theme.DStextSelectionColor)
|
||||
property string themeTextSelectedTextColor: Theme.color(Theme.DStextSelectedTextColor)
|
||||
property string themeTextColorDisabledMCU: "black" // TODO
|
||||
property string themeTextColorDisabledMCU: Theme.color(Theme.DStextColorDisabled)
|
||||
|
||||
property string themePlaceholderTextColor: Theme.color(Theme.DSplaceholderTextColor)
|
||||
property string themePlaceholderTextColorInteraction: Theme.color(Theme.DSplaceholderTextColorInteraction)
|
||||
|
Reference in New Issue
Block a user