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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user