DPI调整
This commit is contained in:
parent
128bf5e58d
commit
a13aee0c60
@ -25,6 +25,7 @@ namespace FastGithub.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
StartFastGithub();
|
StartFastGithub();
|
||||||
|
SetWebBrowserDPI();
|
||||||
SetWebBrowserVersion();
|
SetWebBrowserVersion();
|
||||||
|
|
||||||
var app = new Application();
|
var app = new Application();
|
||||||
@ -69,6 +70,21 @@ namespace FastGithub.UI
|
|||||||
registryKey.SetValue(name, value, RegistryValueKind.DWord);
|
registryKey.SetValue(name, value, RegistryValueKind.DWord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设置浏览器DPI
|
||||||
|
/// </summary>
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 启动fastgithub
|
/// 启动fastgithub
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -3,13 +3,14 @@
|
|||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
|
||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" crossorigin="anonymous">
|
||||||
<title>证书验证</title>
|
<title>证书验证</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
|
padding: 0px 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
@ -28,7 +29,6 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onContextMenu="return false;">
|
<body onContextMenu="return false;">
|
||||||
<div class="container">
|
|
||||||
<div>
|
<div>
|
||||||
<h3>Firefox</h3>
|
<h3>Firefox</h3>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
@ -72,7 +72,6 @@
|
|||||||
<span>在cmd输入:</span><code>git config --global http.sslverify false</code>
|
<span>在cmd输入:</span><code>git config --global http.sslverify false</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var codes = document.getElementsByTagName('code');
|
var codes = document.getElementsByTagName('code');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user