Home
last modified time | relevance | path

Searched refs:appTheme (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/root/
H A Drender_root.cpp54 auto appTheme = GetTheme<AppTheme>(); in PerformLayout() local
56 if (appTheme && !isBgColorInit_) { in PerformLayout()
58 bgColor_ = appTheme->GetBackgroundColor(); in PerformLayout()
110 auto appTheme = GetTheme<AppTheme>(); in SetDefaultBgColor() local
111 if (!appTheme) { in SetDefaultBgColor()
114 … bgColor_ = isContextMenu_ || isTransparent ? Color::TRANSPARENT : appTheme->GetBackgroundColor(); in SetDefaultBgColor()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_manager_impl.cpp179 auto appTheme = AceType::DynamicCast<AppTheme>(findIter->second); in GetBackgroundColor() local
180 if (appTheme) { in GetBackgroundColor()
181 return appTheme->GetBackgroundColor(); in GetBackgroundColor()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_pattern.cpp252 auto appTheme = currentContext->GetTheme<AppTheme>(); in GetInnerFocusPaintRect() local
253 CHECK_NULL_VOID(appTheme); in GetInnerFocusPaintRect()
254 auto paintWidth = appTheme->GetFocusWidthVp(); in GetInnerFocusPaintRect()
255 auto focusPadding = appTheme->GetFocusOutPaddingVp(); in GetInnerFocusPaintRect()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/
H A Dslider_pattern_test_ng.cpp351 auto appTheme = AceType::MakeRefPtr<AppTheme>(); variable
353 EXPECT_CALL(*themeManager, GetTheme(AppTheme::TypeId())).WillRepeatedly(Return(appTheme));
362 auto paintWidth = appTheme->GetFocusWidthVp();
485 auto appTheme = AceType::MakeRefPtr<AppTheme>(); variable
487 EXPECT_CALL(*themeManager, GetTheme(AppTheme::TypeId())).WillRepeatedly(Return(appTheme));
587 auto appTheme = AceType::MakeRefPtr<AppTheme>(); variable
588 ASSERT_NE(appTheme, nullptr);
590 EXPECT_CALL(*themeManager, GetTheme(AppTheme::TypeId())).WillRepeatedly(Return(appTheme));
592 …sliderTheme->GetFocusSideDistance().ConvertToPx() + (appTheme->GetFocusWidthVp().ConvertToPx() * H…
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test_common.h97 void TestGetThemeByName(const char *appTheme, const char *testTheme);
H A Dresource_manager_test_common.cpp477 void ResourceManagerTestCommon::TestGetThemeByName(const char *appTheme, const char *testTheme) in TestGetThemeByName() argument
480 RState state = rm->GetThemeByName(appTheme, outValue); in TestGetThemeByName()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dfocus_hub.cpp1577 auto appTheme = context->GetTheme<AppTheme>(); in PaintFocusState() local
1578 CHECK_NULL_RETURN(appTheme, false); in PaintFocusState()
1585 paintColor = appTheme->GetFocusColor(); in PaintFocusState()
1593 paintWidth = appTheme->GetFocusWidthVp(); in PaintFocusState()
1613 focusPaddingVp = -appTheme->GetFocusWidthVp(); in PaintFocusState()
1615 focusPaddingVp = appTheme->GetFocusOutPaddingVp(); in PaintFocusState()
1684 auto appTheme = context->GetTheme<AppTheme>(); in PaintInnerFocusState() local
1685 CHECK_NULL_RETURN(appTheme, false); in PaintInnerFocusState()
1692 paintColor = appTheme->GetFocusColor(); in PaintInnerFocusState()
1700 paintWidth = appTheme->GetFocusWidthVp(); in PaintInnerFocusState()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_pattern.cpp1174 auto appTheme = PipelineBase::GetCurrentContext()->GetTheme<AppTheme>(); in GetOutsetInnerFocusPaintRect() local
1175 auto paintWidth = appTheme->GetFocusWidthVp(); in GetOutsetInnerFocusPaintRect()
1223 auto appTheme = PipelineBase::GetCurrentContext()->GetTheme<AppTheme>(); in GetInsetAndNoneInnerFocusPaintRect() local
1224 CHECK_NULL_VOID(appTheme); in GetInsetAndNoneInnerFocusPaintRect()
1225 auto paintWidth = appTheme->GetFocusWidthVp(); in GetInsetAndNoneInnerFocusPaintRect()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.cpp4012 auto appTheme = pipeline->GetTheme<AppTheme>(); local
4013 CHECK_NULL_VOID(appTheme);
4015 … float hoverScaleFrom = isHovered ? appTheme->GetHoverScaleStart() : appTheme->GetHoverScaleEnd();
4016 float hoverColorTo = isHovered ? appTheme->GetHoverScaleEnd() : appTheme->GetHoverScaleStart();
4019 int32_t themeDuration = appTheme->GetHoverDuration();
4039 auto appTheme = pipeline->GetTheme<AppTheme>(); local
4040 CHECK_NULL_VOID(appTheme);
4042 …Color hoverColorFrom = isHovered ? appTheme->GetHoverHighlightStart() : appTheme->GetHoverHighligh…
4043 …Color hoverColorTo = isHovered ? appTheme->GetHoverHighlightEnd() : appTheme->GetHoverHighlightSta…
4048 int32_t themeDuration = appTheme->GetHoverDuration();
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_context.cpp2266 auto appTheme = themeManager_->GetTheme<AppTheme>(); in SetAppBgColor() local
2267 if (!appTheme) { in SetAppBgColor()
2271 appTheme->SetBackgroundColor(appBgColor_); in SetAppBgColor()