UI tweaks

This commit is contained in:
Serge
2023-05-16 15:19:53 +02:00
parent 4dd7d41cf4
commit bdbec79aba
7 changed files with 10 additions and 8 deletions

View File

@@ -177,7 +177,7 @@ namespace GHelper
checkUSBC.Checked = (Program.config.getConfig("optimized_usbc") == 1);
checkUSBC.CheckedChanged += CheckUSBC_CheckedChanged;
checkAutoApplyWindowsPowerMode.Checked = Program.config.getConfig("auto_apply_power_plan") == 1;
checkAutoApplyWindowsPowerMode.Checked = (Program.config.getConfig("auto_apply_power_plan") != 0);
checkAutoApplyWindowsPowerMode.CheckedChanged += checkAutoApplyWindowsPowerMode_CheckedChanged;
int kb_brightness = Program.config.getConfig("keyboard_brightness");

View File

@@ -266,6 +266,8 @@ namespace GHelper
private void Fans_Shown(object? sender, EventArgs e)
{
panelSliders.Visible = panelGPU.Visible || panelPower.Visible;
if (Height > Program.settingsForm.Height)
{
Top = Program.settingsForm.Top + Program.settingsForm.Height - Height;
@@ -277,8 +279,8 @@ namespace GHelper
Top = Program.settingsForm.Top;
}
Left = Program.settingsForm.Left - Width - 5;
}

View File

@@ -169,7 +169,7 @@ namespace GHelper.Properties {
}
/// <summary>
/// Looks up a localized string similar to Auto Adjust Windows Power Plan.
/// Looks up a localized string similar to Auto adjust Windows Power Mode.
/// </summary>
internal static string ApplyWindowsPowerPlan {
get {
@@ -178,7 +178,7 @@ namespace GHelper.Properties {
}
/// <summary>
/// Looks up a localized string similar to Breathe.
/// Looks up a localized string similar to Breathe.
/// </summary>
internal static string AuraBreathe {
get {

View File

@@ -154,7 +154,7 @@
<value>Apply Power Limits</value>
</data>
<data name="ApplyWindowsPowerPlan" xml:space="preserve">
<value>Auto Adjust Windows Power Plan</value>
<value>Auto adjust Windows Power Mode</value>
</data>
<data name="AuraBreathe" xml:space="preserve">
<value>Breathe</value>

View File

@@ -154,7 +154,7 @@
<value>Güç Sınırlarını Uygula</value>
</data>
<data name="ApplyWindowsPowerPlan" xml:space="preserve">
<value>Auto Adjust Windows Power Mode</value>
<value>Auto adjust Windows Power Mode</value>
</data>
<data name="AuraBreathe" xml:space="preserve">
<value>Nefes</value>

View File

@@ -154,7 +154,7 @@
<value>Застосувати потужність</value>
</data>
<data name="ApplyWindowsPowerPlan" xml:space="preserve">
<value>Auto Adjust Windows Power Mode</value>
<value>Автоматично застосовувати Windows Power Mode</value>
</data>
<data name="AuraBreathe" xml:space="preserve">
<value>Дихання</value>

View File

@@ -359,7 +359,7 @@ namespace GHelper
cmd.StartInfo.UseShellExecute = false;
cmd.StartInfo.CreateNoWindow = true;
cmd.StartInfo.FileName = "powershell";
cmd.StartInfo.Arguments = $"Start-Sleep -Seconds 1; Expand-Archive {zipLocation} -DestinationPath {exeDir} -Force; {exeLocation}";
cmd.StartInfo.Arguments = $"Start-Sleep -Seconds 1; Expand-Archive {zipLocation} -DestinationPath {exeDir} -Force; Remove-Item {zipLocation} -Force; {exeLocation}";
cmd.Start();
Debug.WriteLine(requestUri);