[#] 修改动态获取补丁信息时Label的颜色变化

This commit is contained in:
huiyadanli 2020-01-05 00:29:53 +08:00
parent 4ec2f6b203
commit b5fb37723f
2 changed files with 4 additions and 1 deletions

View File

@ -135,7 +135,7 @@
//
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.ForeColor = System.Drawing.SystemColors.Highlight;
this.lblUpdatePachJson.ForeColor = System.Drawing.Color.OrangeRed;
this.lblUpdatePachJson.Location = new System.Drawing.Point(168, 118);
this.lblUpdatePachJson.Name = "lblUpdatePachJson";
this.lblUpdatePachJson.Size = new System.Drawing.Size(308, 12);

View File

@ -2,6 +2,7 @@
using RevokeMsgPatcher.Modifier;
using RevokeMsgPatcher.Utils;
using System;
using System.Drawing;
using System.IO;
using System.Web.Script.Serialization;
using System.Windows.Forms;
@ -239,11 +240,13 @@ namespace RevokeMsgPatcher
{
needUpdate = true;
lblUpdatePachJson.Text = $"[ 存在最新版本 {bag.LatestVersion} ]";
lblUpdatePachJson.ForeColor = Color.Red;
}
else
{
needUpdate = false;
lblUpdatePachJson.Text = "[ 获取成功,点击查看更多信息 ]";
lblUpdatePachJson.ForeColor = Color.RoyalBlue;
}
InitControls();
}