Home
last modified time | relevance | path

Searched refs:fontSizeScale (Results 1 - 25 of 33) sorted by relevance

12

/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
H A Dnapi_common_configuration.cpp78 std::string fontSizeScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE); in WrapConfiguration() local
79 jsValue = WrapDoubleToJS(env, fontSizeScale != "" ? std::stod(fontSizeScale) : 1.0); in WrapConfiguration()
80 SetPropertyValueByPropertyName(env, jsObject, "fontSizeScale", jsValue); in WrapConfiguration()
126 double fontSizeScale = 0.0; in UnwrapConfiguration() local
127 if (UnwrapDoubleByPropertyName(env, param, "fontSizeScale", fontSizeScale)) { in UnwrapConfiguration()
128 TAG_LOGD(AAFwkTag::JSNAPI, "The parsed fontSizeScale part %{public}lf", fontSizeScale); in UnwrapConfiguration()
129 if (fontSizeScale < FONT_SIZE_MIN_SCAL in UnwrapConfiguration()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_view.cpp179 auto fontSizeScale = pipeline->GetFontScale(); in SetTitleIdealSize() local
180 if (fontSizeScale < theme->GetCalendarPickerLargeScale() || CheckOrientationChange()) { in SetTitleIdealSize()
182 } else if (fontSizeScale >= theme->GetCalendarPickerLargerScale()) { in SetTitleIdealSize()
336 auto fontSizeScale = pipeline->GetFontScale(); in SetCalendarIdealSize() local
337 if (fontSizeScale < theme->GetCalendarPickerLargeScale() || CheckOrientationChange()) { in SetCalendarIdealSize()
340 } else if (fontSizeScale >= theme->GetCalendarPickerLargerScale()) { in SetCalendarIdealSize()
526 auto fontSizeScale = pipeline->GetFontScale(); in CreateButtonNode() local
528 if (fontSizeScale < calendarTheme->GetCalendarPickerLargeScale() || CheckOrientationChange()) { in CreateButtonNode()
531 fontSizeScale = fontSizeScale > calendarThem in CreateButtonNode()
591 auto fontSizeScale = pipeline->GetFontScale(); UpdateButtonLayoutProperty() local
826 auto fontSizeScale = pipelineContext->GetFontScale(); SetCalendarPaintProperties() local
991 auto fontSizeScale = pipelineContext->GetFontScale(); UpdatePaintProperties() local
1048 auto fontSizeScale = pipelineContext->GetFontScale(); UpdateButtons() local
[all...]
H A Dcalendar_dialog_pattern.cpp1304 auto fontSizeScale = pipelineContext->GetFontScale(); in OnLanguageConfigurationUpdate() local
1310 if (fontSizeScale < theme->GetCalendarPickerLargeScale() || CalendarDialogView::CheckOrientationChange()) { in OnLanguageConfigurationUpdate()
1313 fontSizeScale = fontSizeScale > theme->GetCalendarPickerLargerScale() in OnLanguageConfigurationUpdate()
1315 : fontSizeScale; in OnLanguageConfigurationUpdate()
1317 CalendarPaintProperty, WeekFontSize, fontSize * fontSizeScale, monthFrameNode); in OnLanguageConfigurationUpdate()
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js105 this.__fontSizeScale = new ObservedPropertySimplePU(1, this, 'fontSizeScale');
109 this.textAlignment = getTextAlign(o34, this.content, `${BODY_L * this.fontSizeScale}vp`);
174 if (h34.fontSizeScale !== undefined) {
175 this.fontSizeScale = h34.fontSizeScale;
253 get fontSizeScale() {
257 set fontSizeScale(z33) {
285 fontSizeScale: this.__fontSizeScale,
299 fontSizeScale: this.fontSizeScale,
[all...]
/foundation/ability/ability_runtime/frameworks/cj/ffi/
H A Dcj_environment_callback.cpp100 std::string fontSizeScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE); in CreateCConfiguration() local
101 cfg.fontSizeScale = fontSizeScale == "" ? 1.0 : std::stod(fontSizeScale); in CreateCConfiguration()
H A Dcj_utils_ffi.h31 double fontSizeScale; member
/foundation/arkui/ace_engine/advanced_ui_component/composelistitem/interfaces/
H A Dcomposelistitem.js107 this.__fontSizeScale = new SynchedPropertySimpleOneWayPU(b11.fontSizeScale, this, "fontSizeScale");
157 this.__fontSizeScale.reset(y10.fontSizeScale);
253 get fontSizeScale() {
256 set fontSizeScale(w11) {
343 Column.margin(this.fontSizeScale >= FontSizeScaleLevel.LEVEL1 ? undefined : {
1242 this.__fontSizeScale = new ObservedPropertySimplePU(1, this, "fontSizeScale");
1253 this.declareWatch("fontSizeScale", this.onFontSizeScaleChange);
1299 if (s2.fontSizeScale !== undefined) {
1300 this.fontSizeScale
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_pattern.cpp457 auto fontSizeScale = pipelineContext->GetFontScale(); in UpdateTitleNode() local
459 if (fontSizeScale < theme->GetCalendarPickerLargeScale() || CalendarDialogView::CheckOrientationChange()) { in UpdateTitleNode()
463 fontSizeScale = fontSizeScale > theme->GetCalendarPickerLargerScale() ? theme->GetCalendarPickerLargerScale() in UpdateTitleNode()
464 : fontSizeScale; in UpdateTitleNode()
465 textLayoutProperty->UpdateFontSize(fontSize * fontSizeScale); in UpdateTitleNode()
H A Dcalendar_paint_method.cpp672 auto fontSizeScale = pipelineContext->GetFontScale(); in SetCalendarTheme() local
673 if (fontSizeScale < theme->GetCalendarPickerLargeScale() || in SetCalendarTheme()
H A Dcalendar_month_pattern.cpp75 auto fontSizeScale = pipeline->GetFontScale(); in GetDaySize() local
76 if (fontSizeScale < theme->GetCalendarPickerLargeScale() || CalendarDialogView::CheckOrientationChange()) { in GetDaySize()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_data_struct_converter.cpp113 std::string fontSizeScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE); in CreateJsConfiguration() local
114 napi_set_named_property(env, object, "fontSizeScale", in CreateJsConfiguration()
115 CreateJsValue(env, fontSizeScale == "" ? 1.0 : std::stod(fontSizeScale))); in CreateJsConfiguration()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/
H A Dbadge_layout_algorithm.cpp58 auto fontSizeScale = pipeline->GetFontScale(); in Measure() local
70 if (fontSizeScale >= AGE_FONT_SIZE_SCALE) { in Measure()
129 fontSizeScale >= AGE_FONT_SIZE_SCALE in Measure()
227 auto fontSizeScale = pipeline->GetFontScale(); in Layout() local
231 if (fontSizeScale >= AGE_FONT_SIZE_SCALE) { in Layout()
/foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/interfaces/
H A Dgridobjectsortcomponent.js123 this.__fontSizeScale = new ObservedPropertyObjectPU(1, this, "fontSizeScale");
148 this.fontSizeScale = this.decideFontScale(c17);
154 this.declareWatch("fontSizeScale", this.calcAreaInfo);
290 if (s16.fontSizeScale !== undefined) {
291 this.fontSizeScale = s16.fontSizeScale;
711 get fontSizeScale() {
714 set fontSizeScale(y14) {
753 this.fontSizeScale = this.decideFontScale(r14);
777 DEFAULT_TEXT_SIZE) * (this.fontSizeScale
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_dialog_view.cpp1060 float fontSizeScale = pipeline->GetFontScale();
1068 fontSizeScale = std::clamp(fontSizeScale, 0.0f, maxAppFontScale);
1072 if (GreatOrEqualCustomPrecision(fontSizeValue.ConvertToPx() * fontSizeScale,
1073 fontSizeLimit.ConvertToPx()) && (fontSizeScale != 0.0f)) {
1074 fontSizeValueResult = fontSizeLimit / fontSizeScale;
1079 if (GreatOrEqualCustomPrecision(fontSizeScale, pickerTheme->GetMaxThirdFontScale())) {
1080 fontSizeScale = pickerTheme->GetMaxTwoFontScale() / pickerTheme->GetMaxThirdFontScale();
1081 fontSizeValueResult = fontSizeValue * fontSizeScale;
1088 if (GreatOrEqualCustomPrecision(fontSizeScale, pickerThem
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/chip/interfaces/
H A Dchip.js509 this.w3 = new ObservedPropertyObjectPU(0, this, 'fontSizeScale');
513 this.fontSizeScale = configuration.fontSizeScale;
515 this.isClipable = (this.toVp(this.fontSizeScale) >= this.theme.q1.s1) ? true : false;
632 if (params.fontSizeScale !== undefined) {
633 this.fontSizeScale = params.fontSizeScale;
924 get fontSizeScale() {
927 set fontSizeScale(newValue) {
1529 } else if (this.toVp(this.fontSizeScale) >
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_dialog_view.cpp1510 float fontSizeScale = pipeline->GetFontScale();
1519 fontSizeScale = std::clamp(fontSizeScale, 0.0f, maxAppFontScale);
1522 if (GreatOrEqualCustomPrecision(fontSizeValue.ConvertToPx() * fontSizeScale,
1523 fontSizeLimit.ConvertToPx()) && (fontSizeScale != 0.0f)) {
1524 fontSizeValueResult = fontSizeLimit / fontSizeScale;
1529 if (GreatOrEqualCustomPrecision(fontSizeScale, pickerTheme->GetMaxThirdFontScale())) {
1530 fontSizeScale = pickerTheme->GetMaxTwoFontScale() / pickerTheme->GetMaxThirdFontScale();
1531 fontSizeValueResult = fontSizeValue * fontSizeScale;
1538 if (GreatOrEqualCustomPrecision(fontSizeScale, pickerThem
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_view.cpp82 auto fontSizeScale = pipeline->GetFontScale(); in GetAgeFontSize() local
83 auto fontScale = fontSizeScale > AGE_FONT_MAX_SIZE_SCALE ? AGE_FONT_MAX_SIZE_SCALE : fontSizeScale; in GetAgeFontSize()
803 auto fontSizeScale = pipeline->GetFontScale(); in UpdateButtonFontSize() local
804 auto fontScale = fontSizeScale > AGE_FONT_MAX_SIZE_SCALE ? AGE_FONT_MAX_SIZE_SCALE : fontSizeScale; in UpdateButtonFontSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_dialog_view.cpp2078 float fontSizeScale = pipeline->GetFontScale();
2087 fontSizeScale = std::clamp(fontSizeScale, 0.0f, maxAppFontScale);
2090 if (GreatOrEqualCustomPrecision(fontSizeValue.ConvertToPx() * fontSizeScale,
2091 fontSizeLimit.ConvertToPx()) && (fontSizeScale != 0.0f)) {
2092 fontSizeValueResult = fontSizeLimit / fontSizeScale;
2097 if (GreatOrEqualCustomPrecision(fontSizeScale, pickerTheme->GetMaxThirdFontScale())) {
2098 fontSizeScale = pickerTheme->GetMaxTwoFontScale() / pickerTheme->GetMaxThirdFontScale();
2099 fontSizeValueResult = fontSizeValue * fontSizeScale;
2106 if (GreatOrEqualCustomPrecision(fontSizeScale, pickerThem
[all...]
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/
H A Dapplication_context.h114 bool SetFontSizeScale(double fontSizeScale);
/foundation/arkui/ace_engine/advanced_ui_component/exceptionprompt/interfaces/
H A Dexceptionprompt.js406 let systemFontScale = uiContent.getHostContext()?.config?.fontSizeScale ?? 1;
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Djs_application_context_utils.cpp719 double fontSizeScale = 1; in OnSetFontSizeScale() local
720 if (!ConvertFromJsNumber(env, info.argv[INDEX_ZERO], fontSizeScale)) { in OnSetFontSizeScale()
721 TAG_LOGE(AAFwkTag::APPKIT, "Parse fontSizeScale failed"); in OnSetFontSizeScale()
722 ThrowInvalidParamError(env, "Parse fontSizeScale failed, fontSizeScale must be number."); in OnSetFontSizeScale()
725 TAG_LOGD(AAFwkTag::APPKIT, "fontSizeScale: %{public}f", fontSizeScale); in OnSetFontSizeScale()
726 if (fontSizeScale < FOUNT_SIZE) { in OnSetFontSizeScale()
732 applicationContext->SetFontSizeScale(fontSizeScale); in OnSetFontSizeScale()
H A Dapplication_context.cpp740 bool ApplicationContext::SetFontSizeScale(double fontSizeScale) in SetFontSizeScale() argument
748 config.AddItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE, std::to_string(fontSizeScale)); in SetFontSizeScale()
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar_picker/
H A Dcalendar_picker_pattern_test_ng.cpp741 auto fontSizeScale = pipelineContext->GetFontScale(); in HWTEST_F() local
743 EXPECT_FALSE(fontSizeScale < theme->GetCalendarPickerLargeScale()); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/
H A Ddate_picker_test_one.cpp320 * @tc.expected: call GetIsUserSetTextProperties and result expect equal fontSizeLimit / fontSizeScale. in HWTEST_F()
323 float fontSizeScale = pipeline->GetFontScale(); in HWTEST_F() local
324 auto fontSizeValueResult = fontSizeLimit / fontSizeScale; in HWTEST_F()
364 * fontSizeScale is greater than ThirdFontScale and call GetIsUserSetTextProperties in HWTEST_F()
365 * @tc.expected: result expect equal fontSizeValue - fontSizeLimit / fontSizeScale. in HWTEST_F()
368 float fontSizeScale = pipeline->GetFontScale(); in HWTEST_F() local
369 auto fontSizeValueResult = fontSizeLimit / fontSizeScale; in HWTEST_F()
/foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces/
H A Dselecttitlebar.js675 this.systemFontScale = uiContent.getHostContext()?.config?.fontSizeScale ?? 1;
1175 this.systemFontScale = uiContent.getHostContext()?.config?.fontSizeScale ?? 1;

Completed in 33 milliseconds

12