feat: add border smoothing option

This commit is contained in:
2 * r + 2 * t 2026-04-13 22:30:49 +10:00
parent b1401c1c8c
commit 50c4eaf75b
3 changed files with 3 additions and 0 deletions

View file

@ -483,6 +483,7 @@ For example, to disable the bar on DP-1:
}, },
"border": { "border": {
"rounding": 25, "rounding": 25,
"smoothing": 32,
"thickness": 10 "thickness": 10
}, },
"dashboard": { "dashboard": {

View file

@ -131,6 +131,7 @@ StyledWindow {
id: blobGroup id: blobGroup
color: Colours.palette.m3surface color: Colours.palette.m3surface
smoothing: root.contentItem.Config.border.smoothing
Behavior on color { Behavior on color {
CAnim {} CAnim {}

View file

@ -12,6 +12,7 @@ class BorderConfig : public ConfigObject {
CONFIG_PROPERTY(int, thickness, 10) CONFIG_PROPERTY(int, thickness, 10)
CONFIG_PROPERTY(int, rounding, 25) CONFIG_PROPERTY(int, rounding, 25)
CONFIG_PROPERTY(int, smoothing, 32)
Q_PROPERTY(int minThickness READ minThickness CONSTANT) Q_PROPERTY(int minThickness READ minThickness CONSTANT)
Q_PROPERTY(int clampedThickness READ clampedThickness NOTIFY thicknessChanged) Q_PROPERTY(int clampedThickness READ clampedThickness NOTIFY thicknessChanged)