mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-01 20:42:10 +00:00
Buf fix for CurrentFontSize
This commit is contained in:
parent
b12b7a17e6
commit
038161527f
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,7 @@ namespace v2rayN.ViewModels
|
||||||
y => y > 0)
|
y => y > 0)
|
||||||
.Subscribe(c =>
|
.Subscribe(c =>
|
||||||
{
|
{
|
||||||
if (_config.UiItem.CurrentFontSize != CurrentFontSize && CurrentFontSize >= Global.MinFontSize)
|
if (_config.UiItem.CurrentFontSize != CurrentFontSize)
|
||||||
{
|
{
|
||||||
_config.UiItem.CurrentFontSize = CurrentFontSize;
|
_config.UiItem.CurrentFontSize = CurrentFontSize;
|
||||||
ModifyFontSize();
|
ModifyFontSize();
|
||||||
|
@ -158,6 +158,8 @@ namespace v2rayN.ViewModels
|
||||||
private void ModifyFontSize()
|
private void ModifyFontSize()
|
||||||
{
|
{
|
||||||
double size = (long)CurrentFontSize;
|
double size = (long)CurrentFontSize;
|
||||||
|
if (size < Global.MinFontSize) size = Global.MinFontSize;
|
||||||
|
|
||||||
Application.Current.Resources["StdFontSize"] = size;
|
Application.Current.Resources["StdFontSize"] = size;
|
||||||
Application.Current.Resources["StdFontSize1"] = size + 1;
|
Application.Current.Resources["StdFontSize1"] = size + 1;
|
||||||
Application.Current.Resources["StdFontSize-1"] = size - 1;
|
Application.Current.Resources["StdFontSize-1"] = size - 1;
|
||||||
|
|
Loading…
Reference in a new issue