api(style) remove content style proeprties
This commit is contained in:
@@ -185,10 +185,9 @@ static lv_color_t grey_filter_cb(const lv_color_filter_dsc_t * f, lv_color_t col
|
||||
static void style_init(void)
|
||||
{
|
||||
static const lv_style_prop_t trans_props[] = {
|
||||
LV_STYLE_BG_OPA, LV_STYLE_BG_COLOR, LV_STYLE_CONTENT_OPA,
|
||||
LV_STYLE_BG_OPA, LV_STYLE_BG_COLOR,
|
||||
LV_STYLE_TRANSFORM_WIDTH, LV_STYLE_TRANSFORM_HEIGHT,
|
||||
LV_STYLE_TRANSFORM_ZOOM, LV_STYLE_TRANSFORM_ANGLE,
|
||||
LV_STYLE_CONTENT_OFS_X, LV_STYLE_CONTENT_OFS_Y,
|
||||
LV_STYLE_COLOR_FILTER_OPA, LV_STYLE_COLOR_FILTER_DSC,
|
||||
0
|
||||
};
|
||||
@@ -327,32 +326,27 @@ static void style_init(void)
|
||||
style_init_reset(&styles->bg_color_primary);
|
||||
lv_style_set_bg_color(&styles->bg_color_primary, color_primary_accent);
|
||||
lv_style_set_text_color(&styles->bg_color_primary, lv_color_white());
|
||||
lv_style_set_content_color(&styles->bg_color_primary, lv_color_white());
|
||||
lv_style_set_bg_opa(&styles->bg_color_primary, LV_OPA_COVER);
|
||||
|
||||
style_init_reset(&styles->bg_color_primary_muted);
|
||||
lv_style_set_bg_color(&styles->bg_color_primary_muted, color_primary_muted);
|
||||
lv_style_set_text_color(&styles->bg_color_primary_muted, color_primary_accent);
|
||||
lv_style_set_content_color(&styles->bg_color_primary_muted, color_primary_accent);
|
||||
lv_style_set_bg_opa(&styles->bg_color_primary_muted, LV_OPA_COVER);
|
||||
|
||||
style_init_reset(&styles->bg_color_secondary);
|
||||
lv_style_set_bg_color(&styles->bg_color_secondary, color_secondary_accent);
|
||||
lv_style_set_text_color(&styles->bg_color_secondary, lv_color_white());
|
||||
lv_style_set_content_color(&styles->bg_color_secondary, lv_color_white());
|
||||
lv_style_set_bg_opa(&styles->bg_color_secondary, LV_OPA_COVER);
|
||||
|
||||
style_init_reset(&styles->bg_color_grey);
|
||||
lv_style_set_bg_color(&styles->bg_color_grey, COLOR_GREY);
|
||||
lv_style_set_bg_opa(&styles->bg_color_grey, LV_OPA_COVER);
|
||||
lv_style_set_text_color(&styles->bg_color_grey, lv_color_grey_darken_4());
|
||||
lv_style_set_content_color(&styles->bg_color_grey, lv_color_grey_darken_4());
|
||||
|
||||
style_init_reset(&styles->bg_color_white);
|
||||
lv_style_set_bg_color(&styles->bg_color_white, lv_color_white());
|
||||
lv_style_set_bg_opa(&styles->bg_color_white, LV_OPA_COVER);
|
||||
lv_style_set_text_color(&styles->bg_color_white, lv_color_grey_darken_4());
|
||||
lv_style_set_content_color(&styles->bg_color_white, lv_color_grey_darken_4());
|
||||
|
||||
style_init_reset(&styles->circle);
|
||||
lv_style_set_radius(&styles->circle, LV_RADIUS_CIRCLE);
|
||||
@@ -395,9 +389,9 @@ static void style_init(void)
|
||||
lv_style_set_radius(&styles->cb_marker, RADIUS_DEFAULT / 2);
|
||||
|
||||
style_init_reset(&styles->cb_marker_checked);
|
||||
lv_style_set_content_text(&styles->cb_marker_checked, LV_SYMBOL_OK);
|
||||
lv_style_set_content_color(&styles->cb_marker_checked, lv_color_white());
|
||||
lv_style_set_content_font(&styles->cb_marker_checked, theme.font_small);
|
||||
lv_style_set_bg_img_src(&styles->cb_marker_checked, LV_SYMBOL_OK);
|
||||
lv_style_set_text_color(&styles->cb_marker_checked, lv_color_white());
|
||||
lv_style_set_text_font(&styles->cb_marker_checked, theme.font_small);
|
||||
|
||||
style_init_reset(&styles->cb_bg_outline_pad);
|
||||
lv_style_set_outline_pad(&styles->cb_bg_outline_pad, LV_DPX(5));
|
||||
|
||||
Reference in New Issue
Block a user