/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/interfaces/ |
H A D | customtitle.js | 34 if (params.textColor !== undefined) { 35 this.textColor = params.textColor; 68 get textColor() { 71 set textColor(newValue) { 99 …this.textColor = { "id": 125829186, "type": 10001, params: [], "bundleName": "", "moduleName": "" … class 103 …this.textColor = { "id": 125829186, "type": 10001, params: [], "bundleName": "", "moduleName": "" … class 149 Text.fontColor(this.textColor);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_date_picker_theme.h | 38 textStyle.textColor = themeColors.value().FontEmphasize(); in ApplyTheme() 44 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme() 50 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme() 64 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle() 73 textStyle.textColor = themeColors.value().FontPrimary(); in ObtainTextStyle()
|
H A D | js_text_picker_theme.h | 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 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle() 72 textStyle.textColor = themeColors.value().FontPrimary(); in ObtainTextStyle()
|
H A D | js_time_picker_theme.h | 38 textStyle.textColor = themeColors.value().FontEmphasize(); in ApplyTheme() 44 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme() 50 textStyle.textColor = themeColors.value().FontPrimary(); in ApplyTheme() 64 textStyle.textColor = themeColors.value().FontEmphasize(); in ObtainSelectedTextStyle() 73 textStyle.textColor = themeColors.value().FontPrimary(); in ObtainTextStyle()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-custom-component-lifecycle.md | 80 @State textColor: Color = Color.Black; 83 this.textColor = Color.Blue; 88 this.textColor = Color.Transparent; 93 this.textColor = Color.Red; 100 .fontColor(this.textColor) 286 @State textColor: ResourceColor = $r('sys.color.font_primary'); 289 …// onWillApplyTheme中可获取当前组件上下文的Theme对象。此处在onWillApplyTheme中将状态变量textColor、columBgColor,赋值为当前使用的The… 291 this.textColor = theme.colors.fontPrimary; 312 .fontColor(this.textColor) 315 .fontColor(this.textColor)
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-arkui-customize-titlebar-arkts.md | 95 this.__textColor = new ObservedPropertySimplePU(0xff000000, this, "textColor"); 100 if (params.textColor !== undefined) { 101 this.textColor = params.textColor; 124 get textColor() { 127 set textColor(newValue) { 143 this.textColor = 0xff000000; 146 this.textColor = 0x66000000; 188 Text.fontColor(this.textColor);
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/style/StyleBaseTest001/ |
H A D | index.js | 21 textColor: 16645886, 43 this.textColor = 13321031; 46 this.textColor = 16645886;
|
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/ |
H A D | RightMenu.js | 133 let textColor = this.isDarkBackground_ ? 0xffffffff : 0xff000000; 144 textColor 163 RightMenu.callDrawText('<', x, w, OFFY_, textColor); 166 RightMenu.callDrawText('>', x, w, OFFY_, textColor); 172 static callDrawText(symbol, x, w, OFFY_, textColor) { argument 174 DRAWTEXT_OFFSETX, DRAWTEXT_OFFSETY, textColor);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_model_ng.cpp | 53 void ButtonModelNG::SetFontColor(const Color& textColor) in SetFontColor() argument 55 ACE_UPDATE_LAYOUT_PROPERTY(ButtonLayoutProperty, FontColor, textColor); in SetFontColor() 56 ACE_UPDATE_RENDER_CONTEXT(ForegroundColor, textColor); in SetFontColor() 95 SetFontColor(textColor); in SetButtonStyle() 114 SetFontColor(textColor); in SetRole() 149 SetFontColor(frameNode, textColor); in SetRole() 167 SetFontColor(frameNode, textColor); in SetButtonStyle() 450 void ButtonModelNG::SetFontColor(FrameNode* frameNode, const Color& textColor) in SetFontColor() argument 453 ACE_UPDATE_NODE_RENDER_CONTEXT(ForegroundColor, textColor, frameNode); in SetFontColor() 597 auto textColor = buttonTheme->GetTextColor(buttonStyle, buttonRole); in ApplyTheme() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/marquee/ |
H A D | marquee_model_ng.cpp | 107 void MarqueeModelNG::SetTextColor(const std::optional<Color>& textColor) in SetTextColor() argument 109 ACE_UPDATE_RENDER_CONTEXT(ForegroundColor, textColor.value_or(Color())); in SetTextColor() 112 if (textColor.has_value()) { in SetTextColor() 113 ACE_UPDATE_LAYOUT_PROPERTY(MarqueeLayoutProperty, FontColor, textColor.value()); in SetTextColor() 245 void MarqueeModelNG::SetTextColor(FrameNode* frameNode, const std::optional<Color>& textColor) in SetTextColor() argument 247 ACE_UPDATE_NODE_RENDER_CONTEXT(ForegroundColor, textColor.value_or(Color()), frameNode); in SetTextColor() 250 if (textColor.has_value()) { in SetTextColor() 251 … ACE_UPDATE_NODE_LAYOUT_PROPERTY(MarqueeLayoutProperty, FontColor, textColor.value(), frameNode); in SetTextColor()
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-arkui-customize-titlebar-arkts.md | 98 this.__textColor = new ObservedPropertySimplePU(0xff000000, this, "textColor"); 103 if (params.textColor !== undefined) { 104 this.textColor = params.textColor; 127 get textColor() { 130 set textColor(newValue) { 146 this.textColor = 0xff000000; 149 this.textColor = 0x66000000; 191 Text.fontColor(this.textColor);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_datepicker_ffi.cpp | 163 textStyle.textColor = selectedStyle.GetTextColor(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 169 textStyle.textColor = disappearStyle.GetTextColor(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 175 textStyle.textColor = normalStyle.GetTextColor(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 193 textStyle.textColor = Color(color); in FfiOHOSAceFrameworkDatePickerSetDisappearTextStyle() 214 textStyle.textColor = Color(color); in FfiOHOSAceFrameworkDatePickerSetTextStyle() 235 textStyle.textColor = Color(color); in FfiOHOSAceFrameworkDatePickerSetSelectedTextStyle()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-custom-component-lifecycle.md | 78 @State textColor: Color = Color.Black; 81 this.textColor = Color.Blue; 86 this.textColor = Color.Transparent; 91 this.textColor = Color.Red; 98 .fontColor(this.textColor) 284 @State textColor: ResourceColor = $r('sys.color.font_primary'); 287 …// Obtain the Theme object of the current component context. Set textColor and columBgColor in onW… 289 this.textColor = theme.colors.fontPrimary; 310 .fontColor(this.textColor) 313 .fontColor(this.textColor)
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-create-custom-components.md | 406 @State textColor: Color = Color.Yellow; 415 .fontColor(this.textColor) 419 Button("change textColor").onClick(() =>{ 420 this.textColor = Color.Pink; 435 …只当 this.textColor 更改时,会去更新整个Text组件,其所有属性函数都会执行,所以会看到Text(`${this.count++}`)自增。因为目前UI以组件为单位进行更新,如果组…
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/dfx/assist1/ |
H A D | index.js | 20 textColor: 65280 24 this.textColor = 16711680;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_textpicker_bridge.cpp | 148 Color textColor; in SetTextStyle() local 149 …->IsNull() || colorArg->IsUndefined() || !ArkTSUtils::ParseJsColorAlpha(vm, colorArg, textColor)) { in SetTextStyle() 150 textColor.SetValue(DEFAULT_TIME_PICKER_TEXT_COLOR); in SetTextStyle() 182 nativeNode, textColor.GetValue(), fontInfo.c_str(), styleVal); in SetTextStyle() 197 Color textColor; in SetSelectedTextStyle() local 198 …->IsNull() || colorArg->IsUndefined() || !ArkTSUtils::ParseJsColorAlpha(vm, colorArg, textColor)) { in SetSelectedTextStyle() 199 textColor.SetValue(DEFAULT_TIME_PICKER_SELECTED_TEXT_COLOR); in SetSelectedTextStyle() 231 nativeNode, textColor.GetValue(), fontInfo.c_str(), styleVal); in SetSelectedTextStyle() 246 Color textColor; in SetDisappearTextStyle() local 248 textColor.SetValue(DEFAULT_TIME_PICKER_TEXT_COLOR); in SetDisappearTextStyle() [all …]
|
H A D | arkts_native_badge_bridge.cpp | 45 param.textColor = themeColors->FontOnPrimary().GetValue(); in InitBadgeParam() 48 param.textColor = DEFAULT_TEXT_COLOR; in InitBadgeParam() 133 Local<JSValueRef> textColor = runtimeCallInfo->GetCallArgRef(8); // 8: parameter index in ParseBadgeBaseParam() local 146 if (ArkTSUtils::ParseJsColorAlpha(vm, textColor, textColorVal)) { in ParseBadgeBaseParam() 147 param.textColor = textColorVal.GetValue(); in ParseBadgeBaseParam()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_date_picker_modifier.cpp | 65 g_strValue = pickerTextStyle.textColor->ColorToString() + ";"; in GetSelectedTextStyle() 97 textStyle.textColor = Color(color); in SetSelectedTextStyle() 114 textStyle.textColor = selectedStyle.GetTextColor(); in ResetSelectedTextStyle() 139 g_strValue = pickerTextStyle.textColor->ColorToString() + ";"; in GetDatePickerTextStyle() 172 textStyle.textColor = Color(color); in SetDatePickerTextStyle() 189 textStyle.textColor = normalStyle.GetTextColor(); in ResetDatePickerTextStyle() 214 g_strValue = pickerTextStyle.textColor->ColorToString() + ";"; in GetDisappearTextStyle() 247 textStyle.textColor = Color(color); in SetDisappearTextStyle() 264 textStyle.textColor = disappearStyle.GetTextColor(); in ResetDisappearTextStyle()
|
H A D | span_modifier.cpp | 154 void SetSpanFontColor(NodeHandle node, uint32_t textColor) in SetSpanFontColor() argument 158 SpanModelNG::SetTextColor(frameNode, Color(textColor)); in SetSpanFontColor() 169 uint32_t textColor = theme->GetTextStyle().GetTextColor().GetValue(); in ResetSpanFontColor() local 170 SpanModelNG::SetTextColor(frameNode, Color(textColor)); in ResetSpanFontColor()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_select.cpp | 399 Color textColor; in FontColor() local 400 if (!ParseJsColor(info[0], textColor)) { in FontColor() 406 textColor = theme->GetFontColor(); in FontColor() 412 SelectModel::GetInstance()->SetFontColor(textColor); in FontColor() 456 Color textColor; in SelectedOptionFontColor() local 457 if (!ParseJsColor(info[0], textColor)) { in SelectedOptionFontColor() 463 textColor = theme->GetSelectedColorText(); in SelectedOptionFontColor() 513 Color textColor; in OptionFontColor() local 514 if (!ParseJsColor(info[0], textColor)) { in OptionFontColor() 520 textColor = theme->GetMenuFontColor(); in OptionFontColor() [all …]
|
H A D | js_menu_item.cpp | 283 Color textColor; in ContentFontColor() local 284 if (ParseJsColor(info[0], textColor)) { in ContentFontColor() 285 color = textColor; in ContentFontColor() 345 Color textColor; in LabelFontColor() local 346 if (ParseJsColor(info[0], textColor)) { in LabelFontColor() 347 color = textColor; in LabelFontColor()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/ |
H A D | stepper_pattern.cpp | 326 auto textColor = stepperTheme->GetTextStyle().GetTextColor(); in CreateArrowRightButtonNode() local 328 textColor = textColor.BlendOpacity(stepperTheme->GetDisabledAlpha()); in CreateArrowRightButtonNode() 330 textLayoutProperty->UpdateTextColor(textColor); in CreateArrowRightButtonNode() 427 auto textColor = stepperTheme->GetTextStyle().GetTextColor(); in CreateArrowlessRightButtonNode() local 429 textColor = textColor.BlendOpacity(stepperTheme->GetDisabledAlpha()); in CreateArrowlessRightButtonNode() 431 textLayoutProperty->UpdateTextColor(textColor); in CreateArrowlessRightButtonNode() 637 auto textColor = stepperTheme->GetTextStyle().GetTextColor(); in OnColorConfigurationUpdate() local 652 layoutProperty->UpdateTextColor(textColor); in OnColorConfigurationUpdate() 669 layoutProperty->UpdateTextColor(textColor); in OnColorConfigurationUpdate() 676 layoutProperty->UpdateTextColor(textColor); in OnColorConfigurationUpdate()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | bar_item_pattern.cpp | 161 Color textColor; in UpdateBarItemActiveStatusResource() local 167 textColor = theme->GetToolBarItemActiveFontColor(); in UpdateBarItemActiveStatusResource() 174 textColor = theme->GetToolBarItemFontColor(); in UpdateBarItemActiveStatusResource() 187 textLayoutProperty->UpdateTextColor(textColor); in UpdateBarItemActiveStatusResource()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_badge.cpp | 76 if (badgeConfig.textColor.second) { in SetBadgeConfig() 77 declaration->SetBadgeTextColor(badgeConfig.textColor.first); in SetBadgeConfig()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | alertdialog_composed_element.cpp | 108 item->Put("fontColor", dialog.textColor.c_str()); in GetConfirm() 151 item->Put("fontColor", dialog.textColor.c_str()); in GetPrimaryButton() 169 item->Put("fontColor", dialog.textColor.c_str()); in GetSecondaryButton()
|