More tweaking and standardization

This commit is contained in:
David Heinemeier Hansson
2026-05-18 15:54:14 +02:00
parent acf617e05e
commit f3ba505558
9 changed files with 41 additions and 29 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ Rectangle {
color: selected
? Qt.rgba(accent.r, accent.g, accent.b, 0.18)
: ((mouse.containsMouse || hasCursor) ? Qt.rgba(foreground.r, foreground.g, foreground.b, 0.12) : background)
: ((mouse.containsMouse || hasCursor) ? Qt.rgba(foreground.r, foreground.g, foreground.b, 0.08) : background)
border.color: selected
? accent
: (activeFocus ? foreground : Qt.rgba(foreground.r, foreground.g, foreground.b, 0.4))
+2 -2
View File
@@ -13,8 +13,8 @@ Rectangle {
property bool current: false
property color foreground: "#cacccc"
property color fill: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.12)
property color currentFill: fill
property color fill: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.08)
property color currentFill: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.18)
radius: Style.cornerRadius
color: hasCursor ? fill : (current ? currentFill : "transparent")
+1 -1
View File
@@ -10,7 +10,7 @@ Rectangle {
property string tooltipText: ""
property color foreground: "#cacccc"
property color background: "transparent"
property color hoverBackground: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.12)
property color hoverBackground: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.08)
property color pressedBackground: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.22)
property color tooltipBackground: "#101315"
property color tooltipForeground: foreground
+4 -4
View File
@@ -48,13 +48,13 @@ Rectangle {
implicitWidth: 240
radius: Style.cornerRadius
color: activeFocus || hasCursor
color: activeFocus
? Style.focusFillColor
: (mouse.containsMouse ? Style.hotFill : Qt.rgba(foreground.r, foreground.g, foreground.b, 0.03))
border.color: activeFocus || hasCursor
: ((hasCursor || mouse.containsMouse) ? Qt.rgba(foreground.r, foreground.g, foreground.b, 0.08) : Qt.rgba(foreground.r, foreground.g, foreground.b, 0.03))
border.color: activeFocus
? Style.focusBorderColor
: Qt.rgba(foreground.r, foreground.g, foreground.b, 0.12)
border.width: activeFocus || hasCursor ? Style.focusBorderWidth : 1
border.width: activeFocus ? Style.focusBorderWidth : 1
Behavior on color { ColorAnimation { duration: 100 } }