1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

dankbar: fix border thickness

This commit is contained in:
bbedward
2025-12-05 09:29:45 -05:00
parent ae066f42a4
commit f9610d457c

View File

@@ -120,7 +120,7 @@ Item {
active: borderFullPathCorrectShape && borderEdgePathCorrectShape active: borderFullPathCorrectShape && borderEdgePathCorrectShape
readonly property real _scale: CompositorService.getScreenScale(barWindow.screen) readonly property real _scale: CompositorService.getScreenScale(barWindow.screen)
readonly property real borderThickness: Theme.px(Math.max(1, barConfig?.borderThickness ?? 1), _scale) readonly property real borderThickness: Math.ceil(Math.max(1, barConfig?.borderThickness ?? 1) * _scale) / _scale
readonly property real inset: borderThickness / 2 readonly property real inset: borderThickness / 2
readonly property string borderColorKey: barConfig?.borderColor || "surfaceText" readonly property string borderColorKey: barConfig?.borderColor || "surfaceText"
readonly property color baseColor: (borderColorKey === "surfaceText") ? Theme.surfaceText : (borderColorKey === "primary") ? Theme.primary : Theme.secondary readonly property color baseColor: (borderColorKey === "surfaceText") ? Theme.surfaceText : (borderColorKey === "primary") ? Theme.primary : Theme.secondary