mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-07-08 00:07:13 +08:00
[#] 修改动态获取补丁信息时Label的颜色变化
This commit is contained in:
parent
4ec2f6b203
commit
b5fb37723f
2
RevokeMsgPatcher/FormMain.Designer.cs
generated
2
RevokeMsgPatcher/FormMain.Designer.cs
generated
|
@ -135,7 +135,7 @@
|
||||||
//
|
//
|
||||||
this.lblUpdatePachJson.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.lblUpdatePachJson.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.lblUpdatePachJson.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.lblUpdatePachJson.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.lblUpdatePachJson.ForeColor = System.Drawing.SystemColors.Highlight;
|
this.lblUpdatePachJson.ForeColor = System.Drawing.Color.OrangeRed;
|
||||||
this.lblUpdatePachJson.Location = new System.Drawing.Point(168, 118);
|
this.lblUpdatePachJson.Location = new System.Drawing.Point(168, 118);
|
||||||
this.lblUpdatePachJson.Name = "lblUpdatePachJson";
|
this.lblUpdatePachJson.Name = "lblUpdatePachJson";
|
||||||
this.lblUpdatePachJson.Size = new System.Drawing.Size(308, 12);
|
this.lblUpdatePachJson.Size = new System.Drawing.Size(308, 12);
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
using RevokeMsgPatcher.Modifier;
|
using RevokeMsgPatcher.Modifier;
|
||||||
using RevokeMsgPatcher.Utils;
|
using RevokeMsgPatcher.Utils;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Web.Script.Serialization;
|
using System.Web.Script.Serialization;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
@ -239,11 +240,13 @@ namespace RevokeMsgPatcher
|
||||||
{
|
{
|
||||||
needUpdate = true;
|
needUpdate = true;
|
||||||
lblUpdatePachJson.Text = $"[ 存在最新版本 {bag.LatestVersion} ]";
|
lblUpdatePachJson.Text = $"[ 存在最新版本 {bag.LatestVersion} ]";
|
||||||
|
lblUpdatePachJson.ForeColor = Color.Red;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
needUpdate = false;
|
needUpdate = false;
|
||||||
lblUpdatePachJson.Text = "[ 获取成功,点击查看更多信息 ]";
|
lblUpdatePachJson.Text = "[ 获取成功,点击查看更多信息 ]";
|
||||||
|
lblUpdatePachJson.ForeColor = Color.RoyalBlue;
|
||||||
}
|
}
|
||||||
InitControls();
|
InitControls();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user