refactor(style) move flag information into a dedicated table (#3102)
This commit is contained in:
@@ -176,14 +176,6 @@ void lv_style_set_bg_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_BG_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_BG_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -200,14 +192,6 @@ void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_BG_GRAD_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_BG_GRAD_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -272,14 +256,6 @@ void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_img_recolor_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -304,14 +280,6 @@ void lv_style_set_border_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_BORDER_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_border_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_BORDER_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -360,14 +328,6 @@ void lv_style_set_outline_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_OUTLINE_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_outline_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_OUTLINE_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -424,14 +384,6 @@ void lv_style_set_shadow_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_SHADOW_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_shadow_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_SHADOW_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -456,14 +408,6 @@ void lv_style_set_img_recolor(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_img_recolor_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_img_recolor_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -512,14 +456,6 @@ void lv_style_set_line_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_LINE_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_line_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_LINE_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -552,14 +488,6 @@ void lv_style_set_arc_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_ARC_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_arc_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_ARC_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
@@ -584,14 +512,6 @@ void lv_style_set_text_color(lv_style_t * style, lv_color_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_TEXT_COLOR, v);
|
||||
}
|
||||
|
||||
void lv_style_set_text_color_filtered(lv_style_t * style, lv_color_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.color = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_TEXT_COLOR_FILTERED, v);
|
||||
}
|
||||
|
||||
void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
|
||||
Reference in New Issue
Block a user