Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: rename [font scale factor] to [scale factor] (#7267)

Morndd812d05010f
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/appearance_setting_group.dart b/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/appearance_setting_group.dart
index abb31817e5..47e356e6c1 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/appearance_setting_group.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/appearance_setting_group.dart
@@ -19,7 +19,7 @@ class AppearanceSettingGroup extends StatelessWidget {
settingItemList: const [
ThemeSetting(),
FontSetting(),
- TextScaleSetting(),
+ DisplaySizeSetting(),
RTLSetting(),
],
);
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/text_scale_setting.dart b/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/text_scale_setting.dart
index 00dafb9391..7c89185e79 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/text_scale_setting.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/text_scale_setting.dart
@@ -15,16 +15,16 @@ const int _divisions = 4;
const double _minMobileScaleFactor = 0.8;
const double _maxMobileScaleFactor = 1.2;
-class TextScaleSetting extends StatefulWidget {
- const TextScaleSetting({
+class DisplaySizeSetting extends StatefulWidget {
+ const DisplaySizeSetting({
super.key,
});
@override
- State<TextScaleSetting> createState() => _TextScaleSettingState();
+ State<DisplaySizeSetting> createState() => _DisplaySizeSettingState();
}
-class _TextScaleSettingState extends State<TextScaleSetting> {
+class _DisplaySizeSettingState extends State<DisplaySizeSetting> {
double scaleFactor = 1.0;
final windowSizeManager = WindowSizeManager();
@@ -44,7 +44,7 @@ class _TextScaleSettingState extends State<TextScaleSetting> {
Widget build(BuildContext context) {
final theme = Theme.of(context);
return MobileSettingItem(
- name: LocaleKeys.settings_appearance_fontScaleFactor.tr(),
+ name: LocaleKeys.settings_appearance_displaySize.tr(),
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: [
@@ -61,7 +61,7 @@ class _TextScaleSettingState extends State<TextScaleSetting> {
showHeader: true,
showDragHandle: true,
showDivider: false,
- title: LocaleKeys.settings_appearance_fontScaleFactor.tr(),
+ title: LocaleKeys.settings_appearance_displaySize.tr(),
builder: (context) {
return FontSizeStepper(
value: scaleFactor,
diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json
index 2d5503497e..09d2cf4e05 100644
--- a/frontend/resources/translations/en.json
+++ b/frontend/resources/translations/en.json
@@ -1191,6 +1191,7 @@
"system": "Adapt to System"
},
"fontScaleFactor": "Font Scale Factor",
+ "displaySize": "Display Size",
"documentSettings": {
"cursorColor": "Document cursor color",
"selectionColor": "Document selection color",