From a78614a5806c9800956f10f993e1c70b74fbf323 Mon Sep 17 00:00:00 2001 From: ailurux Date: Thu, 7 Mar 2024 12:12:32 +1100 Subject: WIP: Getting styles from lua --- lua/styles.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lua/styles.lua (limited to 'lua/styles.lua') diff --git a/lua/styles.lua b/lua/styles.lua new file mode 100644 index 00000000..76ecad2a --- /dev/null +++ b/lua/styles.lua @@ -0,0 +1,23 @@ +local lvgl = require("lvgl") +local font = require("font") + +local styles = { + list_item = lvgl.Style { + pad_left = 4, + pad_right = 4, + }, + list_heading = lvgl.Style { + pad_top = 4, + pad_left = 4, + pad_right = 4, + text_font = font.fusion_10, + text_align = lvgl.ALIGN.CENTER, + }, + settings_title = lvgl.Style { + pad_top = 2, + pad_bottom = 4, + text_font = font.fusion_10, + } +} + +return styles -- cgit v1.2.3 From f1599c237c36f08e96dd5d1ab98bc04e35e1ade1 Mon Sep 17 00:00:00 2001 From: ailurux Date: Mon, 18 Mar 2024 13:11:13 +1100 Subject: Better styling for settings pages + dropdown menus --- lua/styles.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lua/styles.lua') diff --git a/lua/styles.lua b/lua/styles.lua index 76ecad2a..fd45263e 100644 --- a/lua/styles.lua +++ b/lua/styles.lua @@ -13,11 +13,6 @@ local styles = { text_font = font.fusion_10, text_align = lvgl.ALIGN.CENTER, }, - settings_title = lvgl.Style { - pad_top = 2, - pad_bottom = 4, - text_font = font.fusion_10, - } } return styles -- cgit v1.2.3