dankbar: fix border thickness

This commit is contained in:
bbedward committed 2025-12-05 09:29:45 -05:00
1 parent ae066f42a4
commit f9610d457c
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ Item {
active: borderFullPathCorrectShape && borderEdgePathCorrectShape
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 string borderColorKey: barConfig?.borderColor || "surfaceText"
readonly property color baseColor: (borderColorKey === "surfaceText") ? Theme.surfaceText : (borderColorKey === "primary") ? Theme.primary : Theme.secondary