Optimize Font size

pull/3234/head
2dust 2023-02-07 19:05:49 +08:00
parent 9dfd89c90d
commit 0ebf8c9349
3 changed files with 7 additions and 5 deletions

View File

@ -18,8 +18,9 @@
</ResourceDictionary.MergedDictionaries>
<system:Double x:Key="MenuItemHeight">26</system:Double>
<system:Double x:Key="StdFontSize">12</system:Double>
<system:Double x:Key="StdFontSize1">14</system:Double>
<system:Double x:Key="StdFontSize2">16</system:Double>
<system:Double x:Key="StdFontSize1">13</system:Double>
<system:Double x:Key="StdFontSize2">14</system:Double>
<system:Double x:Key="StdFontSizeMsg">11</system:Double>
<Thickness
x:Key="ServerItemMargin"
Bottom="4"

View File

@ -1616,8 +1616,9 @@ namespace v2rayN.ViewModels
_config.uiItem.currentFontSize = CurrentFontSize;
double size = (long)CurrentFontSize;
Application.Current.Resources["StdFontSize"] = size;
Application.Current.Resources["StdFontSize1"] = size + 2;
Application.Current.Resources["StdFontSize2"] = size + 4;
Application.Current.Resources["StdFontSize1"] = size + 1;
Application.Current.Resources["StdFontSize2"] = size + 2;
Application.Current.Resources["StdFontSizeMsg"] = size - 1;
ConfigHandler.SaveConfig(ref _config);
}

View File

@ -44,7 +44,7 @@
<TextBox
Name="txtMsg"
BorderThickness="0"
FontSize="{DynamicResource StdFontSize}"
FontSize="{DynamicResource StdFontSizeMsg}"
HorizontalScrollBarVisibility="Auto"
IsReadOnly="True"
TextWrapping="Wrap"