fix bug of Button

Signed-off-by: luoying_ace_admin <luoying19@huawei.com>
This commit is contained in:
luoying_ace_admin
2022-03-31 16:19:14 +08:00
parent e7a5cbe648
commit 995c630c37
@@ -253,6 +253,7 @@ void JSButton::SetDefaultAttributes(const RefPtr<ButtonComponent>& buttonCompone
buttonComponent->SetHeight(buttonTheme->GetHeight());
buttonComponent->SetBackgroundColor(buttonTheme->GetBgColor());
buttonComponent->SetClickedColor(buttonComponent->GetBackgroundColor().BlendColor(buttonTheme->GetClickedColor()));
buttonComponent->SetHoverColor(buttonTheme->GetHoverColor());
}
void JSButton::SetTypeAndStateEffect(const JSRef<JSObject>& obj, const RefPtr<ButtonComponent>& buttonComponent)