Bug fix for fontsize
This commit is contained in:
@@ -103,6 +103,8 @@ namespace v2rayN.Desktop.ViewModels
|
|||||||
private void ModifyFontSize()
|
private void ModifyFontSize()
|
||||||
{
|
{
|
||||||
double size = CurrentFontSize;
|
double size = CurrentFontSize;
|
||||||
|
if (size < Global.MinFontSize) return;
|
||||||
|
|
||||||
Style style = new(x => Selectors.Or(
|
Style style = new(x => Selectors.Or(
|
||||||
x.OfType<Button>(),
|
x.OfType<Button>(),
|
||||||
x.OfType<TextBox>(),
|
x.OfType<TextBox>(),
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ namespace v2rayN.ViewModels
|
|||||||
private void ModifyFontSize()
|
private void ModifyFontSize()
|
||||||
{
|
{
|
||||||
double size = (long)CurrentFontSize;
|
double size = (long)CurrentFontSize;
|
||||||
if (size < Global.MinFontSize) size = Global.MinFontSize;
|
if (size < Global.MinFontSize) return;
|
||||||
|
|
||||||
Application.Current.Resources["StdFontSize"] = size;
|
Application.Current.Resources["StdFontSize"] = size;
|
||||||
Application.Current.Resources["StdFontSize1"] = size + 1;
|
Application.Current.Resources["StdFontSize1"] = size + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user