From 08a337d26d992d8783277a0a2a127b0b0dc102e4 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Tue, 9 Apr 2024 21:55:39 +0100 Subject: [PATCH] Add font size to theme --- ui/editor_bar.slint | 1 + ui/status_bar.slint | 2 ++ ui/theme.slint | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/ui/editor_bar.slint b/ui/editor_bar.slint index fb0f631..44f6360 100644 --- a/ui/editor_bar.slint +++ b/ui/editor_bar.slint @@ -10,6 +10,7 @@ export component EditorBar inherits Rectangle { padding: Theme.padding-md; spacing: Theme.padding-xl; Text { + font-size: Theme.font-md; vertical-alignment: center; text: "Damn look at all the options and shit here it's like Hammer 2!!"; } diff --git a/ui/status_bar.slint b/ui/status_bar.slint index f467825..640289e 100644 --- a/ui/status_bar.slint +++ b/ui/status_bar.slint @@ -11,6 +11,7 @@ export component StatusBar inherits Rectangle { padding-right: Theme.padding-lg; spacing: Theme.padding-lg; Text { + font-size: Theme.font-md; vertical-alignment: center; text: "Last saved: 18:50"; } @@ -18,6 +19,7 @@ export component StatusBar inherits Rectangle { VerticalSeparator { } Text { + font-size: Theme.font-md; vertical-alignment: center; text: "Saved by: Jayrude"; } diff --git a/ui/theme.slint b/ui/theme.slint index 5fed257..2e30aa0 100644 --- a/ui/theme.slint +++ b/ui/theme.slint @@ -18,4 +18,9 @@ export global Theme { in-out property radius-md: 8px; in-out property radius-lg: 16px; in-out property radius-xl: 32px; + + in-out property font-sm: 10px; + in-out property font-md: 12px; + in-out property font-lg: 16px; + in-out property font-xl: 24px; }