From d8605d3fcdac0918a1d70ac8d8e7ed2b403c6063 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Tue, 19 Dec 2023 19:57:52 +0800 Subject: [PATCH] perf: adjust the range of custom font sizes --- Easydict/Feature/Configuration/EZConfiguration.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Easydict/Feature/Configuration/EZConfiguration.m b/Easydict/Feature/Configuration/EZConfiguration.m index 3be00f7bd..31de77488 100644 --- a/Easydict/Feature/Configuration/EZConfiguration.m +++ b/Easydict/Feature/Configuration/EZConfiguration.m @@ -123,8 +123,8 @@ - (void)setup { self.allowAnalytics = [NSUserDefaults mm_readBool:kAllowAnalyticsKey defaultValue:YES]; self.clearInput = [NSUserDefaults mm_readBool:kClearInputKey defaultValue:NO]; - self.fontSizes = @[@(0.75), @(1), @(1.25), @(1.5), @(1.75), @(2)]; - [[NSUserDefaults standardUserDefaults]registerDefaults:@{kTranslationControllerFontKey: self.fontSizes[1]}]; + self.fontSizes = @[@(1), @(1.1), @(1.2), @(1.3), @(1.4)]; + [[NSUserDefaults standardUserDefaults]registerDefaults:@{kTranslationControllerFontKey: self.fontSizes.firstObject}]; self.currentFontSizeRatio = [[NSUserDefaults standardUserDefaults]floatForKey:kTranslationControllerFontKey]; }