mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-03 18:50:04 +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 [
|
settingItemList: const [
|
||||||
ThemeSetting(),
|
ThemeSetting(),
|
||||||
FontSetting(),
|
FontSetting(),
|
||||||
TextScaleSetting(),
|
DisplaySizeSetting(),
|
||||||
RTLSetting(),
|
RTLSetting(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
@ -15,16 +15,16 @@ const int _divisions = 4;
|
|||||||
const double _minMobileScaleFactor = 0.8;
|
const double _minMobileScaleFactor = 0.8;
|
||||||
const double _maxMobileScaleFactor = 1.2;
|
const double _maxMobileScaleFactor = 1.2;
|
||||||
|
|
||||||
class TextScaleSetting extends StatefulWidget {
|
class DisplaySizeSetting extends StatefulWidget {
|
||||||
const TextScaleSetting({
|
const DisplaySizeSetting({
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<TextScaleSetting> createState() => _TextScaleSettingState();
|
State<DisplaySizeSetting> createState() => _DisplaySizeSettingState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _TextScaleSettingState extends State<TextScaleSetting> {
|
class _DisplaySizeSettingState extends State<DisplaySizeSetting> {
|
||||||
double scaleFactor = 1.0;
|
double scaleFactor = 1.0;
|
||||||
final windowSizeManager = WindowSizeManager();
|
final windowSizeManager = WindowSizeManager();
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ class _TextScaleSettingState extends State<TextScaleSetting> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
return MobileSettingItem(
|
return MobileSettingItem(
|
||||||
name: LocaleKeys.settings_appearance_fontScaleFactor.tr(),
|
name: LocaleKeys.settings_appearance_displaySize.tr(),
|
||||||
trailing: Row(
|
trailing: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
@ -61,7 +61,7 @@ class _TextScaleSettingState extends State<TextScaleSetting> {
|
|||||||
showHeader: true,
|
showHeader: true,
|
||||||
showDragHandle: true,
|
showDragHandle: true,
|
||||||
showDivider: false,
|
showDivider: false,
|
||||||
title: LocaleKeys.settings_appearance_fontScaleFactor.tr(),
|
title: LocaleKeys.settings_appearance_displaySize.tr(),
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return FontSizeStepper(
|
return FontSizeStepper(
|
||||||
value: scaleFactor,
|
value: scaleFactor,
|
||||||
|
|||||||
@ -1191,6 +1191,7 @@
|
|||||||
"system": "Adapt to System"
|
"system": "Adapt to System"
|
||||||
},
|
},
|
||||||
"fontScaleFactor": "Font Scale Factor",
|
"fontScaleFactor": "Font Scale Factor",
|
||||||
|
"displaySize": "Display Size",
|
||||||
"documentSettings": {
|
"documentSettings": {
|
||||||
"cursorColor": "Document cursor color",
|
"cursorColor": "Document cursor color",
|
||||||
"selectionColor": "Document selection color",
|
"selectionColor": "Document selection color",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user