glass design
This commit is contained in:
1 parent
f67d7f1c55
commit
f370e0de56
6 files changed
+194
-48
No files matched your search
@@ -2,7 +2,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import QtQuick.Layouts
|
||||
|
||||
Rectangle {
|
||||
Item {
|
||||
id: root
|
||||
|
||||
required property Theme theme
|
||||
@@ -21,11 +21,6 @@ Rectangle {
|
||||
|
||||
width: root.theme.cardWidth
|
||||
height: root.theme.cardHeight
|
||||
radius: root.theme.cardRadius
|
||||
color: root.theme.cardBg
|
||||
border.width: root.selected ? 3 : 1
|
||||
border.color: root.selected ? root.theme.fieldBorder : root.theme.barBorder
|
||||
clip: true
|
||||
|
||||
Behavior on anchors.verticalCenterOffset {
|
||||
enabled: root.animateMoves
|
||||
@@ -47,10 +42,20 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
Glass {
|
||||
anchors.fill: parent
|
||||
theme: root.theme
|
||||
radius: root.theme.cardRadius
|
||||
tint: root.theme.cardBg
|
||||
selected: root.selected
|
||||
shadow: true
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.fill: parent
|
||||
anchors.margins: root.theme.fieldPadding
|
||||
spacing: 6
|
||||
clip: true
|
||||
|
||||
// Top row: workspace name + index + current badge
|
||||
RowLayout {
|
||||
|
||||
Reference in new issue
Block a user