diff --git a/frameworks/bridge/declarative_frontend/jsview/js_stepper.cpp b/frameworks/bridge/declarative_frontend/jsview/js_stepper.cpp index 3dff58cce53..d863933f160 100644 --- a/frameworks/bridge/declarative_frontend/jsview/js_stepper.cpp +++ b/frameworks/bridge/declarative_frontend/jsview/js_stepper.cpp @@ -54,6 +54,11 @@ void JSStepper::Create(const JSCallbackInfo& info) stepperComponent->SetButtonPressedHeight(theme->GetButtonPressedHeight()); stepperComponent->SetControlHeight(theme->GetControlHeight()); stepperComponent->SetControlMargin(theme->GetControlMargin()); + stepperComponent->SetControlPadding(theme->GetControlPadding()); + stepperComponent->SetFocusColor(theme->GetFocusColor()); + stepperComponent->SetFocusBorderWidth(theme->GetFocusBorderWidth()); + stepperComponent->SetMouseHoverColor(theme->GetMouseHoverColor()); + stepperComponent->SetDisabledAlpha(theme->GetDisabledAlpha()); } ViewStackProcessor::GetInstance()->Push(stepperComponent); } diff --git a/frameworks/bridge/declarative_frontend/jsview/js_stepper_item.cpp b/frameworks/bridge/declarative_frontend/jsview/js_stepper_item.cpp index 57bf05db489..4ed865317b7 100644 --- a/frameworks/bridge/declarative_frontend/jsview/js_stepper_item.cpp +++ b/frameworks/bridge/declarative_frontend/jsview/js_stepper_item.cpp @@ -35,7 +35,11 @@ void JSStepperItem::Create(const JSCallbackInfo& info) RefPtr stepperItemComponent = stepperItemComponentV2->GetStepperItemComponent(); RefPtr stepperTheme = GetTheme(); if (stepperTheme) { - stepperItemComponent->SetTextStyle(stepperTheme->GetTextStyle()); + TextStyle textStyle_ = stepperTheme->GetTextStyle(); + textStyle_.SetAdaptTextSize(stepperTheme->GetTextStyle().GetFontSize(), stepperTheme->GetMinFontSize()); + textStyle_.SetMaxLines(stepperTheme->GetTextMaxLines()); + textStyle_.SetTextOverflow(TextOverflow::ELLIPSIS); + stepperItemComponent->SetTextStyle(textStyle_); } auto focusAnimationTheme = GetTheme(); if (focusAnimationTheme) {