/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_swiper_theme.h | 30 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() 61 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ApplyThemeToDotIndicatorForce() local 70 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyThemeToIndicatorStyle() local 71 if (!themeColors.has_value()) { in ApplyThemeToIndicatorStyle() 85 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyThemeToDigitIndicator() local 86 if (!themeColors.has_value()) { in ApplyThemeToDigitIndicator() 101 if (!themeColors.has_value()) { in ApplyThemeToDisplayArrow() [all …]
|
H A D | js_search_theme.h | 29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 30 if (!themeColors) { in ApplyTheme() 34 SearchModel::GetInstance()->SetTextColor(themeColors.value().FontPrimary()); 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() 40 Color selectedColor = themeColors.value().Brand(); in ApplyTheme() 52 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainCancelIconColor() local 53 color = themeColors->IconSecondary(); in ObtainCancelIconColor() 61 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainSearchButtonFontColor() local [all …]
|
H A D | js_radio_theme.h | 29 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() local 42 color = themeColors->CompBackgroundEmphasize(); in ObtainCheckedBackgroundColor() 50 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainUncheckedBorderColor() local 51 color = themeColors->IconFourth(); in ObtainUncheckedBorderColor() 59 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainIndicatorColor() local [all …]
|
H A D | js_qrcode_theme.h | 30 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 D | js_button_theme.h | 50 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 51 if (!themeColors) { in ApplyTheme() 59 ButtonModel::GetInstance()->SetFontColor(JSButtonTheme::FontColor(themeColors)); 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->CompBackgroundTertiary(); in BackgroundColor() 93 return themeColors->Warning(); in BackgroundColor() [all …]
|
H A D | js_textinput_theme.h | 30 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->Brand()); in ApplyTheme() [all …]
|
H A D | js_date_picker_theme.h | 32 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() local 64 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle() 72 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainTextStyle() local 73 textStyle.textColor = themeColors.value().FontPrimary(); in ObtainTextStyle()
|
H A D | js_text_picker_theme.h | 32 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() local 63 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle() 71 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainTextStyle() local 72 textStyle.textColor = themeColors.value().FontPrimary(); in ObtainTextStyle()
|
H A D | js_time_picker_theme.h | 32 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() local 64 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle() 72 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainTextStyle() local 73 textStyle.textColor = themeColors.value().FontPrimary(); in ObtainTextStyle()
|
H A D | js_checkbox_theme.h | 27 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() local 39 color = themeColors->IconOnPrimary(); in ObtainCheckMarkColor()
|
H A D | js_checkboxgroup_theme.h | 27 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() local 39 color = themeColors->IconOnPrimary(); in ObtainCheckMarkColor()
|
H A D | js_indexer_theme.h | 27 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 D | js_progress_theme.h | 29 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->BackgroundEmphasize()); in ApplyTheme()
|
H A D | js_toggle_theme.h | 27 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 D | js_text_clock_theme.h | 28 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ApplyTheme() local 29 TextClockModel::GetInstance()->SetTextColor(themeColors->FontSecondary()); in ApplyTheme() 35 if (auto themeColors = JSThemeUtils::GetThemeColors(); themeColors.has_value()) { in ObtainTextColor() local 36 color = themeColors->FontSecondary(); in ObtainTextColor()
|
H A D | js_pattern_lock_theme.h | 27 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 D | js_slider_theme.h | 28 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 D | js_data_panel_theme.h | 27 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 D | js_select_theme.h | 29 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 D | js_counter_theme.h | 30 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 31 if (!themeColors) { in ApplyTheme() 35 ViewAbstractModel::GetInstance()->SetForegroundColor(themeColors->FontPrimary()); in ApplyTheme()
|
H A D | js_divider_theme.h | 27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 28 if (!themeColors) { in ApplyTheme() 32 DividerModel::GetInstance()->DividerColor(themeColors->CompDivider()); in ApplyTheme()
|
H A D | js_loading_progress_theme.h | 27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 28 if (!themeColors) { in ApplyTheme() 33 LoadingProgressModel::GetInstance()->SetColor(themeColors->IconSecondary()); in ApplyTheme()
|
H A D | js_scroll_theme.h | 27 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 28 if (!themeColors) { in ApplyTheme() 33 ScrollModel::GetInstance()->SetScrollBarColor(themeColors->CompFocusedTertiary()); in ApplyTheme()
|
H A D | js_text_theme.h | 29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 30 if (!themeColors) { in ApplyTheme() 34 TextModel::GetInstance()->SetTextColor(themeColors->FontPrimary()); in ApplyTheme()
|
H A D | js_menu_item_theme.h | 29 auto themeColors = JSThemeUtils::GetThemeColors(); in ApplyTheme() local 30 if (!themeColors) { in ApplyTheme() 34 MenuItemModel::GetInstance()->SetLabelFontColor(themeColors.value().FontPrimary()); in ApplyTheme()
|