Add Font setting for macos
This commit is contained in:
@@ -169,6 +169,12 @@ namespace v2rayN.Desktop.Views
|
|||||||
{
|
{
|
||||||
tabSystemproxy.IsVisible = false;
|
tabSystemproxy.IsVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Utils.IsOSX())
|
||||||
|
{
|
||||||
|
togAutoRun.IsVisible = false;
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<bool> UpdateViewHandler(EViewAction action, object? obj)
|
private async Task<bool> UpdateViewHandler(EViewAction action, object? obj)
|
||||||
@@ -202,7 +208,7 @@ namespace v2rayN.Desktop.Views
|
|||||||
{
|
{
|
||||||
return lstFonts;
|
return lstFonts;
|
||||||
}
|
}
|
||||||
else if (Utils.IsLinux())
|
else if (Utils.IsLinux() || Utils.IsOSX())
|
||||||
{
|
{
|
||||||
var result = await Utils.GetLinuxFontFamily("zh");
|
var result = await Utils.GetLinuxFontFamily("zh");
|
||||||
if (result.IsNullOrEmpty())
|
if (result.IsNullOrEmpty())
|
||||||
@@ -218,11 +224,6 @@ namespace v2rayN.Desktop.Views
|
|||||||
.ToList();
|
.ToList();
|
||||||
return lst;
|
return lst;
|
||||||
}
|
}
|
||||||
else if (Utils.IsOSX())
|
|
||||||
{
|
|
||||||
//TODO
|
|
||||||
return lstFonts;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user