mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 14:32:52 -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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user