diff options
| author | Simon Glass <[email protected]> | 2025-05-02 08:46:43 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2025-05-30 09:49:32 +0100 |
| commit | d25c62fd58fa664314db3bdbbbb0707757666297 (patch) | |
| tree | e543a828bfc8aee754c1a422868b2f769949bb04 /boot | |
| parent | 03f9ce815cbba660bb4c8e7cd28cfc19219631c8 (diff) | |
expo: Support white-on-black in the theme
Allow this setting to be controlled from the theme.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/expo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boot/expo.c b/boot/expo.c index 4404fcb67e9..7dbcac78c22 100644 --- a/boot/expo.c +++ b/boot/expo.c @@ -277,6 +277,7 @@ int expo_apply_theme(struct expo *exp, ofnode node) { struct scene *scn; struct expo_theme *theme = &exp->theme; + bool white_on_black; int ret; log_debug("Applying theme %s\n", ofnode_get_name(node)); @@ -287,6 +288,9 @@ int expo_apply_theme(struct expo *exp, ofnode node) ofnode_read_u32(node, "menuitem-gap-y", &theme->menuitem_gap_y); ofnode_read_u32(node, "menu-title-margin-x", &theme->menu_title_margin_x); + white_on_black = ofnode_read_bool(node, "white-on-black"); + if (exp->display) + video_set_white_on_black(exp->display, white_on_black); list_for_each_entry(scn, &exp->scene_head, sibling) { ret = scene_apply_theme(scn, theme); |
