more use of ColorScope

This commit is contained in:
Marco Martin 2019-11-29 14:57:21 +01:00
parent 09e7a5a6bb
commit 7a301be293
5 changed files with 6 additions and 6 deletions

View File

@ -271,7 +271,7 @@ T.ComboBox {
}
radius: 2
color: theme.viewBackgroundColor
border.color: Qt.rgba(theme.textColor.r, theme.textColor.g, theme.textColor.b, 0.3)
border.color: Qt.rgba(PlasmaCore.ColorScope.textColor.r, PlasmaCore.ColorScope.textColor.g, PlasmaCore.ColorScope.textColor.b, 0.3)
layer.enabled: true
layer.effect: DropShadow {

View File

@ -43,14 +43,14 @@ T.Dial {
ctx.globalAlpha = 0.3;
ctx.beginPath();
ctx.strokeStyle = theme.textColor;
ctx.strokeStyle = control.PlasmaCore.ColorScope.textColor;
ctx.lineWidth=5;
ctx.arc(centreX, centreY, width/2.4, 0, 2*Math.PI, false);
ctx.stroke();
ctx.globalAlpha = 1;
ctx.beginPath();
ctx.strokeStyle = theme.highlightColor;
ctx.strokeStyle = control.PlasmaCore.ColorScope.highlightColor;
ctx.lineWidth=5;
ctx.arc(centreX, centreY, width/2.4, 0.7*Math.PI, 1.6*Math.PI * control.position - 1.25*Math.PI, false);
ctx.stroke();

View File

@ -39,7 +39,7 @@ T.TabButton {
font: control.font
elide: Text.ElideRight
opacity: enabled ? 1 : 0.3
color: theme.textColor
color: PlasmaCore.ColorScope.textColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}

View File

@ -28,7 +28,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
Style {
id: styleRoot
property color textColor: theme.textColor
property color textColor: PlasmaCore.ColorScope.textColor
property Component checkbox: PlasmaComponents.CheckBox {
checked: control.checked

View File

@ -40,7 +40,7 @@ QtQuickControlStyle.StatusBarStyle {
anchors.top: parent.top
width: parent.width
height: 1
color: theme.textColor
color: PlasmaCore.ColorScope.textColor
opacity: 0.1
}
}