summaryrefslogtreecommitdiff
path: root/boot/expo.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 19:23:00 +0300
committerTom Rini <trini@konsulko.com>2023-07-14 19:54:51 +0300
commit7230fdb3837ad745adff4cf129dd04e893fe0a36 (patch)
treebcc1e33d0dddea62b60e1175e2a6c2c72865cef5 /boot/expo.c
parent4e64beeba7de7720b42714cbc542c9f7dfbba841 (diff)
downloadu-boot-7230fdb3837ad745adff4cf129dd04e893fe0a36.tar.xz
expo: Add spacing around menus and items
It looks better if menus have a bit of an inset, rather than be drawn hard up against the background. Also, menu items look better if they have a bit of spacing between them. Add theme options for these and implement the required changes. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/expo.c')
-rw-r--r--boot/expo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/boot/expo.c b/boot/expo.c
index e99555163c..8c6fbc0e30 100644
--- a/boot/expo.c
+++ b/boot/expo.c
@@ -254,6 +254,8 @@ int expo_apply_theme(struct expo *exp, ofnode node)
memset(theme, '\0', sizeof(struct expo_theme));
ofnode_read_u32(node, "font-size", &theme->font_size);
+ ofnode_read_u32(node, "menu-inset", &theme->menu_inset);
+ ofnode_read_u32(node, "menuitem-gap-y", &theme->menuitem_gap_y);
list_for_each_entry(scn, &exp->scene_head, sibling) {
ret = scene_apply_theme(scn, theme);