lock: static border
Not percentage + equal on all sides
This commit is contained in:
parent
b37a88d12d
commit
ac216cdbdb
2 changed files with 2 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ import Quickshell.Io
|
|||
|
||||
JsonObject {
|
||||
property JsonObject sizes: JsonObject {
|
||||
property real border: 0.1
|
||||
property int border: 100
|
||||
property int clockWidth: 800
|
||||
property int clockHeight: 200
|
||||
property int inputWidth: 600
|
||||
|
|
|
|||
|
|
@ -34,9 +34,7 @@ Item {
|
|||
id: innerMask
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.margins: root.locked ? root.height * Config.lock.sizes.border : 0
|
||||
anchors.leftMargin: root.locked ? root.width * Config.lock.sizes.border : 0
|
||||
anchors.rightMargin: root.locked ? root.width * Config.lock.sizes.border : 0
|
||||
anchors.margins: root.locked ? Config.lock.sizes.border : 0
|
||||
|
||||
radius: Appearance.rounding.large * 2
|
||||
|
||||
|
|
@ -67,8 +65,6 @@ Item {
|
|||
Shape {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Math.floor(innerMask.anchors.margins)
|
||||
anchors.leftMargin: innerMask.anchors.leftMargin
|
||||
anchors.rightMargin: innerMask.anchors.rightMargin
|
||||
|
||||
preferredRendererType: Shape.CurveRenderer
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue