Colors for custom modes

This commit is contained in:
Serge
2023-06-11 17:09:17 +02:00
parent 0dae1c9115
commit d2e0e6f51e
4 changed files with 25 additions and 9 deletions

View File

@@ -312,6 +312,7 @@ namespace GHelper
KeyboardHook.KeyPress(Keys.Snapshot);
break;
case "screen":
Logger.WriteLine("Screen off toggle");
NativeMethods.TurnOffScreen(Program.settingsForm.Handle);
break;
case "miniled":
@@ -423,6 +424,9 @@ namespace GHelper
case 199: // ON Z13 - FN+F11 - cycles backlight
SetBacklight(4);
break;
case 53: // FN+F6 on GA-502DU model
KeyProcess("screen");
return;
}
if (OptimizationService.IsRunning()) return;

View File

@@ -943,7 +943,7 @@ namespace GHelper.Properties {
}
/// <summary>
/// Looks up a localized string similar to Power Limits (PPT).
/// Looks up a localized string similar to Power Limits.
/// </summary>
internal static string PowerLimits {
get {
@@ -952,7 +952,7 @@ namespace GHelper.Properties {
}
/// <summary>
/// Looks up a localized string similar to Power Limits (PPT) is experimental feature. Use carefully and on your own risk!.
/// Looks up a localized string similar to Power Limits is experimental feature. Use carefully and on your own risk!.
/// </summary>
internal static string PPTExperimental {
get {

View File

@@ -412,10 +412,10 @@
<value>Play / Pause</value>
</data>
<data name="PowerLimits" xml:space="preserve">
<value>Power Limits (PPT)</value>
<value>Power Limits</value>
</data>
<data name="PPTExperimental" xml:space="preserve">
<value>Power Limits (PPT) is experimental feature. Use carefully and on your own risk!</value>
<value>Power Limits is experimental feature. Use carefully and on your own risk!</value>
</data>
<data name="PrintScreen" xml:space="preserve">
<value>PrintScreen</value>

View File

@@ -1282,16 +1282,28 @@ namespace GHelper
menuBalanced.Checked = true;
break;
default:
if (!Modes.Exists(mode))
if (Modes.Exists(mode))
{
buttonFans.Activated = true;
switch (Modes.GetBase(mode))
{
case AsusACPI.PerformanceSilent:
buttonFans.BorderColor = colorEco;
break;
case AsusACPI.PerformanceTurbo:
buttonFans.BorderColor = colorTurbo;
break;
default:
buttonFans.BorderColor = colorStandard;
break;
}
}
else
{
buttonBalanced.Activated = true;
menuBalanced.Checked = true;
mode = AsusACPI.PerformanceBalanced;
}
else
{
buttonFans.Activated = true;
}
break;
}