/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_date_picker_theme.h | 40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme() 46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme() 52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
|
H A D | js_text_picker_theme.h | 40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme() 46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme() 52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
|
H A D | js_time_picker_theme.h | 40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme() 46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme() 52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | texttimer_composed_element.cpp | 31 { "fontWeight", [](const TextTimerComposedElement& inspector) { return inspector.GetFontWeight(); } },
46 DumpLog::GetInstance().AddDesc(std::string("fontWeight : ").append(GetFontWeight()));
in Dump() 102 std::string TextTimerComposedElement::GetFontWeight() const
in GetFontWeight() function in OHOS::Ace::V2::TextTimerComposedElement 106 render ? render->GetTextStyle().GetFontWeight() : FontWeight::NORMAL;
in GetFontWeight()
|
H A D | button_composed_element.cpp | 30 { "fontWeight", [](const ButtonComposedElement& inspector) { return inspector.GetFontWeight(); } }, 96 std::string ButtonComposedElement::GetFontWeight() const in GetFontWeight() function in OHOS::Ace::V2::ButtonComposedElement 106 auto fontWeight = render ? render->GetTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetFontWeight()
|
H A D | texttimer_composed_element.h | 42 std::string GetFontWeight() const;
|
H A D | button_composed_element.h | 39 std::string GetFontWeight() const;
|
H A D | utils.cpp | 24 auto weight = textStyle.GetFontWeight(); in GetTextStyleInJson()
|
H A D | indexer_composed_element.cpp | 163 auto fontWeight = render ? render->GetActiveTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetSelectedFont() 182 auto fontWeight = render ? render->GetBubbleText()->GetTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetPopupFont() 201 auto fontWeight = render ? render->GetNormalTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetFont()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | span_test_ng.cpp | 142 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::LIGHTER); in HWTEST_F() 144 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::REGULAR); in HWTEST_F() 146 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::NORMAL); in HWTEST_F() 148 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::MEDIUM); in HWTEST_F() 150 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::BOLD); in HWTEST_F() 152 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::BOLDER); in HWTEST_F() 154 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::W100); in HWTEST_F() 644 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::BOLD); in HWTEST_F() 950 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::LIGHTER); in HWTEST_F() 952 EXPECT_EQ(spanNode->GetFontWeight() in HWTEST_F() [all...] |
/foundation/arkui/ui_lite/interfaces/kits/font/ |
H A D | ui_font.h | 69 uint8_t GetFontWeight(uint16_t fontId) in GetFontWeight() function in OHOS::UIFont 71 return instance_->GetFontWeight(fontId); in GetFontWeight() 204 switch (instance_->GetFontWeight(fontId)) { in GetColorType()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/ |
H A D | menu_patternMore_test_ng.cpp | 195 ASSERT_TRUE(textProperty->GetFontWeight().has_value()); in CheckTestResult() 196 EXPECT_EQ(textProperty->GetFontWeight().value(), FontWeight::BOLD); in CheckTestResult() 208 ASSERT_TRUE(labelProperty->GetFontWeight().has_value()); in CheckTestResult() 209 EXPECT_EQ(labelProperty->GetFontWeight().value(), FontWeight::BOLD); in CheckTestResult()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/ |
H A D | text_clock_model_ng.cpp | 114 if (!textClockLayoutProperty->GetFontWeight().has_value()) { in InitFontDefault() 115 SetFontWeight(textStyle.GetFontWeight()); in InitFontDefault() 232 if (!textClockLayoutProperty->GetFontWeight().has_value()) { in InitFontDefault() 233 SetFontWeight(frameNode, textStyle.GetFontWeight()); in InitFontDefault()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_element.cpp | 186 property->GetFontWeight().value_or(FontWeight::NORMAL), 0.0); in ChooseExactFontSize() 241 textProp->GetFontWeight().value_or(FontWeight::NORMAL), width_); in GetCurrentTextSize() 266 textProp->GetFontWeight().value_or(FontWeight::NORMAL), tempWidth); in TryShrinkTextWidth() 309 textProp->GetFontWeight().value_or(FontWeight::NORMAL), 0.0); in MeasureMinTextSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_model_ng.cpp | 372 DataPickerRowLayoutProperty, DisappearWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); 394 DataPickerRowLayoutProperty, DisappearWeight, value.fontWeight.value_or(disappearStyle.GetFontWeight())); 415 DataPickerRowLayoutProperty, Weight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); 437 DataPickerRowLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight())); 458 DataPickerRowLayoutProperty, SelectedWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); 480 DataPickerRowLayoutProperty, SelectedWeight, value.fontWeight.value_or(selectedStyle.GetFontWeight())); 496 DataPickerRowLayoutProperty, SelectedWeight, selectedStyle.GetFontWeight(), frameNode); 509 DataPickerRowLayoutProperty, DisappearWeight, disappearStyle.GetFontWeight(), frameNode); 519 ACE_UPDATE_NODE_LAYOUT_PROPERTY(DataPickerRowLayoutProperty, Weight, normalStyle.GetFontWeight(), frameNode); 716 value.fontWeight.value_or(selectedStyle.GetFontWeight()), frameNod [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_model_ng.cpp | 297 TimePickerLayoutProperty, DisappearWeight, value.fontWeight.value_or(disappearStyle.GetFontWeight())); 316 TimePickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight())); 337 TimePickerLayoutProperty, SelectedWeight, value.fontWeight.value_or(selectedStyle.GetFontWeight())); 500 value.fontWeight.value_or(disappearStyle.GetFontWeight()), frameNode); 523 TimePickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()), frameNode); 548 value.fontWeight.value_or(selectedStyle.GetFontWeight()), frameNode); 562 ACE_UPDATE_NODE_LAYOUT_PROPERTY(TimePickerLayoutProperty, SelectedWeight, selectedStyle.GetFontWeight(), frameNode); 575 TimePickerLayoutProperty, DisappearWeight, disappearStyle.GetFontWeight(), frameNode); 585 ACE_UPDATE_NODE_LAYOUT_PROPERTY(TimePickerLayoutProperty, Weight, normalStyle.GetFontWeight(), frameNode); 647 TimePickerLayoutProperty, DisappearWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/ |
H A D | indexer_layout_property.cpp | 66 auto defaultFontWeight = indexerTheme->GetPopupTextStyle().GetFontWeight(); in ToJsonValue() 83 fontJsonObject->Put("fontWeight", V2::ConvertWrapFontWeightToStirng(textStyle.GetFontWeight()).c_str()); in ToJsonObjectValue()
|
/foundation/arkui/ace_engine/frameworks/core/components/option/ |
H A D | option_component.h | 69 SetFontWeight(theme->GetFontWeight()); in SetTheme() 164 FontWeight GetFontWeight() const in GetFontWeight() function in OHOS::Ace::OptionComponent 166 return theme_->GetFontWeight(); in GetFontWeight()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_datepicker_ffi.cpp | 162 textStyle.fontWeight = selectedStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 168 textStyle.fontWeight = disappearStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 174 textStyle.fontWeight = normalStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/button/ |
H A D | button_content_modifier_test_ng.cpp | 150 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::BOLD); in FontWeightTest() 154 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::BOLDER); in FontWeightTest() 158 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::LIGHTER); in FontWeightTest() 162 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::MEDIUM); in FontWeightTest() 166 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::NORMAL); in FontWeightTest() 170 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::REGULAR); in FontWeightTest() 174 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W100); in FontWeightTest() 178 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W200); in FontWeightTest() 182 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ace::FontWeight::W300); in FontWeightTest() 186 EXPECT_EQ(textLayoutProp->GetFontWeight(), Ac in FontWeightTest() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_model_ng.cpp | 119 ACE_UPDATE_LAYOUT_PROPERTY(TextPickerLayoutProperty, SelectedWeight, selectedStyle.GetFontWeight()); in SetDefaultAttributes() 127 ACE_UPDATE_LAYOUT_PROPERTY(TextPickerLayoutProperty, DisappearWeight, disappearStyle.GetFontWeight()); in SetDefaultAttributes() 135 ACE_UPDATE_LAYOUT_PROPERTY(TextPickerLayoutProperty, Weight, normalStyle.GetFontWeight()); in SetDefaultAttributes() 305 TextPickerLayoutProperty, DisappearWeight, value.fontWeight.value_or(disappearStyle.GetFontWeight())); 326 TextPickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight())); 347 TextPickerLayoutProperty, SelectedWeight, value.fontWeight.value_or(selectedStyle.GetFontWeight())); 409 TextPickerLayoutProperty, DisappearWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); 431 TextPickerLayoutProperty, Weight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); 453 TextPickerLayoutProperty, SelectedWeight, pickerTextStyle.fontWeight, frameNode, style.GetFontWeight()); 810 TextPickerLayoutProperty, Weight, value.fontWeight.value_or(normalStyle.GetFontWeight()), frameNod [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | indicator_pattern.cpp | 129 swiperDigitalParameters_->fontWeight = swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight(); in GetSwiperDigitalParameters() 131 swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight(); in GetSwiperDigitalParameters() 169 swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight())); in SaveDigitIndicatorProperty() 171 swiperIndicatorTheme->GetDigitalIndicatorTextStyle().GetFontWeight())); in SaveDigitIndicatorProperty()
|
/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | text_component.cpp | 79 updateType |= static_cast<uint32_t>(declarationStyle.GetFontWeight() == textStyle.GetFontWeight() ? in Compare()
|
H A D | text_component_v2.cpp | 58 spanStyle.SetFontWeight(textStyle.GetFontWeight()); in CheckAndSetChildStyle()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_layout_property.h | 148 if (GetFontWeight().has_value()) { in InspectorGetTextFont() 149 font.SetFontWeight(GetFontWeight().value()); in InspectorGetTextFont()
|