1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

processlist: breakout and de-dupe code, change styles

Also reverts bluetooth pairing modals since quickshell did not approve
of the PR
This commit is contained in:
bbedward
2025-07-23 10:03:29 -04:00
parent e94d2af9ae
commit 70f8a127c6
23 changed files with 2485 additions and 3726 deletions

View File

@@ -16,8 +16,8 @@ PanelWindow {
property real height: 300
// Screen-relative sizing helpers
readonly property real screenWidth: parent ? parent.width : width
readonly property real screenHeight: parent ? parent.height : height
readonly property real screenWidth: screen ? screen.width : 1920
readonly property real screenHeight: screen ? screen.height : 1080
// Background behavior
property bool showBackground: true
@@ -123,7 +123,7 @@ PanelWindow {
anchors.centerIn: positioning === "center" ? parent : undefined
x: {
if (positioning === "top-right") {
return Math.max(Theme.spacingL, parent.width - width - Theme.spacingL)
return Math.max(Theme.spacingL, root.screenWidth - width - Theme.spacingL)
} else if (positioning === "custom") {
return root.customPosition.x
}

View File

@@ -8,15 +8,18 @@ import qs.Common
IconImage {
id: root
property color color: Theme.surfaceText
property string colorOverride: ""
property real brightnessOverride: 0.5
property real contrastOverride: 1.0
smooth: true
asynchronous: true
layer.enabled: true
layer.enabled: colorOverride !== ""
layer.effect: MultiEffect {
colorization: 1
colorizationColor: root.color
brightness: 0.5
colorizationColor: colorOverride
brightness: brightnessOverride
contrast: contrastOverride
}
Process {
running: true