forked from qt-creator/qt-creator
QmlDesigner: fix state controls highlight and selection
Change-Id: I4101c6cd2d9028579bdae3710f36e6a3e254b53d Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -41,7 +41,7 @@ T.ScrollBar {
|
|||||||
radius: width / 2
|
radius: width / 2
|
||||||
opacity: 0.0
|
opacity: 0.0
|
||||||
color: scrollBar.pressed ? StudioTheme.Values.themeScrollBarHandle //"#4C4C4C"//DARK
|
color: scrollBar.pressed ? StudioTheme.Values.themeScrollBarHandle //"#4C4C4C"//DARK
|
||||||
: StudioTheme.Values.themeScrollBarTrack //"#3E3E3E"//DARK
|
: StudioTheme.Values.themeScrollBarHandle //"#3E3E3E"//DARK
|
||||||
|
|
||||||
states: State {
|
states: State {
|
||||||
name: "active"
|
name: "active"
|
||||||
|
|||||||
@@ -11,13 +11,23 @@ ControlStyle {
|
|||||||
|
|
||||||
background: ControlStyle.BackgroundColors {
|
background: ControlStyle.BackgroundColors {
|
||||||
idle: Values.themeToolbarBackground
|
idle: Values.themeToolbarBackground
|
||||||
hover: Values.themeStateControlBackgroundColor_hover
|
hover: Values.themeStateControlBackgroundColor_globalHover
|
||||||
globalHover: Values.themeStateControlBackgroundColor_globalHover
|
globalHover: Values.themeStateControlBackgroundColor_globalHover
|
||||||
interaction: Values.themeInteraction
|
interaction: Values.themeToolbarBackground
|
||||||
|
}
|
||||||
|
text: ControlStyle.TextColors {
|
||||||
|
idle: Values.themeTextColor
|
||||||
|
interaction: Values.themeTextSelectedTextColor
|
||||||
|
hover: Values.themeTextColor
|
||||||
|
disabled: Values.themeTextColorDisabled
|
||||||
|
selection: Values.themeTextSelectionColor
|
||||||
|
selectedText: Values.themeTextSelectedTextColor
|
||||||
|
placeholder: Values.themeTextColor
|
||||||
|
placeholderInteraction: Values.themeTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
border: ControlStyle.BorderColors {
|
border: ControlStyle.BorderColors {
|
||||||
hover: Values.themeControlBackground_toolbarHover
|
idle: Values.controlOutline_toolbarIdle
|
||||||
|
hover: Values.themeStateHighlight
|
||||||
interaction: Values.themeInteraction
|
interaction: Values.themeInteraction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -358,6 +358,7 @@ QtObject {
|
|||||||
property color themeTabInactiveBackground: Theme.color(Theme.DStabInactiveBackground)
|
property color themeTabInactiveBackground: Theme.color(Theme.DStabInactiveBackground)
|
||||||
property color themeTabInactiveText: Theme.color(Theme.DStabInactiveText)
|
property color themeTabInactiveText: Theme.color(Theme.DStabInactiveText)
|
||||||
|
|
||||||
|
|
||||||
// State Editor
|
// State Editor
|
||||||
property color themeStateSeparator: Theme.color(Theme.DSstateSeparatorColor)
|
property color themeStateSeparator: Theme.color(Theme.DSstateSeparatorColor)
|
||||||
property color themeStateBackground: Theme.color(Theme.DSstateBackgroundColor)
|
property color themeStateBackground: Theme.color(Theme.DSstateBackgroundColor)
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ DSstateBackgroundColor=ffe0e0e0
|
|||||||
DSstatePreviewOutline=ff363636
|
DSstatePreviewOutline=ff363636
|
||||||
|
|
||||||
DSstatePanelBackground=ffdadada
|
DSstatePanelBackground=ffdadada
|
||||||
DSstateHighlight=ff8d8d8d
|
DSstateHighlight=offWhite
|
||||||
|
|
||||||
DSchangedStateText=ff99ccff
|
DSchangedStateText=ff99ccff
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user