Skip to content

Commit

Permalink
fix(style) initialize colors to black instead of zero
Browse files Browse the repository at this point in the history
With LV_COLOR_SCREEN_TRANSP alpha should be 0xff not 0x00
  • Loading branch information
kisvegabor committed Jul 28, 2021
1 parent 06b3013 commit 524f8dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/misc/lv_style.c
Expand Up @@ -234,6 +234,16 @@ lv_style_value_t lv_style_prop_get_default(lv_style_prop_t prop)
case LV_STYLE_BG_COLOR:
value.color = lv_color_white();
break;
case LV_STYLE_BG_GRAD_COLOR:
case LV_STYLE_BORDER_COLOR:
case LV_STYLE_SHADOW_COLOR:
case LV_STYLE_OUTLINE_COLOR:
case LV_STYLE_ARC_COLOR:
case LV_STYLE_LINE_COLOR:
case LV_STYLE_TEXT_COLOR:
case LV_STYLE_IMG_RECOLOR:
value.color = lv_color_black();
break;
case LV_STYLE_OPA:
case LV_STYLE_BORDER_OPA:
case LV_STYLE_TEXT_OPA:
Expand Down

0 comments on commit 524f8dd

Please sign in to comment.