Home
last modified time | relevance | path

Searched refs:themeColors (Results 1 - 25 of 32) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/
H A Djs_radio_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
34 RadioModel::GetInstance()->SetCheckedBackgroundColor(themeColors->CompBackgroundEmphasize()); in ApplyTheme()
35 RadioModel::GetInstance()->SetUncheckedBorderColor(themeColors->IconFourth()); in ApplyTheme()
36 RadioModel::GetInstance()->SetIndicatorColor(themeColors->IconOnPrimary()); in ApplyTheme()
41 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainCheckedBackgroundColor()
42 color = themeColors->CompBackgroundEmphasize(); in ObtainCheckedBackgroundColor()
50 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors in ObtainUncheckedBorderColor()
[all...]
H A Djs_swiper_theme.h30 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyThemeInConstructor() local
31 if (!themeColors) { in ApplyThemeInConstructor()
46 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyThemeToDotIndicator() local
47 if (!themeColors.has_value()) { in ApplyThemeToDotIndicator()
52 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToDotIndicator()
55 swiperParameters.selectedColorVal = themeColors->CompBackgroundEmphasize(); in ApplyThemeToDotIndicator()
61 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ApplyThemeToDotIndicatorForce()
62 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToDotIndicatorForce()
63 swiperParameters.selectedColorVal = themeColors in ApplyThemeToDotIndicatorForce()
70 auto themeColors = JSThemeUtils::GetThemeColors(); ApplyThemeToIndicatorStyle() local
85 auto themeColors = JSThemeUtils::GetThemeColors(); ApplyThemeToDigitIndicator() local
100 auto themeColors = JSThemeUtils::GetThemeColors(); ApplyThemeToDisplayArrow() local
116 auto themeColors = JSThemeUtils::GetThemeColors(); ApplyThemeToDisplayArrowForce() local
[all...]
H A Djs_search_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
34 SearchModel::GetInstance()->SetTextColor(themeColors.value().FontPrimary()); in ApplyTheme()
35 SearchModel::GetInstance()->SetPlaceholderColor(themeColors.value().FontSecondary()); in ApplyTheme()
36 SearchModel::GetInstance()->SetSearchIconColor(themeColors.value().IconSecondary()); in ApplyTheme()
37 SearchModel::GetInstance()->SetCaretColor(themeColors.value().Brand()); in ApplyTheme()
38 SearchModel::GetInstance()->SetCancelIconColor(themeColors.value().IconSecondary()); in ApplyTheme()
39 SearchModel::GetInstance()->SetSearchButtonFontColor(themeColors.value().FontEmphasize()); in ApplyTheme()
40 Color selectedColor = themeColors.value().Brand(); in ApplyTheme()
47 ViewAbstractModel::GetInstance()->SetBackgroundColor(themeColors in ApplyTheme()
[all...]
H A Djs_qrcode_theme.h30 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
31 if (!themeColors) { in ApplyTheme()
37 QRCodeModel::GetInstance()->SetQRCodeColor(themeColors->CompForegroundPrimary()); in ApplyTheme()
38 QRCodeModel::GetInstance()->SetQRBackgroundColor(themeColors->BackgroundPrimary()); in ApplyTheme()
42 ViewAbstractModel::GetInstance()->SetOuterBorderColor(themeColors->InteractiveFocus()); in ApplyTheme()
50 auto themeColors = JSThemeUtils::GetThemeColors(); in ObtainQRCodeColor() local
51 if (!themeColors) { in ObtainQRCodeColor()
54 qrcodeColor = themeColors->CompForegroundPrimary(); in ObtainQRCodeColor()
60 auto themeColors = JSThemeUtils::GetThemeColors(); in ObtainBackgroundColor() local
61 if (!themeColors) { in ObtainBackgroundColor()
[all...]
H A Djs_checkboxgroup_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
31 CheckBoxGroupModel::GetInstance()->SetSelectedColor(themeColors->CompBackgroundEmphasize()); in ApplyTheme()
32 CheckBoxGroupModel::GetInstance()->SetUnSelectedColor(themeColors->IconFourth()); in ApplyTheme()
33 CheckBoxGroupModel::GetInstance()->SetCheckMarkColor(themeColors->IconOnPrimary()); in ApplyTheme()
38 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainCheckMarkColor()
39 color = themeColors->IconOnPrimary(); in ObtainCheckMarkColor()
H A Djs_textinput_theme.h30 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
31 if (!themeColors) { in ApplyTheme()
38 TextFieldModel::GetInstance()->SetBackgroundColor(themeColors->CompBackgroundTertiary(), false); in ApplyTheme()
39 TextFieldModel::GetInstance()->SetTextColor(themeColors->FontPrimary()); in ApplyTheme()
40 TextFieldModel::GetInstance()->SetPlaceholderColor(themeColors->FontSecondary()); in ApplyTheme()
41 TextFieldModel::GetInstance()->SetCaretColor(themeColors->Brand()); in ApplyTheme()
42 ViewAbstractModel::GetInstance()->SetOuterBorderColor(themeColors->InteractiveFocus()); in ApplyTheme()
44 Color selectedColor = themeColors.value().Brand(); in ApplyTheme()
54 TextFieldModel::GetInstance()->SetBackgroundColor(themeColors->CompBackgroundTertiary(), false); in ApplyTheme()
55 TextFieldModel::GetInstance()->SetCaretColor(themeColors in ApplyTheme()
[all...]
H A Djs_button_theme.h50 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
51 if (!themeColors) { in ApplyTheme()
59 ButtonModel::GetInstance()->SetFontColor(JSButtonTheme::FontColor(themeColors)); in ApplyTheme()
61 ButtonModel::GetInstance()->BackgroundColor(JSButtonTheme::BackgroundColor(themeColors, false), true); in ApplyTheme()
68 static Color FontColor(const std::optional<JSThemeColors>& themeColors) in FontColor() argument
74 return themeColors->Warning(); in FontColor()
76 return themeColors->FontEmphasize(); in FontColor()
79 return themeColors->FontOnPrimary(); in FontColor()
83 static Color BackgroundColor(const std::optional<JSThemeColors>& themeColors, bool isPressed) in BackgroundColor() argument
89 return themeColors in BackgroundColor()
[all...]
H A Djs_indexer_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
33 IndexerModel::GetInstance()->SetColor(themeColors->FontSecondary()); in ApplyTheme()
34 IndexerModel::GetInstance()->SetSelectedColor(themeColors->FontEmphasize()); in ApplyTheme()
35 IndexerModel::GetInstance()->SetPopupColor(themeColors->FontEmphasize()); in ApplyTheme()
36 IndexerModel::GetInstance()->SetPopupUnselectedColor(themeColors->FontPrimary()); in ApplyTheme()
37 IndexerModel::GetInstance()->SetPopupTitleBackground(themeColors->CompBackgroundTertiary()); in ApplyTheme()
38 IndexerModel::GetInstance()->SetSelectedBackgroundColor(themeColors->CompEmphasizeSecondary()); in ApplyTheme()
H A Djs_checkbox_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors.has_value()) { in ApplyTheme()
31 CheckBoxModel::GetInstance()->SetSelectedColor(themeColors->CompBackgroundEmphasize()); in ApplyTheme()
32 CheckBoxModel::GetInstance()->SetUnSelectedColor(themeColors->IconFourth()); in ApplyTheme()
33 CheckBoxModel::GetInstance()->SetCheckMarkColor(themeColors->IconOnPrimary()); in ApplyTheme()
38 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainCheckMarkColor()
39 color = themeColors->IconOnPrimary(); in ObtainCheckMarkColor()
H A Djs_date_picker_theme.h32 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
33 if (!themeColors) { in ApplyTheme()
38 textStyle.textColor = themeColors.value().FontEmphasize(); in ApplyTheme()
44 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme()
50 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme()
63 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainSelectedTextStyle()
64 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle()
72 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors in ObtainTextStyle()
[all...]
H A Djs_text_picker_theme.h32 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
33 if (!themeColors) { in ApplyTheme()
38 textStyle.textColor = themeColors.value().FontEmphasize(); in ApplyTheme()
44 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme()
50 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme()
62 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainSelectedTextStyle()
63 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle()
71 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors in ObtainTextStyle()
[all...]
H A Djs_time_picker_theme.h32 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
33 if (!themeColors) { in ApplyTheme()
38 textStyle.textColor = themeColors.value().FontEmphasize(); in ApplyTheme()
44 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme()
50 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme()
63 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainSelectedTextStyle()
64 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle()
72 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors in ObtainTextStyle()
[all...]
H A Djs_toggle_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
34 ToggleModel::GetInstance()->SetSelectedColor(themeColors->CompBackgroundEmphasize()); in ApplyTheme()
37 ToggleModel::GetInstance()->SetSwitchPointColor(themeColors->CompBackgroundPrimaryContrary()); in ApplyTheme()
38 ToggleModel::GetInstance()->SetSelectedColor(themeColors->CompBackgroundEmphasize()); in ApplyTheme()
41 ToggleModel::GetInstance()->SetBackgroundColor(themeColors->CompBackgroundTertiary(), true); in ApplyTheme()
42 ToggleModel::GetInstance()->SetSelectedColor(themeColors->CompEmphasizeSecondary()); in ApplyTheme()
H A Djs_pattern_lock_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
33 PatternLockModel::GetInstance()->SetRegularColor(themeColors->CompBackgroundNeutral()); in ApplyTheme()
34 PatternLockModel::GetInstance()->SetActiveColor(themeColors->CompBackgroundNeutral()); in ApplyTheme()
35 PatternLockModel::GetInstance()->SetSelectedColor(themeColors->CompBackgroundNeutral()); in ApplyTheme()
36 PatternLockModel::GetInstance()->SetPathColor(themeColors->CompDivider()); in ApplyTheme()
H A Djs_slider_theme.h28 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
29 if (!themeColors) { in ApplyTheme()
33 auto gradient = NG::SliderModelNG::CreateSolidGradient(themeColors->CompBackgroundSecondary()); in ApplyTheme()
35 SliderModel::GetInstance()->SetSelectColor(themeColors->BackgroundEmphasize()); in ApplyTheme()
36 SliderModel::GetInstance()->SetBlockColor(themeColors->CompBackgroundPrimaryContrary()); in ApplyTheme()
37 SliderModel::GetInstance()->SetStepColor(themeColors->CompBackgroundSecondary()); in ApplyTheme()
H A Djs_text_clock_theme.h28 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ApplyTheme()
29 TextClockModel::GetInstance()->SetTextColor(themeColors->FontSecondary()); in ApplyTheme()
35 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainTextColor()
36 color = themeColors->FontSecondary(); in ObtainTextColor()
H A Djs_progress_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
35 ProgressModel::GetInstance()->SetBackgroundColor(themeColors->CompBackgroundTertiary()); in ApplyTheme()
41 endSideColor.SetLinearColor(LinearColor(themeColors->CompEmphasizeSecondary())); in ApplyTheme()
43 beginSideColor.SetLinearColor(LinearColor(themeColors->CompEmphasizeSecondary())); in ApplyTheme()
48 ProgressModel::GetInstance()->SetColor(themeColors->CompEmphasizeSecondary()); in ApplyTheme()
51 auto borderColor = themeColors->CompEmphasizeSecondary(); in ApplyTheme()
60 endSideColor.SetLinearColor(LinearColor(themeColors->BackgroundEmphasize())); in ApplyTheme()
62 beginSideColor.SetLinearColor(LinearColor(themeColors->BackgroundEmphasize())); in ApplyTheme()
67 ProgressModel::GetInstance()->SetColor(themeColors in ApplyTheme()
[all...]
H A Djs_select_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
34 ViewAbstractModel::GetInstance()->SetBackgroundColor(themeColors->CompBackgroundTertiary()); in ApplyTheme()
35 SelectModel::GetInstance()->SetFontColor(themeColors->FontPrimary()); in ApplyTheme()
H A Djs_data_panel_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
36 gradientColorStart.SetLinearColor(LinearColor(themeColors->CompBackgroundEmphasize())); in ApplyTheme()
40 gradientColorEnd.SetLinearColor(LinearColor(themeColors->CompBackgroundEmphasize())); in ApplyTheme()
45 DataPanelModel::GetInstance()->SetTrackBackground(themeColors->CompBackgroundTertiary()); in ApplyTheme()
H A Djs_menu_item_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
34 MenuItemModel::GetInstance()->SetLabelFontColor(themeColors.value().FontPrimary()); in ApplyTheme()
H A Djs_loading_progress_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
33 LoadingProgressModel::GetInstance()->SetColor(themeColors->IconSecondary()); in ApplyTheme()
H A Djs_counter_theme.h30 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
31 if (!themeColors) { in ApplyTheme()
35 ViewAbstractModel::GetInstance()->SetForegroundColor(themeColors->FontPrimary()); in ApplyTheme()
H A Djs_menu_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
34 MenuModel::GetInstance()->SetFontColor(themeColors.value().FontPrimary()); in ApplyTheme()
H A Djs_divider_theme.h27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
28 if (!themeColors) { in ApplyTheme()
32 DividerModel::GetInstance()->DividerColor(themeColors->CompDivider()); in ApplyTheme()
H A Djs_text_theme.h29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local
30 if (!themeColors) { in ApplyTheme()
34 TextModel::GetInstance()->SetTextColor(themeColors->FontPrimary()); in ApplyTheme()

Completed in 8 milliseconds

12