use PlasmaCore.ColorScope when suitable
It is possible to put a PlasmaCore.ColorScope element, to automatically change the colors: if for instance the complementary scope will be set, all labels descendent of such element would flip their color Change-Id: I2214aca522eb094cf067d8726c5bf2a7ecbf36b3
This commit is contained in:
parent
8415c20760
commit
cb8175f1f6
@ -50,7 +50,7 @@ Text {
|
|||||||
font.underline: theme.defaultFont.underline
|
font.underline: theme.defaultFont.underline
|
||||||
font.weight: theme.defaultFont.weight
|
font.weight: theme.defaultFont.weight
|
||||||
font.wordSpacing: theme.defaultFont.wordSpacing
|
font.wordSpacing: theme.defaultFont.wordSpacing
|
||||||
color: theme.textColor
|
color: PlasmaCore.ColorScope.textColor
|
||||||
|
|
||||||
opacity: enabled? 1 : 0.6
|
opacity: enabled? 1 : 0.6
|
||||||
|
|
||||||
|
@ -36,9 +36,9 @@ QtQuickControlStyle.TextAreaStyle {
|
|||||||
|
|
||||||
font: theme.defaultFont
|
font: theme.defaultFont
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
textColor: theme.viewTextColor
|
textColor: control.backgroundVisible ? theme.viewTextColor : PlasmaCore.ColorScope.textColor
|
||||||
selectionColor: theme.viewFocusColor
|
selectionColor: control.backgroundVisible ? theme.viewFocusColor : PlasmaCore.ColorScope.highlightColor
|
||||||
selectedTextColor: theme.viewBackgroundColor
|
selectedTextColor: control.backgroundVisible ? theme.viewBackgroundColor : PlasmaCore.ColorScope.backgroundColor
|
||||||
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ QtQuickControlStyle.ButtonStyle {
|
|||||||
visible: control.text != ""
|
visible: control.text != ""
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: parent.height
|
height: parent.height
|
||||||
color: control.hovered || !control.flat ? theme.buttonTextColor : theme.textColor
|
color: control.hovered || !control.flat ? theme.buttonTextColor : PlasmaCore.ColorScope.textColor
|
||||||
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
Loading…
Reference in New Issue
Block a user