feat: add screen height to font functions in Config. Added actions, inline Reply and urgency to NotificationBody
This commit is contained in:
@@ -20,6 +20,11 @@ QtObject {
|
||||
function font_size_small(spaceHeight) { return Math.floor(spaceHeight * 0.625) }
|
||||
function font_size_tiny(spaceHeight) { return Math.floor(spaceHeight * 0.4) }
|
||||
|
||||
function screen_height_to_font_tiny(screenHeight) {return Math.round(9 * screenHeight / 1080)}
|
||||
function screen_height_to_font_small(screenHeight) {return Math.round(12 * screenHeight / 1080)}
|
||||
function screen_height_to_font_medium(screenHeight) {return Math.round(16 * screenHeight / 1080)}
|
||||
function screen_height_to_font_big(screenHeight) {return Math.round(22 * screenHeight / 1080)}
|
||||
|
||||
readonly property int small_radius: 8
|
||||
readonly property int radius: 16
|
||||
function small_radius_fun(barHeight) { return Math.floor(barHeight / 8) }
|
||||
|
||||
Reference in New Issue
Block a user