feat: add border smoothing option
This commit is contained in:
parent
b1401c1c8c
commit
50c4eaf75b
3 changed files with 3 additions and 0 deletions
|
|
@ -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": {
|
||||||
|
|
|
||||||
|
|
@ -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 {}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue