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,50 +29,48 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onContextMenu="return false;">
|
<body onContextMenu="return false;">
|
||||||
<div class="container">
|
<div>
|
||||||
<div>
|
<h3>Firefox</h3>
|
||||||
<h3>Firefox</h3>
|
<blockquote>
|
||||||
<blockquote>
|
<h4>建立安全连接失败</h4>
|
||||||
<h4>建立安全连接失败</h4>
|
<p><small>连接到 github.com 时发生错误。对等端的证书有一个无效的签名。</small> </p>
|
||||||
<p><small>连接到 github.com 时发生错误。对等端的证书有一个无效的签名。</small> </p>
|
<p><small> 错误代码:SEC_ERROR_BAD_SIGNATURE</small> </p>
|
||||||
<p><small> 错误代码:SEC_ERROR_BAD_SIGNATURE</small> </p>
|
</blockquote>
|
||||||
</blockquote>
|
|
||||||
|
|
||||||
<h4>解决办法</h4>
|
<h4>解决办法</h4>
|
||||||
<p>
|
<p>
|
||||||
<span class="badge">1</span>
|
<span class="badge">1</span>
|
||||||
<span>地址栏输入:</span><code>about:config</code>
|
<span>地址栏输入:</span><code>about:config</code>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span class="badge">2</span>
|
<span class="badge">2</span>
|
||||||
<span>输入首选项名称:</span><code>security.enterprise_roots.enabled</code>
|
<span>输入首选项名称:</span><code>security.enterprise_roots.enabled</code>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span class="badge">3</span>
|
<span class="badge">3</span>
|
||||||
<span>修改值为:</span><code>true</code>
|
<span>修改值为:</span><code>true</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3>git.exe</h3>
|
<h3>git.exe</h3>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<h4>clone、pull或push等证书异常</h4>
|
<h4>clone、pull或push等证书异常</h4>
|
||||||
<p><small>fatal: unable to access 'https://github.com/xxx.git/'</small> </p>
|
<p><small>fatal: unable to access 'https://github.com/xxx.git/'</small> </p>
|
||||||
<p><small>SSL certificate problem: unable to get local issuer certificate</small> </p>
|
<p><small>SSL certificate problem: unable to get local issuer certificate</small> </p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<h4>解决办法</h4>
|
<h4>解决办法</h4>
|
||||||
<p>
|
<p>
|
||||||
<span class="badge">1</span>
|
<span class="badge">1</span>
|
||||||
<span>管理员身份运行:</span><code>cmd</code>
|
<span>管理员身份运行:</span><code>cmd</code>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span class="badge">2</span>
|
<span class="badge">2</span>
|
||||||
<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">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user