mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix Qt.rgba color arguments
Qt.rgba expects 0.0–1.0 floats. Passing 255 for R/G/B saturates every channel to 1.0, producing opaque white instead of the intended semi-transparent tint. Fix all call sites across FavouritesBar, StatusBar, and AbstractDelegate.
This commit is contained in:
parent
dd7f087fac
commit
76e027f630
3 changed files with 8 additions and 8 deletions
|
|
@ -92,7 +92,7 @@ Item {
|
||||||
// Hover highlight in convergence mode to indicate the bar is clickable
|
// Hover highlight in convergence mode to indicate the bar is clickable
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Qt.rgba(255, 255, 255, 0.1)
|
color: Qt.rgba(1.0, 1.0, 1.0, 0.1)
|
||||||
visible: ShellSettings.Settings.convergenceModeEnabled && statusBarHover.hovered
|
visible: ShellSettings.Settings.convergenceModeEnabled && statusBarHover.hovered
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,8 +130,8 @@ MouseArea {
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
width: root.navButtonWidth
|
width: root.navButtonWidth
|
||||||
color: homeMouseArea.containsPress
|
color: homeMouseArea.containsPress
|
||||||
? Qt.rgba(255, 255, 255, 0.2)
|
? Qt.rgba(1, 1, 1, 0.2)
|
||||||
: (homeMouseArea.containsMouse ? Qt.rgba(255, 255, 255, 0.1) : "transparent")
|
: (homeMouseArea.containsMouse ? Qt.rgba(1, 1, 1, 0.1) : "transparent")
|
||||||
radius: Kirigami.Units.cornerRadius
|
radius: Kirigami.Units.cornerRadius
|
||||||
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
|
|
@ -160,8 +160,8 @@ MouseArea {
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
width: root.navButtonWidth
|
width: root.navButtonWidth
|
||||||
color: overviewMouseArea.containsPress
|
color: overviewMouseArea.containsPress
|
||||||
? Qt.rgba(255, 255, 255, 0.2)
|
? Qt.rgba(1, 1, 1, 0.2)
|
||||||
: (overviewMouseArea.containsMouse ? Qt.rgba(255, 255, 255, 0.1) : "transparent")
|
: (overviewMouseArea.containsMouse ? Qt.rgba(1, 1, 1, 0.1) : "transparent")
|
||||||
radius: Kirigami.Units.cornerRadius
|
radius: Kirigami.Units.cornerRadius
|
||||||
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
|
|
@ -854,8 +854,8 @@ MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Kirigami.Units.cornerRadius
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: taskMouseArea.containsPress
|
color: taskMouseArea.containsPress
|
||||||
? Qt.rgba(255, 255, 255, 0.2)
|
? Qt.rgba(1.0, 1.0, 1.0, 0.2)
|
||||||
: (taskMouseArea.containsMouse ? Qt.rgba(255, 255, 255, 0.1) : "transparent")
|
: (taskMouseArea.containsMouse ? Qt.rgba(1.0, 1.0, 1.0, 0.1) : "transparent")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Task icon
|
// Task icon
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ Folio.DelegateTouchArea {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Kirigami.Units.cornerRadius
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: Qt.rgba(255, 255, 255, 0.1)
|
color: Qt.rgba(1.0, 1.0, 1.0, 0.1)
|
||||||
visible: ShellSettings.Settings.convergenceModeEnabled && root.hovered
|
visible: ShellSettings.Settings.convergenceModeEnabled && root.hovered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue