Skip to content
Snippets Groups Projects
Commit 57bd6615 authored by Johannes Marbach's avatar Johannes Marbach
Browse files

Unbreak styling of message box label

parent 1048c76a
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ If a change only affects particular applications, they are listed in parentheses
- feat(buffyboard): Allow disabling input devices via config
- feat(buffyboard): Add CLI flags for overriding geometry & DPI
- fix(unl0kr): Shutdown message box doesn't close on decline
- fix(unl0kr): Shutdown message box buttons are unstyled
- fix(unl0kr): Shutdown message box buttons and label are unstyled
- fix(unl0kr): Build fails when DRM is disabled
- misc: Update lvgl to git master (2023-03-30)
......
......@@ -285,8 +285,11 @@ static void apply_theme_cb(lv_theme_t *theme, lv_obj_t *obj) {
return;
}
if (lv_obj_check_type(obj, &lv_label_class) && (lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_class) || lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_content_class))) {
lv_obj_add_style(obj, &(styles.msgbox_label), 0);
if (lv_obj_check_type(obj, &lv_label_class) &&
(lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_class)
|| lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_header_class)
|| lv_obj_check_type(lv_obj_get_parent(obj), &lv_msgbox_content_class)))
{
return; /* Inherit styling from message box */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment