mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
Port away from the global "theme" object to PlasmaCore.Theme
Like we've done for the rest of Plasma
This commit is contained in:
parent
182d7501d0
commit
d332582328
15 changed files with 23 additions and 23 deletions
|
|
@ -123,7 +123,7 @@ Item {
|
|||
id: metrics
|
||||
text: "M\nM"
|
||||
visible: false
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
}
|
||||
|
||||
OpenDrawerButton {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ MouseArea {
|
|||
radius: width
|
||||
width: units.smallSpacing
|
||||
height: width
|
||||
color: theme.highlightColor
|
||||
color: PlasmaCore.Theme.highlightColor
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ MouseArea {
|
|||
text: model.applicationName
|
||||
|
||||
//FIXME: export smallestReadableFont
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
color: "white"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ ContainmentLayoutManager.ItemContainer {
|
|||
radius: width
|
||||
width: PlasmaCore.Units.smallSpacing
|
||||
height: width
|
||||
color: theme.highlightColor
|
||||
color: PlasmaCore.Theme.highlightColor
|
||||
}
|
||||
//TODO: in loader?
|
||||
Private.DelegateRemoveButton {
|
||||
|
|
@ -155,8 +155,8 @@ ContainmentLayoutManager.ItemContainer {
|
|||
text: model.applicationName
|
||||
|
||||
//FIXME: export smallestReadableFont
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||
color: "white"//model.applicationLocation == HomeScreenComponents.ApplicationListModel.Desktop ? "white" : theme.textColor
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
color: "white"//model.applicationLocation == HomeScreenComponents.ApplicationListModel.Desktop ? "white" : PlasmaCore.Theme.textColor
|
||||
|
||||
layer.enabled: true//model.applicationLocation == HomeScreenComponents.ApplicationListModel.Desktop
|
||||
layer.effect: DropShadow {
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ DragDrop.DropArea {
|
|||
id: metrics
|
||||
text: "M\nM"
|
||||
visible: false
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
}
|
||||
LauncherRepeater {
|
||||
id: launcherRepeater
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ Item {
|
|||
id: metrics
|
||||
text: "M\nM"
|
||||
visible: false
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ PlasmaCore.ToolTipArea {
|
|||
id: actionText
|
||||
text: button.text
|
||||
style: Text.Outline
|
||||
color: theme.textColor
|
||||
color: PlasmaCore.Theme.textColor
|
||||
styleColor: Qt.rgba(1,1,1,0.4)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ MouseArea {
|
|||
left: parent.left
|
||||
verticalCenterOffset: -arrowUpIcon.height/4 + (arrowUpIcon.height/4) * arrowUpIcon.factor
|
||||
}
|
||||
color: PlasmaCore.Theme.complementaryBackgroundColor
|
||||
color: PlasmaCore.Theme.backgroundColor
|
||||
transformOrigin: Item.Right
|
||||
rotation: -45 + 90 * arrowUpIcon.factor
|
||||
antialiasing: true
|
||||
|
|
@ -64,7 +64,7 @@ MouseArea {
|
|||
right: parent.right
|
||||
verticalCenterOffset: -arrowUpIcon.height/4 + (arrowUpIcon.height/4) * arrowUpIcon.factor
|
||||
}
|
||||
color: PlasmaCore.Theme.complementaryBackgroundColor
|
||||
color: PlasmaCore.Theme.backgroundColor
|
||||
transformOrigin: Item.Left
|
||||
rotation: 45 - 90 * arrowUpIcon.factor
|
||||
antialiasing: true
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ ColumnLayout {
|
|||
text: delegateRoot.text
|
||||
bottomPadding: units.smallSpacing * 2
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
font.pixelSize: theme.defaultFont.pixelSize * 0.8
|
||||
font.pixelSize: PlasmaCore.Theme.defaultFont.pixelSize * 0.8
|
||||
elide: Text.ElideRight
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ Item {
|
|||
width: parent.width
|
||||
height: parent.height
|
||||
radius: units.smallSpacing
|
||||
color: theme.backgroundColor
|
||||
color: PlasmaCore.Theme.backgroundColor
|
||||
opacity: 1 * (1-Math.abs(x)/width)
|
||||
|
||||
MouseArea {
|
||||
|
|
@ -126,7 +126,7 @@ Item {
|
|||
horizontalAlignment: Text.AlignHCenter
|
||||
elide: Text.ElideRight
|
||||
text: model.AppName
|
||||
color: theme.textColor
|
||||
color: PlasmaCore.Theme.textColor
|
||||
}
|
||||
PlasmaComponents.ToolButton {
|
||||
z: 99
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ Item {
|
|||
|
||||
PlasmaComponents3.Label {
|
||||
id: label
|
||||
font.pointSize: Math.max(fontSize + 1,theme.defaultFont.pointSize + 1)
|
||||
font.pointSize: Math.max(fontSize + 1,PlasmaCore.Theme.defaultFont.pointSize + 1)
|
||||
anchors {
|
||||
top: icon.bottom
|
||||
topMargin: (softwareRendering ? 1.5 : 1) * units.smallSpacing
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ Item {
|
|||
|
||||
PlasmaComponents.Label {
|
||||
id: usernameDelegate
|
||||
font.pointSize: Math.max(fontSize + 2,theme.defaultFont.pointSize + 2)
|
||||
font.pointSize: Math.max(fontSize + 2, PlasmaCore.Theme.defaultFont.pointSize + 2)
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ Item {
|
|||
elide: Text.ElideRight
|
||||
text: mpris2Source.track || i18nd("plasma_lookandfeel_org.kde.lookandfeel", "No media playing")
|
||||
textFormat: Text.PlainText
|
||||
font.pointSize: theme.defaultFont.pointSize + 1
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize + 1
|
||||
maximumLineCount: 1
|
||||
}
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ Item {
|
|||
// if no artist is given, show player name instead
|
||||
text: mpris2Source.artist || mpris2Source.identity || ""
|
||||
textFormat: Text.PlainText
|
||||
font.pointSize: theme.smallestFont.pointSize + 1
|
||||
font.pointSize: PlasmaCore.Theme.smallestFont.pointSize + 1
|
||||
maximumLineCount: 1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,11 +80,11 @@ RowLayout {
|
|||
// and plasma-pa:VolumeSlider.qml
|
||||
color: {
|
||||
if (progressBar.value <= 100) {
|
||||
return theme.textColor
|
||||
return PlasmaCore.Theme.textColor
|
||||
} else if (progressBar.value > 100 && progressBar.value <= 125) {
|
||||
return theme.neutralTextColor
|
||||
return PlasmaCore.Theme.neutralTextColor
|
||||
} else {
|
||||
return theme.negativeTextColor
|
||||
return PlasmaCore.Theme.negativeTextColor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Rectangle {
|
|||
visible: false //adjust borders is run during setup. We want to avoid painting till completed
|
||||
property Item containment
|
||||
|
||||
color: (containment && containment.backgroundHints == PlasmaCore.Types.NoBackground) ? "transparent" : theme.textColor
|
||||
color: (containment && containment.backgroundHints == PlasmaCore.Types.NoBackground) ? "transparent" : PlasmaCore.Theme.textColor
|
||||
|
||||
function toggleWidgetExplorer(containment) {
|
||||
console.log("Widget Explorer toggled");
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Rectangle {
|
|||
visible: false //adjust borders is run during setup. We want to avoid painting till completed
|
||||
property Item containment
|
||||
|
||||
color: !containment || containment.backgroundHints == PlasmaCore.Types.NoBackground ? "transparent" : theme.textColor
|
||||
color: !containment || containment.backgroundHints == PlasmaCore.Types.NoBackground ? "transparent" : PlasmaCore.Theme.textColor
|
||||
|
||||
onContainmentChanged: {
|
||||
containment.parent = root;
|
||||
|
|
|
|||
Loading…
Reference in a new issue