diff --git a/FastGithub.UI/Program.cs b/FastGithub.UI/Program.cs index c993431..3a8702b 100644 --- a/FastGithub.UI/Program.cs +++ b/FastGithub.UI/Program.cs @@ -25,6 +25,7 @@ namespace FastGithub.UI } StartFastGithub(); + SetWebBrowserDPI(); SetWebBrowserVersion(); var app = new Application(); @@ -69,12 +70,27 @@ namespace FastGithub.UI registryKey.SetValue(name, value, RegistryValueKind.DWord); } + /// + /// 设置浏览器DPI + /// + private static void SetWebBrowserDPI() + { + const string subKey = @"Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_96DPI_PIXEL"; + var registryKey = Registry.CurrentUser.OpenSubKey(subKey, true); + if (registryKey == null) + { + registryKey = Registry.CurrentUser.CreateSubKey(subKey); + } + var name = $"{Process.GetCurrentProcess().ProcessName}.exe"; + registryKey.SetValue(name, 1, RegistryValueKind.DWord); + } + /// /// 启动fastgithub /// /// private static void StartFastGithub() - { + { if (File.Exists(FASTGITHUB_PATH) == false) { return; diff --git a/FastGithub.UI/Resource/issue.html b/FastGithub.UI/Resource/issue.html index 2dab2e6..fc5a97e 100644 --- a/FastGithub.UI/Resource/issue.html +++ b/FastGithub.UI/Resource/issue.html @@ -3,13 +3,14 @@ - + 证书验证