From 5d472ab086595d3b51f238a953a5d185434e1cec Mon Sep 17 00:00:00 2001 From: Damocles Date: Mon, 13 Apr 2026 21:21:07 +0200 Subject: [PATCH] frosted glass background for bar groups --- modules/BarGroup.qml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/modules/BarGroup.qml b/modules/BarGroup.qml index 5743ae8..9a344e5 100644 --- a/modules/BarGroup.qml +++ b/modules/BarGroup.qml @@ -56,17 +56,17 @@ Item { shadowHorizontalOffset: 0 } - // Solid background + // Frosted base — semi-transparent so the bar background bleeds through Rectangle { anchors.fill: parent topLeftRadius: root._tlr topRightRadius: root._trr bottomLeftRadius: root._blr bottomRightRadius: root._brr - color: M.Theme.base01 + color: Qt.rgba(M.Theme.base01.r, M.Theme.base01.g, M.Theme.base01.b, 0.55) } - // Accent gradient overlay + // Frost sheen — subtle white highlight, top-heavy Rectangle { anchors.fill: parent topLeftRadius: root._tlr @@ -76,7 +76,26 @@ Item { gradient: Gradient { GradientStop { position: 0 - color: Qt.rgba(root.borderColor.r, root.borderColor.g, root.borderColor.b, 0.15) + color: Qt.rgba(1, 1, 1, 0.07) + } + GradientStop { + position: 0.5 + color: "transparent" + } + } + } + + // Accent tint + Rectangle { + anchors.fill: parent + topLeftRadius: root._tlr + topRightRadius: root._trr + bottomLeftRadius: root._blr + bottomRightRadius: root._brr + gradient: Gradient { + GradientStop { + position: 0 + color: Qt.rgba(root.borderColor.r, root.borderColor.g, root.borderColor.b, 0.12) } GradientStop { position: 1