glass design
This commit is contained in:
1 parent
f67d7f1c55
commit
f370e0de56
6 files changed
+194
-48
No files matched your search
@@ -3,7 +3,7 @@ import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
// One window on the window loop: a preview with the icon, title and app below.
|
||||
Rectangle {
|
||||
Item {
|
||||
id: root
|
||||
|
||||
required property Theme theme
|
||||
@@ -34,11 +34,15 @@ Rectangle {
|
||||
|
||||
width: root.theme.loopCardWidth
|
||||
height: root.theme.loopCardHeight
|
||||
radius: root.theme.loopCardRadius
|
||||
color: root.theme.loopCardBg
|
||||
border.width: root.selected ? 3 : 1
|
||||
border.color: root.selected ? root.theme.fieldBorder : root.theme.barBorder
|
||||
antialiasing: true
|
||||
|
||||
Glass {
|
||||
anchors.fill: parent
|
||||
theme: root.theme
|
||||
radius: root.theme.loopCardRadius
|
||||
tint: root.theme.loopCardBg
|
||||
selected: root.selected
|
||||
shadow: true
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: previewArea
|
||||
@@ -49,6 +53,9 @@ Rectangle {
|
||||
anchors.margins: root.theme.loopCardPadding
|
||||
radius: root.theme.loopPreviewRadius
|
||||
color: root.theme.loopPreviewBg
|
||||
// A faint edge, so it reads as a pane set into the glass.
|
||||
border.width: 1
|
||||
border.color: root.theme.glassRimBottom
|
||||
clip: true
|
||||
|
||||
// Holds the live view and the snapshot. Once a picture is ready it
|
||||
@@ -183,7 +190,7 @@ Rectangle {
|
||||
// Darkens cards toward the back of the loop.
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: parent.radius
|
||||
radius: root.theme.loopCardRadius
|
||||
color: "black"
|
||||
opacity: root.shade * root.theme.loopBackShade
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user