UI Tweaks

This commit is contained in:
Serge
2024-01-02 17:19:01 +01:00
parent 5de44067bc
commit ad5b3e33c4

View File

@@ -470,9 +470,12 @@ namespace GHelper
public void SetVersionLabel(string label, bool update = false)
{
Invoke(delegate
{
labelVersion.Text = label;
if (update) labelVersion.ForeColor = colorTurbo;
});
}
@@ -655,13 +658,19 @@ namespace GHelper
}
public void FansInit()
{
Invoke(delegate
{
if (fansForm != null && fansForm.Text != "") fansForm.InitAll();
});
}
public void GPUInit()
{
Invoke(delegate
{
if (fansForm != null && fansForm.Text != "") fansForm.InitGPU();
});
}
public void FansToggle(int index = 0)
@@ -754,10 +763,13 @@ namespace GHelper
}
public void VisualiseAura()
{
Invoke(delegate
{
pictureColor.BackColor = Aura.Color1;
pictureColor2.BackColor = Aura.Color2;
pictureColor2.Visible = Aura.HasSecondColor();
});
}
public void InitMatrix()
@@ -1015,6 +1027,8 @@ namespace GHelper
}
public void ShowMode(int mode)
{
Invoke(delegate
{
buttonSilent.Activated = false;
buttonBalanced.Activated = false;
@@ -1049,6 +1063,7 @@ namespace GHelper
};
break;
}
});
}