mirror of https://github.com/2dust/v2rayN
Add InterlaceColoring option
parent
c837ba5482
commit
f48468029e
|
@ -256,14 +256,14 @@ namespace v2rayN.Forms
|
|||
_addSubItem(lvItem, EServerColName.totalUp.ToString(), totalUp);
|
||||
}
|
||||
|
||||
if (k % 2 == 1) // 隔行着色
|
||||
if (config.interlaceColoring && k % 2 == 1) // 隔行着色
|
||||
{
|
||||
lvItem.BackColor = Color.WhiteSmoke;
|
||||
lvItem.BackColor = SystemColors.Control;
|
||||
}
|
||||
if (config.index.Equals(k))
|
||||
{
|
||||
//lvItem.Checked = true;
|
||||
lvItem.ForeColor = Color.DodgerBlue;
|
||||
lvItem.ForeColor = SystemColors.MenuHighlight;
|
||||
lvItem.Font = new Font(lvItem.Font, FontStyle.Bold);
|
||||
}
|
||||
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btnOK = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.chkInterlaceColoring = new System.Windows.Forms.CheckBox();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabBasic.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
|
@ -512,6 +513,7 @@
|
|||
//
|
||||
// tabGUI
|
||||
//
|
||||
this.tabGUI.Controls.Add(this.chkInterlaceColoring);
|
||||
this.tabGUI.Controls.Add(this.chkKeepOlderDedupl);
|
||||
this.tabGUI.Controls.Add(this.cbFreshrate);
|
||||
this.tabGUI.Controls.Add(this.lbFreshrate);
|
||||
|
@ -614,6 +616,12 @@
|
|||
resources.ApplyResources(this.panel1, "panel1");
|
||||
this.panel1.Name = "panel1";
|
||||
//
|
||||
// chkInterlaceColoring
|
||||
//
|
||||
resources.ApplyResources(this.chkInterlaceColoring, "chkInterlaceColoring");
|
||||
this.chkInterlaceColoring.Name = "chkInterlaceColoring";
|
||||
this.chkInterlaceColoring.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// OptionSettingForm
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
|
@ -725,5 +733,6 @@
|
|||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.CheckBox chkKeepOlderDedupl;
|
||||
private System.Windows.Forms.LinkLabel linkLabelRoutingDoc;
|
||||
private System.Windows.Forms.CheckBox chkInterlaceColoring;
|
||||
}
|
||||
}
|
|
@ -127,9 +127,7 @@ namespace v2rayN.Forms
|
|||
chkAllowLANConn.Checked = config.allowLANConn;
|
||||
chkEnableStatistics.Checked = config.enableStatistics;
|
||||
chkKeepOlderDedupl.Checked = config.keepOlderDedupl;
|
||||
|
||||
|
||||
|
||||
chkInterlaceColoring.Checked = config.interlaceColoring;
|
||||
|
||||
ComboItem[] cbSource = new ComboItem[]
|
||||
{
|
||||
|
@ -358,6 +356,7 @@ namespace v2rayN.Forms
|
|||
config.enableStatistics = chkEnableStatistics.Checked;
|
||||
config.statisticsFreshRate = (int)cbFreshrate.SelectedValue;
|
||||
config.keepOlderDedupl = chkKeepOlderDedupl.Checked;
|
||||
config.interlaceColoring = chkInterlaceColoring.Checked;
|
||||
|
||||
//if(lastEnableStatistics != config.enableStatistics)
|
||||
//{
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -164,6 +164,9 @@
|
|||
<data name="chkEnableStatistics.Text" xml:space="preserve">
|
||||
<value>启用统计(实时网速显示和使用流量显示,需要重启v2rayN客户端)</value>
|
||||
</data>
|
||||
<data name="chkInterlaceColoring.Text" xml:space="preserve">
|
||||
<value>隔行着色</value>
|
||||
</data>
|
||||
<data name="chkKeepOlderDedupl.Text" xml:space="preserve">
|
||||
<value>去重时保留序号较小的项</value>
|
||||
</data>
|
||||
|
|
|
@ -162,6 +162,14 @@ namespace v2rayN.Mode
|
|||
get; set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 服务器列表隔行着色
|
||||
/// </summary>
|
||||
public bool interlaceColoring
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 视图刷新率
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue