mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
UI Tweaks
This commit is contained in:
@@ -471,11 +471,17 @@ namespace GHelper
|
|||||||
|
|
||||||
public void SetVersionLabel(string label, bool update = false)
|
public void SetVersionLabel(string label, bool update = false)
|
||||||
{
|
{
|
||||||
|
if (InvokeRequired)
|
||||||
Invoke(delegate
|
Invoke(delegate
|
||||||
{
|
{
|
||||||
labelVersion.Text = label;
|
labelVersion.Text = label;
|
||||||
if (update) labelVersion.ForeColor = colorTurbo;
|
if (update) labelVersion.ForeColor = colorTurbo;
|
||||||
});
|
});
|
||||||
|
else
|
||||||
|
{
|
||||||
|
labelVersion.Text = label;
|
||||||
|
if (update) labelVersion.ForeColor = colorTurbo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -659,18 +665,14 @@ namespace GHelper
|
|||||||
|
|
||||||
public void FansInit()
|
public void FansInit()
|
||||||
{
|
{
|
||||||
Invoke(delegate
|
if (fansForm == null || fansForm.Text == "") return;
|
||||||
{
|
Invoke(fansForm.InitAll);
|
||||||
if (fansForm != null && fansForm.Text != "") fansForm.InitAll();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void GPUInit()
|
public void GPUInit()
|
||||||
{
|
{
|
||||||
Invoke(delegate
|
if (fansForm == null || fansForm.Text == "") return;
|
||||||
{
|
Invoke(fansForm.InitGPU);
|
||||||
if (fansForm != null && fansForm.Text != "") fansForm.InitGPU();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FansToggle(int index = 0)
|
public void FansToggle(int index = 0)
|
||||||
@@ -764,12 +766,19 @@ namespace GHelper
|
|||||||
|
|
||||||
public void VisualiseAura()
|
public void VisualiseAura()
|
||||||
{
|
{
|
||||||
|
if (InvokeRequired)
|
||||||
Invoke(delegate
|
Invoke(delegate
|
||||||
{
|
{
|
||||||
pictureColor.BackColor = Aura.Color1;
|
pictureColor.BackColor = Aura.Color1;
|
||||||
pictureColor2.BackColor = Aura.Color2;
|
pictureColor2.BackColor = Aura.Color2;
|
||||||
pictureColor2.Visible = Aura.HasSecondColor();
|
pictureColor2.Visible = Aura.HasSecondColor();
|
||||||
});
|
});
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pictureColor.BackColor = Aura.Color1;
|
||||||
|
pictureColor2.BackColor = Aura.Color2;
|
||||||
|
pictureColor2.Visible = Aura.HasSecondColor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InitMatrix()
|
public void InitMatrix()
|
||||||
@@ -1028,7 +1037,16 @@ namespace GHelper
|
|||||||
|
|
||||||
public void ShowMode(int mode)
|
public void ShowMode(int mode)
|
||||||
{
|
{
|
||||||
|
if (InvokeRequired)
|
||||||
Invoke(delegate
|
Invoke(delegate
|
||||||
|
{
|
||||||
|
VisualiseMode(mode);
|
||||||
|
});
|
||||||
|
else
|
||||||
|
VisualiseMode(mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void VisualiseMode(int mode)
|
||||||
{
|
{
|
||||||
buttonSilent.Activated = false;
|
buttonSilent.Activated = false;
|
||||||
buttonBalanced.Activated = false;
|
buttonBalanced.Activated = false;
|
||||||
@@ -1063,7 +1081,6 @@ namespace GHelper
|
|||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user