Normalize bar icon size and alignment
This commit is contained in:
17 files changed
+540
-116
No files matched your search
@@ -353,6 +353,7 @@ QtObject {
|
||||
readonly property int iconSlot: root.barToken("icon-slot", 27)
|
||||
readonly property int iconCanvas: root.barToken("icon-canvas", 16)
|
||||
readonly property int iconFont: root.barToken("icon-font", 13)
|
||||
readonly property int iconSize: Math.min(iconCanvas, root.barToken("icon-size", 12))
|
||||
readonly property int statusSlot: root.barToken("status-slot", 21)
|
||||
}
|
||||
|
||||
@@ -424,7 +425,9 @@ QtObject {
|
||||
} else if (section === "bar") {
|
||||
if (key === "scale-with-font") {
|
||||
nextBarScaleWithFont = boolToken(raw, nextBarScaleWithFont)
|
||||
} else if (key === "size-horizontal" || key === "size-vertical" || key === "notch-height") {
|
||||
} else if (key === "size-horizontal" || key === "size-vertical" || key === "notch-height"
|
||||
|| key === "icon-slot" || key === "icon-canvas" || key === "icon-font"
|
||||
|| key === "icon-size" || key === "status-slot") {
|
||||
var b = parseInt(raw, 10)
|
||||
if (isFinite(b)) barOut[key] = b
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user