diff --git a/lv_misc/lv_color.h b/lv_misc/lv_color.h index c224f8e8c..4e661f5b6 100644 --- a/lv_misc/lv_color.h +++ b/lv_misc/lv_color.h @@ -57,8 +57,8 @@ extern "C" { #define LV_OPA_100 255 #define LV_OPA_COVER 255 -#define LV_OPA_MIN 0 /*Opacities below this will be transparent*/ -#define LV_OPA_MAX 255 /*Opacities above this will fully cover*/ +#define LV_OPA_MIN 4 /*Opacities below this will be transparent*/ +#define LV_OPA_MAX 251 /*Opacities above this will fully cover*/ #if LV_COLOR_DEPTH == 1 #define LV_COLOR_SIZE 8 diff --git a/lv_objx/lv_btn.c b/lv_objx/lv_btn.c index 2e400937c..993cb0b15 100644 --- a/lv_objx/lv_btn.c +++ b/lv_objx/lv_btn.c @@ -130,6 +130,8 @@ lv_obj_t * lv_btn_create(lv_obj_t * par, const lv_obj_t * copy) lv_btn_ext_t * copy_ext = lv_obj_get_ext_attr(copy); ext->state = copy_ext->state; ext->toggle = copy_ext->toggle; + ext->ink_fill_time = copy_ext->ink_fill_time; + ext->ink_wait_time = copy_ext->ink_wait_time; memcpy(ext->actions, copy_ext->actions, sizeof(ext->actions)); memcpy(ext->styles, copy_ext->styles, sizeof(ext->styles));