reInterlaceColoring

pull/695/head
YFdyh000 2020-04-18 20:08:33 +08:00
parent 05efff10da
commit 57bcf8a1a7
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}
}
}
}