From b538a919ae34e48d7db4dfd2b62ccb8be15e4fd0 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:13:18 +0200 Subject: [PATCH] UI Tweaks --- app/Input/InputDispatcher.cs | 8 +++----- app/Settings.Designer.cs | 10 +++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index a61b6ba2..b9e407d9 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -145,7 +145,7 @@ namespace GHelper.Input { Logger.WriteLine(e.Key.ToString()); - if (AppConfig.ContainsModel("Z13")) + if (AppConfig.ContainsModel("Z13") || AppConfig.ContainsModel("FA506")) { switch (e.Key) { @@ -202,13 +202,11 @@ namespace GHelper.Input KeyboardHook.KeyPress(Keys.Snapshot); break; case Keys.F7: - if (AppConfig.ContainsModel("TUF")) - Program.toast.RunToast(ScreenBrightness.Adjust(-10) + "%", ToastIcon.BrightnessDown); + //if (AppConfig.ContainsModel("TUF")) Program.toast.RunToast(ScreenBrightness.Adjust(-10) + "%", ToastIcon.BrightnessDown); HandleOptimizationEvent(16); break; case Keys.F8: - if (AppConfig.ContainsModel("TUF")) - Program.toast.RunToast(ScreenBrightness.Adjust(+10) + "%", ToastIcon.BrightnessUp); + // if (AppConfig.ContainsModel("TUF")) Program.toast.RunToast(ScreenBrightness.Adjust(+10) + "%", ToastIcon.BrightnessUp); HandleOptimizationEvent(32); break; case Keys.F9: diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index 4deef1b6..3ac0cd30 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -299,10 +299,10 @@ namespace GHelper // labelBattery // labelBattery.Anchor = AnchorStyles.Top | AnchorStyles.Right; - labelBattery.Location = new Point(392, 0); + labelBattery.Location = new Point(432, 0); labelBattery.Margin = new Padding(8, 0, 8, 0); labelBattery.Name = "labelBattery"; - labelBattery.Size = new Size(364, 36); + labelBattery.Size = new Size(324, 36); labelBattery.TabIndex = 39; labelBattery.Text = " "; labelBattery.TextAlign = ContentAlignment.TopRight; @@ -324,7 +324,7 @@ namespace GHelper labelBatteryTitle.Location = new Point(42, 0); labelBatteryTitle.Margin = new Padding(8, 0, 8, 0); labelBatteryTitle.Name = "labelBatteryTitle"; - labelBatteryTitle.Size = new Size(393, 32); + labelBatteryTitle.Size = new Size(466, 32); labelBatteryTitle.TabIndex = 37; labelBatteryTitle.Text = "Battery Charge Limit"; // @@ -928,10 +928,10 @@ namespace GHelper // labelMidFan // labelMidFan.Anchor = AnchorStyles.Top | AnchorStyles.Right; - labelMidFan.Location = new Point(474, -2); + labelMidFan.Location = new Point(516, -2); labelMidFan.Margin = new Padding(8, 0, 8, 0); labelMidFan.Name = "labelMidFan"; - labelMidFan.Size = new Size(296, 34); + labelMidFan.Size = new Size(254, 34); labelMidFan.TabIndex = 28; labelMidFan.Text = " "; labelMidFan.TextAlign = ContentAlignment.TopRight;