1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

meta: replace rectangles with DankRectangle shapes

This commit is contained in:
bbedward
2025-11-10 16:16:25 -05:00
parent 201a7e3b34
commit 471938adb6
12 changed files with 97 additions and 429 deletions

View File

@@ -4,6 +4,7 @@ import Quickshell.Hyprland
import Quickshell.Wayland
import qs.Common
import qs.Services
import qs.Widgets
PanelWindow {
id: root
@@ -213,16 +214,12 @@ PanelWindow {
}
}
Rectangle {
Item {
id: contentContainer
anchors.centerIn: parent
width: parent.width
height: parent.height
color: root.backgroundColor
radius: root.cornerRadius
border.color: root.borderColor
border.width: root.borderWidth
clip: false
layer.enabled: true
layer.smooth: false
@@ -241,6 +238,14 @@ PanelWindow {
}
}
DankRectangle {
anchors.fill: parent
color: root.backgroundColor
borderColor: root.borderColor
borderWidth: root.borderWidth
radius: root.cornerRadius
}
FocusScope {
anchors.fill: parent
focus: root.shouldBeVisible