Skip to content

Commit

Permalink
fix: use negative border width when disabled to avoid rendering issue
Browse files Browse the repository at this point in the history
closes: #64
  • Loading branch information
luisbocanegra committed Sep 21, 2024
1 parent 8d582c1 commit 911eff7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ PlasmoidItem {
bottomLeftRadius: radiusEnabled ? cfg.radius.bottomLeft : 0
bottomRightRadius: radiusEnabled ? cfg.radius.bottomRight : 0
}
border {
width: -1
}
Kirigami.Theme.colorSet: Kirigami.Theme[bgColorCfg.systemColorSet]
Kirigami.Theme.inherit: bgColorCfg.sourceType === 1
color: {
Expand Down Expand Up @@ -525,7 +528,7 @@ PlasmoidItem {
visible: !cfg.border.customSides
border {
color: borderRec.borderColor
width: cfg.border.width
width: cfg.border.width || -1
}
corners {
topLeftRadius: cfg.radius.topLeft
Expand Down

0 comments on commit 911eff7

Please sign in to comment.