Add lime-green color to various states after downloading

This commit is contained in:
Chax
2023-06-22 13:48:30 +02:00
parent c24829f6a4
commit d1e92391d4

View File

@@ -537,6 +537,15 @@ namespace AndroidSideloader
{
if (!ProgressText.IsDisposed)
{
var states = new[] { "Sideloading", "Installing", "Copying", "Comparing", "Deleting" };
if (ProgressText.ForeColor == Color.LimeGreen)
{
ProgressText.ForeColor = Color.White;
}
if (states.Any(txt.Contains))
{
ProgressText.ForeColor = Color.LimeGreen;
}
ProgressText.Text = txt;
}
});