mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-02 04:52:09 +00:00
reInterlaceColoring
This commit is contained in:
parent
05efff10da
commit
57bcf8a1a7
1 changed files with 12 additions and 0 deletions
|
@ -1663,6 +1663,18 @@ namespace v2rayN.Forms
|
|||
s.Sorting = doIntSort;
|
||||
|
||||
lvServers.Sort();
|
||||
reInterlaceColoring();
|
||||
}
|
||||
private void reInterlaceColoring()
|
||||
{
|
||||
if (!config.interlaceColoring) return;
|
||||
for (int k = 0; k < lvServers.Items.Count; k++)
|
||||
{
|
||||
if (config.interlaceColoring && k % 2 == 1)
|
||||
lvServers.Items[k].BackColor = SystemColors.Control;
|
||||
else
|
||||
lvServers.Items[k].BackColor = lvServers.BackColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue