mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Straight edges for pages
This commit is contained in:
parent
56fcd80030
commit
417d0934fc
438
data/edit.htm
438
data/edit.htm
File diff suppressed because one or more lines are too long
BIN
data/edit.htm.gz
BIN
data/edit.htm.gz
Binary file not shown.
@ -98,6 +98,7 @@ typedef struct
|
||||
{
|
||||
|
||||
lv_style_t transparent; // Objects with transparent background, like Checkbox, container
|
||||
lv_style_t screen; // Background pages
|
||||
lv_style_t pretty; // Background gradient
|
||||
lv_style_t pretty_color; // Primary Colored gradient
|
||||
// lv_style_t bg_click;
|
||||
@ -271,6 +272,10 @@ static void basic_init(lv_style_int_t border_width, lv_style_int_t outline_width
|
||||
lv_style_set_border_width(&styles->pretty, LV_STATE_FOCUSED, outline_width);
|
||||
}
|
||||
|
||||
style_init_reset(&styles->screen);
|
||||
lv_style_copy(&styles->screen, &styles->pretty);
|
||||
lv_style_set_radius(&styles->screen, LV_STATE_DEFAULT, 0);
|
||||
|
||||
// Primary Colored gradient
|
||||
style_init_reset(&styles->pretty_color);
|
||||
lv_style_set_radius(&styles->pretty_color, LV_STATE_DEFAULT, LV_DPI / 15);
|
||||
@ -1049,7 +1054,7 @@ static void theme_apply(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t name)
|
||||
|
||||
case LV_THEME_SCR:
|
||||
list = lv_obj_get_style_list(obj, LV_OBJ_PART_MAIN);
|
||||
_lv_style_list_add_style(list, &styles->pretty);
|
||||
_lv_style_list_add_style(list, &styles->screen);
|
||||
break;
|
||||
|
||||
case LV_THEME_OBJ:
|
||||
|
Loading…
x
Reference in New Issue
Block a user