mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-02 10:10:16 +00:00
chore: rename [font scale factor] to [scale factor] (#7267)
This commit is contained in:
parent
a79f825ff1
commit
dd812d0501
@ -19,7 +19,7 @@ class AppearanceSettingGroup extends StatelessWidget {
|
||||
settingItemList: const [
|
||||
ThemeSetting(),
|
||||
FontSetting(),
|
||||
TextScaleSetting(),
|
||||
DisplaySizeSetting(),
|
||||
RTLSetting(),
|
||||
],
|
||||
);
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -1191,6 +1191,7 @@
|
||||
"system": "Adapt to System"
|
||||
},
|
||||
"fontScaleFactor": "Font Scale Factor",
|
||||
"displaySize": "Display Size",
|
||||
"documentSettings": {
|
||||
"cursorColor": "Document cursor color",
|
||||
"selectionColor": "Document selection color",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user