feat: refactor bar spacing functions to use dedicated functions
This commit is contained in:
+9
-3
@@ -12,9 +12,13 @@ QtObject {
|
||||
|
||||
readonly property int small_spacing: 4
|
||||
readonly property int spacing: 8
|
||||
function small_spacing_fun(screenHeight) { return Math.floor(barHeight(screenHeight) / 16) }
|
||||
function spacing_fun(barH) { return Math.floor(barH / 8) }
|
||||
function big_spacing_fun(barH) { return Math.floor(barH / 6) }
|
||||
function bar_small_bar_spacing_fun(barH) { return Math.floor(barHeight(barH) / 16) }
|
||||
function bar_spacing_fun(barH) { return Math.floor(barH / 8) }
|
||||
function bar_big_spacing_fun(barH) { return Math.floor(barH / 6) }
|
||||
|
||||
function screen_small_bar_spacing_fun(screenHeight) { return Math.floor((screenHeight / 1080)*2) }
|
||||
function screen_spacing_fun(screenHeight) { return Math.floor((screenHeight / 1080)*4) }
|
||||
function screen_big_spacing_fun(screenHeight) { return Math.floor((screenHeight / 1080)*8) }
|
||||
|
||||
function font_size(spaceHeight) { return Math.floor(spaceHeight * 0.75) }
|
||||
function font_size_small(spaceHeight) { return Math.floor(spaceHeight * 0.625) }
|
||||
@@ -29,6 +33,8 @@ QtObject {
|
||||
readonly property int radius: 16
|
||||
function small_radius_fun(barHeight) { return Math.floor(barHeight / 8) }
|
||||
function radius_fun(barHeight) { return Math.floor(barHeight / 4) }
|
||||
function screen_radius_fun(screenHeight) { return Math.floor((screenHeight / 1080)*4) }
|
||||
function screen_big_radius_fun(screenHeight) { return Math.floor((screenHeight / 1080)*6) }
|
||||
readonly property int big_radius: 10
|
||||
readonly property int border_width: 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user