UI tweaks

This commit is contained in:
Serge
2023-06-03 22:17:46 +02:00
parent eb522214f0
commit 92fa210898
11 changed files with 306 additions and 166 deletions

View File

@@ -124,7 +124,7 @@ namespace GHelper
_modes.Remove(3); _modes.Remove(3);
} }
if (AppConfig.ContainsModel("G513")) { if (AppConfig.ContainsModel("G513QY")) {
return _modes; return _modes;
} }

322
app/Extra.Designer.cs generated
View File

@@ -107,13 +107,15 @@ namespace GHelper
// //
// groupBindings // groupBindings
// //
groupBindings.AutoSizeMode = AutoSizeMode.GrowAndShrink; groupBindings.AutoSize = true;
groupBindings.Controls.Add(tableKeys); groupBindings.Controls.Add(tableKeys);
groupBindings.Controls.Add(pictureHelp); groupBindings.Controls.Add(pictureHelp);
groupBindings.Dock = DockStyle.Top; groupBindings.Dock = DockStyle.Top;
groupBindings.Location = new Point(10, 10); groupBindings.Location = new Point(9, 11);
groupBindings.Margin = new Padding(4, 2, 4, 2);
groupBindings.Name = "groupBindings"; groupBindings.Name = "groupBindings";
groupBindings.Size = new Size(954, 360); groupBindings.Padding = new Padding(4, 2, 4, 2);
groupBindings.Size = new Size(966, 381);
groupBindings.TabIndex = 0; groupBindings.TabIndex = 0;
groupBindings.TabStop = false; groupBindings.TabStop = false;
groupBindings.Text = "Key Bindings"; groupBindings.Text = "Key Bindings";
@@ -143,22 +145,24 @@ namespace GHelper
tableKeys.Controls.Add(comboFNC, 1, 5); tableKeys.Controls.Add(comboFNC, 1, 5);
tableKeys.Controls.Add(textFNC, 2, 5); tableKeys.Controls.Add(textFNC, 2, 5);
tableKeys.Location = new Point(13, 38); tableKeys.Location = new Point(13, 38);
tableKeys.Margin = new Padding(4, 2, 40, 2);
tableKeys.Name = "tableKeys"; tableKeys.Name = "tableKeys";
tableKeys.Padding = new Padding(10); tableKeys.Padding = new Padding(9, 11, 9, 11);
tableKeys.RowCount = 6; tableKeys.RowCount = 6;
tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 50F)); tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 49F));
tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 50F)); tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 49F));
tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 50F)); tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 49F));
tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 50F)); tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 49F));
tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 48F)); tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 47F));
tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 22F)); tableKeys.RowStyles.Add(new RowStyle(SizeType.Absolute, 21F));
tableKeys.Size = new Size(900, 308); tableKeys.Size = new Size(901, 307);
tableKeys.TabIndex = 10; tableKeys.TabIndex = 10;
// //
// labelFNC // labelFNC
// //
labelFNC.AutoSize = true; labelFNC.AutoSize = true;
labelFNC.Location = new Point(13, 258); labelFNC.Location = new Point(13, 254);
labelFNC.Margin = new Padding(4, 0, 4, 0);
labelFNC.Name = "labelFNC"; labelFNC.Name = "labelFNC";
labelFNC.Size = new Size(80, 32); labelFNC.Size = new Size(80, 32);
labelFNC.TabIndex = 15; labelFNC.TabIndex = 15;
@@ -166,18 +170,20 @@ namespace GHelper
// //
// textM2 // textM2
// //
textM2.Location = new Point(541, 63); textM2.Location = new Point(542, 62);
textM2.Margin = new Padding(4, 2, 4, 2);
textM2.Name = "textM2"; textM2.Name = "textM2";
textM2.PlaceholderText = "action"; textM2.PlaceholderText = "action";
textM2.Size = new Size(346, 39); textM2.Size = new Size(342, 39);
textM2.TabIndex = 14; textM2.TabIndex = 14;
// //
// textM1 // textM1
// //
textM1.Location = new Point(541, 13); textM1.Location = new Point(542, 13);
textM1.Margin = new Padding(4, 2, 4, 2);
textM1.Name = "textM1"; textM1.Name = "textM1";
textM1.PlaceholderText = "action"; textM1.PlaceholderText = "action";
textM1.Size = new Size(346, 39); textM1.Size = new Size(342, 39);
textM1.TabIndex = 13; textM1.TabIndex = 13;
// //
// comboM1 // comboM1
@@ -187,6 +193,7 @@ namespace GHelper
comboM1.FormattingEnabled = true; comboM1.FormattingEnabled = true;
comboM1.Items.AddRange(new object[] { Strings.Default, Strings.VolumeMute, Strings.PlayPause, Strings.PrintScreen, Strings.ToggleAura, Strings.Custom }); comboM1.Items.AddRange(new object[] { Strings.Default, Strings.VolumeMute, Strings.PlayPause, Strings.PrintScreen, Strings.ToggleAura, Strings.Custom });
comboM1.Location = new Point(189, 13); comboM1.Location = new Point(189, 13);
comboM1.Margin = new Padding(4, 2, 4, 2);
comboM1.Name = "comboM1"; comboM1.Name = "comboM1";
comboM1.Size = new Size(312, 40); comboM1.Size = new Size(312, 40);
comboM1.TabIndex = 11; comboM1.TabIndex = 11;
@@ -194,7 +201,8 @@ namespace GHelper
// labelM1 // labelM1
// //
labelM1.AutoSize = true; labelM1.AutoSize = true;
labelM1.Location = new Point(13, 10); labelM1.Location = new Point(13, 11);
labelM1.Margin = new Padding(4, 0, 4, 0);
labelM1.Name = "labelM1"; labelM1.Name = "labelM1";
labelM1.Size = new Size(54, 32); labelM1.Size = new Size(54, 32);
labelM1.TabIndex = 9; labelM1.TabIndex = 9;
@@ -206,7 +214,8 @@ namespace GHelper
comboM4.ButtonColor = Color.FromArgb(255, 255, 255); comboM4.ButtonColor = Color.FromArgb(255, 255, 255);
comboM4.FormattingEnabled = true; comboM4.FormattingEnabled = true;
comboM4.Items.AddRange(new object[] { Strings.PerformanceMode, Strings.OpenGHelper, Strings.Custom }); comboM4.Items.AddRange(new object[] { Strings.PerformanceMode, Strings.OpenGHelper, Strings.Custom });
comboM4.Location = new Point(189, 163); comboM4.Location = new Point(189, 160);
comboM4.Margin = new Padding(4, 2, 4, 2);
comboM4.Name = "comboM4"; comboM4.Name = "comboM4";
comboM4.Size = new Size(312, 40); comboM4.Size = new Size(312, 40);
comboM4.TabIndex = 3; comboM4.TabIndex = 3;
@@ -217,31 +226,35 @@ namespace GHelper
comboM3.ButtonColor = Color.FromArgb(255, 255, 255); comboM3.ButtonColor = Color.FromArgb(255, 255, 255);
comboM3.FormattingEnabled = true; comboM3.FormattingEnabled = true;
comboM3.Items.AddRange(new object[] { Strings.Default, Strings.VolumeMute, Strings.PlayPause, Strings.PrintScreen, Strings.ToggleAura, Strings.Custom }); comboM3.Items.AddRange(new object[] { Strings.Default, Strings.VolumeMute, Strings.PlayPause, Strings.PrintScreen, Strings.ToggleAura, Strings.Custom });
comboM3.Location = new Point(189, 113); comboM3.Location = new Point(189, 111);
comboM3.Margin = new Padding(4, 2, 4, 2);
comboM3.Name = "comboM3"; comboM3.Name = "comboM3";
comboM3.Size = new Size(312, 40); comboM3.Size = new Size(312, 40);
comboM3.TabIndex = 1; comboM3.TabIndex = 1;
// //
// textM4 // textM4
// //
textM4.Location = new Point(541, 163); textM4.Location = new Point(542, 160);
textM4.Margin = new Padding(4, 2, 4, 2);
textM4.Name = "textM4"; textM4.Name = "textM4";
textM4.PlaceholderText = "action"; textM4.PlaceholderText = "action";
textM4.Size = new Size(346, 39); textM4.Size = new Size(342, 39);
textM4.TabIndex = 5; textM4.TabIndex = 5;
// //
// textM3 // textM3
// //
textM3.Location = new Point(541, 113); textM3.Location = new Point(542, 111);
textM3.Margin = new Padding(4, 2, 4, 2);
textM3.Name = "textM3"; textM3.Name = "textM3";
textM3.PlaceholderText = "action"; textM3.PlaceholderText = "action";
textM3.Size = new Size(346, 39); textM3.Size = new Size(342, 39);
textM3.TabIndex = 4; textM3.TabIndex = 4;
// //
// labelM4 // labelM4
// //
labelM4.AutoSize = true; labelM4.AutoSize = true;
labelM4.Location = new Point(13, 160); labelM4.Location = new Point(13, 158);
labelM4.Margin = new Padding(4, 0, 4, 0);
labelM4.Name = "labelM4"; labelM4.Name = "labelM4";
labelM4.Size = new Size(54, 32); labelM4.Size = new Size(54, 32);
labelM4.TabIndex = 2; labelM4.TabIndex = 2;
@@ -250,7 +263,8 @@ namespace GHelper
// labelM3 // labelM3
// //
labelM3.AutoSize = true; labelM3.AutoSize = true;
labelM3.Location = new Point(13, 110); labelM3.Location = new Point(13, 109);
labelM3.Margin = new Padding(4, 0, 4, 0);
labelM3.Name = "labelM3"; labelM3.Name = "labelM3";
labelM3.Size = new Size(54, 32); labelM3.Size = new Size(54, 32);
labelM3.TabIndex = 0; labelM3.TabIndex = 0;
@@ -260,6 +274,7 @@ namespace GHelper
// //
labelM2.AutoSize = true; labelM2.AutoSize = true;
labelM2.Location = new Point(13, 60); labelM2.Location = new Point(13, 60);
labelM2.Margin = new Padding(4, 0, 4, 0);
labelM2.Name = "labelM2"; labelM2.Name = "labelM2";
labelM2.Size = new Size(54, 32); labelM2.Size = new Size(54, 32);
labelM2.TabIndex = 10; labelM2.TabIndex = 10;
@@ -271,7 +286,8 @@ namespace GHelper
comboM2.ButtonColor = Color.FromArgb(255, 255, 255); comboM2.ButtonColor = Color.FromArgb(255, 255, 255);
comboM2.FormattingEnabled = true; comboM2.FormattingEnabled = true;
comboM2.Items.AddRange(new object[] { Strings.Default, Strings.VolumeMute, Strings.PlayPause, Strings.PrintScreen, Strings.ToggleAura, Strings.Custom }); comboM2.Items.AddRange(new object[] { Strings.Default, Strings.VolumeMute, Strings.PlayPause, Strings.PrintScreen, Strings.ToggleAura, Strings.Custom });
comboM2.Location = new Point(189, 63); comboM2.Location = new Point(189, 62);
comboM2.Margin = new Padding(4, 2, 4, 2);
comboM2.Name = "comboM2"; comboM2.Name = "comboM2";
comboM2.Size = new Size(312, 40); comboM2.Size = new Size(312, 40);
comboM2.TabIndex = 12; comboM2.TabIndex = 12;
@@ -279,7 +295,8 @@ namespace GHelper
// labelFNF4 // labelFNF4
// //
labelFNF4.AutoSize = true; labelFNF4.AutoSize = true;
labelFNF4.Location = new Point(13, 210); labelFNF4.Location = new Point(13, 207);
labelFNF4.Margin = new Padding(4, 0, 4, 0);
labelFNF4.Name = "labelFNF4"; labelFNF4.Name = "labelFNF4";
labelFNF4.Size = new Size(90, 32); labelFNF4.Size = new Size(90, 32);
labelFNF4.TabIndex = 6; labelFNF4.TabIndex = 6;
@@ -290,17 +307,19 @@ namespace GHelper
comboFNF4.BorderColor = Color.White; comboFNF4.BorderColor = Color.White;
comboFNF4.ButtonColor = Color.FromArgb(255, 255, 255); comboFNF4.ButtonColor = Color.FromArgb(255, 255, 255);
comboFNF4.FormattingEnabled = true; comboFNF4.FormattingEnabled = true;
comboFNF4.Location = new Point(189, 213); comboFNF4.Location = new Point(189, 209);
comboFNF4.Margin = new Padding(4, 2, 4, 2);
comboFNF4.Name = "comboFNF4"; comboFNF4.Name = "comboFNF4";
comboFNF4.Size = new Size(312, 40); comboFNF4.Size = new Size(312, 40);
comboFNF4.TabIndex = 7; comboFNF4.TabIndex = 7;
// //
// textFNF4 // textFNF4
// //
textFNF4.Location = new Point(541, 213); textFNF4.Location = new Point(542, 209);
textFNF4.Margin = new Padding(4, 2, 4, 2);
textFNF4.Name = "textFNF4"; textFNF4.Name = "textFNF4";
textFNF4.PlaceholderText = "action"; textFNF4.PlaceholderText = "action";
textFNF4.Size = new Size(346, 39); textFNF4.Size = new Size(342, 39);
textFNF4.TabIndex = 8; textFNF4.TabIndex = 8;
// //
// comboFNC // comboFNC
@@ -308,17 +327,19 @@ namespace GHelper
comboFNC.BorderColor = Color.White; comboFNC.BorderColor = Color.White;
comboFNC.ButtonColor = Color.FromArgb(255, 255, 255); comboFNC.ButtonColor = Color.FromArgb(255, 255, 255);
comboFNC.FormattingEnabled = true; comboFNC.FormattingEnabled = true;
comboFNC.Location = new Point(189, 261); comboFNC.Location = new Point(189, 256);
comboFNC.Margin = new Padding(4, 2, 4, 2);
comboFNC.Name = "comboFNC"; comboFNC.Name = "comboFNC";
comboFNC.Size = new Size(312, 40); comboFNC.Size = new Size(312, 40);
comboFNC.TabIndex = 16; comboFNC.TabIndex = 16;
// //
// textFNC // textFNC
// //
textFNC.Location = new Point(541, 261); textFNC.Location = new Point(542, 256);
textFNC.Margin = new Padding(4, 2, 4, 2);
textFNC.Name = "textFNC"; textFNC.Name = "textFNC";
textFNC.PlaceholderText = "action"; textFNC.PlaceholderText = "action";
textFNC.Size = new Size(346, 39); textFNC.Size = new Size(342, 39);
textFNC.TabIndex = 17; textFNC.TabIndex = 17;
// //
// pictureHelp // pictureHelp
@@ -326,7 +347,8 @@ namespace GHelper
pictureHelp.BackgroundImage = Resources.icons8_help_64; pictureHelp.BackgroundImage = Resources.icons8_help_64;
pictureHelp.BackgroundImageLayout = ImageLayout.Zoom; pictureHelp.BackgroundImageLayout = ImageLayout.Zoom;
pictureHelp.Cursor = Cursors.Hand; pictureHelp.Cursor = Cursors.Hand;
pictureHelp.Location = new Point(912, 51); pictureHelp.Location = new Point(915, 55);
pictureHelp.Margin = new Padding(4, 2, 4, 2);
pictureHelp.Name = "pictureHelp"; pictureHelp.Name = "pictureHelp";
pictureHelp.Size = new Size(32, 32); pictureHelp.Size = new Size(32, 32);
pictureHelp.TabIndex = 9; pictureHelp.TabIndex = 9;
@@ -335,19 +357,24 @@ namespace GHelper
// groupLight // groupLight
// //
groupLight.AutoSize = true; groupLight.AutoSize = true;
groupLight.AutoSizeMode = AutoSizeMode.GrowAndShrink;
groupLight.Controls.Add(panelBacklightExtra); groupLight.Controls.Add(panelBacklightExtra);
groupLight.Controls.Add(panelXMG); groupLight.Controls.Add(panelXMG);
groupLight.Controls.Add(tableBacklight); groupLight.Controls.Add(tableBacklight);
groupLight.Dock = DockStyle.Top; groupLight.Dock = DockStyle.Top;
groupLight.Location = new Point(10, 370); groupLight.Location = new Point(9, 392);
groupLight.Margin = new Padding(4, 2, 4, 2);
groupLight.Name = "groupLight"; groupLight.Name = "groupLight";
groupLight.Size = new Size(954, 563); groupLight.Padding = new Padding(4, 2, 4, 11);
groupLight.Size = new Size(966, 554);
groupLight.TabIndex = 1; groupLight.TabIndex = 1;
groupLight.TabStop = false; groupLight.TabStop = false;
groupLight.Text = "Keyboard Backlight"; groupLight.Text = "Keyboard Backlight";
// //
// panelBacklightExtra // panelBacklightExtra
// //
panelBacklightExtra.AutoSize = true;
panelBacklightExtra.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panelBacklightExtra.Controls.Add(numericBacklightPluggedTime); panelBacklightExtra.Controls.Add(numericBacklightPluggedTime);
panelBacklightExtra.Controls.Add(labelBacklightTimeoutPlugged); panelBacklightExtra.Controls.Add(labelBacklightTimeoutPlugged);
panelBacklightExtra.Controls.Add(numericBacklightTime); panelBacklightExtra.Controls.Add(numericBacklightTime);
@@ -357,46 +384,52 @@ namespace GHelper
panelBacklightExtra.Controls.Add(labelSpeed); panelBacklightExtra.Controls.Add(labelSpeed);
panelBacklightExtra.Controls.Add(comboKeyboardSpeed); panelBacklightExtra.Controls.Add(comboKeyboardSpeed);
panelBacklightExtra.Dock = DockStyle.Top; panelBacklightExtra.Dock = DockStyle.Top;
panelBacklightExtra.Location = new Point(3, 319); panelBacklightExtra.Location = new Point(4, 315);
panelBacklightExtra.Margin = new Padding(4, 2, 4, 2);
panelBacklightExtra.Name = "panelBacklightExtra"; panelBacklightExtra.Name = "panelBacklightExtra";
panelBacklightExtra.Size = new Size(948, 241); panelBacklightExtra.Size = new Size(958, 228);
panelBacklightExtra.TabIndex = 43; panelBacklightExtra.TabIndex = 43;
// //
// numericBacklightPluggedTime // numericBacklightPluggedTime
// //
numericBacklightPluggedTime.Location = new Point(655, 181); numericBacklightPluggedTime.Location = new Point(702, 181);
numericBacklightPluggedTime.Margin = new Padding(4, 2, 4, 2);
numericBacklightPluggedTime.Maximum = new decimal(new int[] { 3600, 0, 0, 0 }); numericBacklightPluggedTime.Maximum = new decimal(new int[] { 3600, 0, 0, 0 });
numericBacklightPluggedTime.Name = "numericBacklightPluggedTime"; numericBacklightPluggedTime.Name = "numericBacklightPluggedTime";
numericBacklightPluggedTime.Size = new Size(240, 39); numericBacklightPluggedTime.Size = new Size(193, 39);
numericBacklightPluggedTime.TabIndex = 49; numericBacklightPluggedTime.TabIndex = 49;
// //
// labelBacklightTimeoutPlugged // labelBacklightTimeoutPlugged
// //
labelBacklightTimeoutPlugged.Location = new Point(13, 183); labelBacklightTimeoutPlugged.Location = new Point(13, 183);
labelBacklightTimeoutPlugged.Margin = new Padding(4, 0, 4, 0);
labelBacklightTimeoutPlugged.Name = "labelBacklightTimeoutPlugged"; labelBacklightTimeoutPlugged.Name = "labelBacklightTimeoutPlugged";
labelBacklightTimeoutPlugged.Size = new Size(636, 45); labelBacklightTimeoutPlugged.Size = new Size(683, 45);
labelBacklightTimeoutPlugged.TabIndex = 48; labelBacklightTimeoutPlugged.TabIndex = 48;
labelBacklightTimeoutPlugged.Text = "Seconds to turn off backlight when plugged"; labelBacklightTimeoutPlugged.Text = "Seconds to turn off backlight when plugged";
// //
// numericBacklightTime // numericBacklightTime
// //
numericBacklightTime.Location = new Point(655, 133); numericBacklightTime.Location = new Point(702, 132);
numericBacklightTime.Margin = new Padding(4, 2, 4, 2);
numericBacklightTime.Maximum = new decimal(new int[] { 3600, 0, 0, 0 }); numericBacklightTime.Maximum = new decimal(new int[] { 3600, 0, 0, 0 });
numericBacklightTime.Name = "numericBacklightTime"; numericBacklightTime.Name = "numericBacklightTime";
numericBacklightTime.Size = new Size(240, 39); numericBacklightTime.Size = new Size(193, 39);
numericBacklightTime.TabIndex = 47; numericBacklightTime.TabIndex = 47;
// //
// labelBacklightTimeout // labelBacklightTimeout
// //
labelBacklightTimeout.Location = new Point(13, 135); labelBacklightTimeout.Location = new Point(13, 134);
labelBacklightTimeout.Margin = new Padding(4, 0, 4, 0);
labelBacklightTimeout.Name = "labelBacklightTimeout"; labelBacklightTimeout.Name = "labelBacklightTimeout";
labelBacklightTimeout.Size = new Size(636, 45); labelBacklightTimeout.Size = new Size(683, 45);
labelBacklightTimeout.TabIndex = 46; labelBacklightTimeout.TabIndex = 46;
labelBacklightTimeout.Text = "Seconds to turn off backlight on battery"; labelBacklightTimeout.Text = "Seconds to turn off backlight on battery";
// //
// labelBrightness // labelBrightness
// //
labelBrightness.Location = new Point(13, 75); labelBrightness.Location = new Point(13, 75);
labelBrightness.Margin = new Padding(4, 0, 4, 0);
labelBrightness.Name = "labelBrightness"; labelBrightness.Name = "labelBrightness";
labelBrightness.Size = new Size(336, 43); labelBrightness.Size = new Size(336, 43);
labelBrightness.TabIndex = 41; labelBrightness.TabIndex = 41;
@@ -406,17 +439,19 @@ namespace GHelper
// //
trackBrightness.LargeChange = 1; trackBrightness.LargeChange = 1;
trackBrightness.Location = new Point(355, 60); trackBrightness.Location = new Point(355, 60);
trackBrightness.Margin = new Padding(4, 2, 4, 2);
trackBrightness.Maximum = 3; trackBrightness.Maximum = 3;
trackBrightness.Name = "trackBrightness"; trackBrightness.Name = "trackBrightness";
trackBrightness.Size = new Size(558, 90); trackBrightness.Size = new Size(557, 90);
trackBrightness.TabIndex = 42; trackBrightness.TabIndex = 42;
trackBrightness.TickStyle = TickStyle.TopLeft; trackBrightness.TickStyle = TickStyle.TopLeft;
// //
// labelSpeed // labelSpeed
// //
labelSpeed.Location = new Point(13, 15); labelSpeed.Location = new Point(13, 15);
labelSpeed.Margin = new Padding(4, 0, 4, 0);
labelSpeed.Name = "labelSpeed"; labelSpeed.Name = "labelSpeed";
labelSpeed.Size = new Size(538, 40); labelSpeed.Size = new Size(539, 41);
labelSpeed.TabIndex = 44; labelSpeed.TabIndex = 44;
labelSpeed.Text = "Animation Speed"; labelSpeed.Text = "Animation Speed";
// //
@@ -430,9 +465,9 @@ namespace GHelper
comboKeyboardSpeed.ItemHeight = 32; comboKeyboardSpeed.ItemHeight = 32;
comboKeyboardSpeed.Items.AddRange(new object[] { "Slow", "Normal", "Fast" }); comboKeyboardSpeed.Items.AddRange(new object[] { "Slow", "Normal", "Fast" });
comboKeyboardSpeed.Location = new Point(607, 15); comboKeyboardSpeed.Location = new Point(607, 15);
comboKeyboardSpeed.Margin = new Padding(4, 10, 4, 8); comboKeyboardSpeed.Margin = new Padding(4, 11, 4, 9);
comboKeyboardSpeed.Name = "comboKeyboardSpeed"; comboKeyboardSpeed.Name = "comboKeyboardSpeed";
comboKeyboardSpeed.Size = new Size(291, 40); comboKeyboardSpeed.Size = new Size(292, 40);
comboKeyboardSpeed.TabIndex = 43; comboKeyboardSpeed.TabIndex = 43;
comboKeyboardSpeed.TabStop = false; comboKeyboardSpeed.TabStop = false;
// //
@@ -440,18 +475,20 @@ namespace GHelper
// //
panelXMG.Controls.Add(checkXMG); panelXMG.Controls.Add(checkXMG);
panelXMG.Dock = DockStyle.Top; panelXMG.Dock = DockStyle.Top;
panelXMG.Location = new Point(3, 261); panelXMG.Location = new Point(4, 257);
panelXMG.Margin = new Padding(4, 2, 4, 2);
panelXMG.Name = "panelXMG"; panelXMG.Name = "panelXMG";
panelXMG.Size = new Size(948, 58); panelXMG.Size = new Size(958, 58);
panelXMG.TabIndex = 42; panelXMG.TabIndex = 42;
// //
// checkXMG // checkXMG
// //
checkXMG.AutoSize = true; checkXMG.AutoSize = true;
checkXMG.Location = new Point(3, 10); checkXMG.Location = new Point(4, 11);
checkXMG.Margin = new Padding(4, 2, 4, 2);
checkXMG.Name = "checkXMG"; checkXMG.Name = "checkXMG";
checkXMG.Padding = new Padding(15, 2, 5, 2); checkXMG.Padding = new Padding(15, 2, 6, 2);
checkXMG.Size = new Size(178, 40); checkXMG.Size = new Size(179, 40);
checkXMG.TabIndex = 2; checkXMG.TabIndex = 2;
checkXMG.Text = "XG Mobile"; checkXMG.Text = "XG Mobile";
checkXMG.UseVisualStyleBackColor = true; checkXMG.UseVisualStyleBackColor = true;
@@ -485,7 +522,7 @@ namespace GHelper
tableBacklight.Controls.Add(checkSleepLid, 3, 3); tableBacklight.Controls.Add(checkSleepLid, 3, 3);
tableBacklight.Controls.Add(checkShutdownLid, 3, 4); tableBacklight.Controls.Add(checkShutdownLid, 3, 4);
tableBacklight.Dock = DockStyle.Top; tableBacklight.Dock = DockStyle.Top;
tableBacklight.Location = new Point(3, 35); tableBacklight.Location = new Point(4, 34);
tableBacklight.Margin = new Padding(0); tableBacklight.Margin = new Padding(0);
tableBacklight.Name = "tableBacklight"; tableBacklight.Name = "tableBacklight";
tableBacklight.RowCount = 5; tableBacklight.RowCount = 5;
@@ -494,27 +531,29 @@ namespace GHelper
tableBacklight.RowStyles.Add(new RowStyle()); tableBacklight.RowStyles.Add(new RowStyle());
tableBacklight.RowStyles.Add(new RowStyle()); tableBacklight.RowStyles.Add(new RowStyle());
tableBacklight.RowStyles.Add(new RowStyle()); tableBacklight.RowStyles.Add(new RowStyle());
tableBacklight.Size = new Size(948, 226); tableBacklight.Size = new Size(958, 223);
tableBacklight.TabIndex = 41; tableBacklight.TabIndex = 41;
// //
// labelBacklight // labelBacklight
// //
labelBacklight.Dock = DockStyle.Fill; labelBacklight.Dock = DockStyle.Fill;
labelBacklight.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); labelBacklight.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelBacklight.Location = new Point(3, 0); labelBacklight.Location = new Point(4, 0);
labelBacklight.Margin = new Padding(4, 0, 4, 0);
labelBacklight.Name = "labelBacklight"; labelBacklight.Name = "labelBacklight";
labelBacklight.Padding = new Padding(10, 5, 5, 5); labelBacklight.Padding = new Padding(9, 4, 6, 4);
labelBacklight.Size = new Size(231, 42); labelBacklight.Size = new Size(231, 43);
labelBacklight.TabIndex = 6; labelBacklight.TabIndex = 6;
labelBacklight.Text = "Keyboard"; labelBacklight.Text = "Keyboard";
// //
// checkAwake // checkAwake
// //
checkAwake.Dock = DockStyle.Fill; checkAwake.Dock = DockStyle.Fill;
checkAwake.Location = new Point(3, 45); checkAwake.Location = new Point(4, 45);
checkAwake.Margin = new Padding(4, 2, 4, 2);
checkAwake.Name = "checkAwake"; checkAwake.Name = "checkAwake";
checkAwake.Padding = new Padding(15, 2, 5, 2); checkAwake.Padding = new Padding(15, 2, 6, 2);
checkAwake.Size = new Size(231, 40); checkAwake.Size = new Size(231, 41);
checkAwake.TabIndex = 1; checkAwake.TabIndex = 1;
checkAwake.Text = Strings.Awake; checkAwake.Text = Strings.Awake;
checkAwake.UseVisualStyleBackColor = true; checkAwake.UseVisualStyleBackColor = true;
@@ -522,10 +561,11 @@ namespace GHelper
// checkBoot // checkBoot
// //
checkBoot.Dock = DockStyle.Fill; checkBoot.Dock = DockStyle.Fill;
checkBoot.Location = new Point(3, 91); checkBoot.Location = new Point(4, 90);
checkBoot.Margin = new Padding(4, 2, 4, 2);
checkBoot.Name = "checkBoot"; checkBoot.Name = "checkBoot";
checkBoot.Padding = new Padding(15, 2, 5, 2); checkBoot.Padding = new Padding(15, 2, 6, 2);
checkBoot.Size = new Size(231, 40); checkBoot.Size = new Size(231, 41);
checkBoot.TabIndex = 2; checkBoot.TabIndex = 2;
checkBoot.Text = Strings.Boot; checkBoot.Text = Strings.Boot;
checkBoot.UseVisualStyleBackColor = true; checkBoot.UseVisualStyleBackColor = true;
@@ -533,10 +573,11 @@ namespace GHelper
// checkSleep // checkSleep
// //
checkSleep.Dock = DockStyle.Fill; checkSleep.Dock = DockStyle.Fill;
checkSleep.Location = new Point(3, 137); checkSleep.Location = new Point(4, 135);
checkSleep.Margin = new Padding(4, 2, 4, 2);
checkSleep.Name = "checkSleep"; checkSleep.Name = "checkSleep";
checkSleep.Padding = new Padding(15, 2, 5, 2); checkSleep.Padding = new Padding(15, 2, 6, 2);
checkSleep.Size = new Size(231, 40); checkSleep.Size = new Size(231, 41);
checkSleep.TabIndex = 3; checkSleep.TabIndex = 3;
checkSleep.Text = "Sleep"; checkSleep.Text = "Sleep";
checkSleep.UseVisualStyleBackColor = true; checkSleep.UseVisualStyleBackColor = true;
@@ -544,10 +585,11 @@ namespace GHelper
// checkShutdown // checkShutdown
// //
checkShutdown.Dock = DockStyle.Fill; checkShutdown.Dock = DockStyle.Fill;
checkShutdown.Location = new Point(3, 183); checkShutdown.Location = new Point(4, 180);
checkShutdown.Margin = new Padding(4, 2, 4, 2);
checkShutdown.Name = "checkShutdown"; checkShutdown.Name = "checkShutdown";
checkShutdown.Padding = new Padding(15, 2, 5, 2); checkShutdown.Padding = new Padding(15, 2, 6, 2);
checkShutdown.Size = new Size(231, 40); checkShutdown.Size = new Size(231, 41);
checkShutdown.TabIndex = 4; checkShutdown.TabIndex = 4;
checkShutdown.Text = Strings.Shutdown; checkShutdown.Text = Strings.Shutdown;
checkShutdown.UseVisualStyleBackColor = true; checkShutdown.UseVisualStyleBackColor = true;
@@ -556,20 +598,22 @@ namespace GHelper
// //
labelBacklightLogo.Dock = DockStyle.Fill; labelBacklightLogo.Dock = DockStyle.Fill;
labelBacklightLogo.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); labelBacklightLogo.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelBacklightLogo.Location = new Point(240, 0); labelBacklightLogo.Location = new Point(243, 0);
labelBacklightLogo.Margin = new Padding(4, 0, 4, 0);
labelBacklightLogo.Name = "labelBacklightLogo"; labelBacklightLogo.Name = "labelBacklightLogo";
labelBacklightLogo.Padding = new Padding(10, 5, 5, 5); labelBacklightLogo.Padding = new Padding(9, 4, 6, 4);
labelBacklightLogo.Size = new Size(231, 42); labelBacklightLogo.Size = new Size(231, 43);
labelBacklightLogo.TabIndex = 21; labelBacklightLogo.TabIndex = 21;
labelBacklightLogo.Text = "Logo"; labelBacklightLogo.Text = "Logo";
// //
// checkAwakeLogo // checkAwakeLogo
// //
checkAwakeLogo.Dock = DockStyle.Fill; checkAwakeLogo.Dock = DockStyle.Fill;
checkAwakeLogo.Location = new Point(240, 45); checkAwakeLogo.Location = new Point(243, 45);
checkAwakeLogo.Margin = new Padding(4, 2, 4, 2);
checkAwakeLogo.Name = "checkAwakeLogo"; checkAwakeLogo.Name = "checkAwakeLogo";
checkAwakeLogo.Padding = new Padding(15, 2, 5, 2); checkAwakeLogo.Padding = new Padding(15, 2, 6, 2);
checkAwakeLogo.Size = new Size(231, 40); checkAwakeLogo.Size = new Size(231, 41);
checkAwakeLogo.TabIndex = 17; checkAwakeLogo.TabIndex = 17;
checkAwakeLogo.Text = Strings.Awake; checkAwakeLogo.Text = Strings.Awake;
checkAwakeLogo.UseVisualStyleBackColor = true; checkAwakeLogo.UseVisualStyleBackColor = true;
@@ -577,10 +621,11 @@ namespace GHelper
// checkBootLogo // checkBootLogo
// //
checkBootLogo.Dock = DockStyle.Fill; checkBootLogo.Dock = DockStyle.Fill;
checkBootLogo.Location = new Point(240, 91); checkBootLogo.Location = new Point(243, 90);
checkBootLogo.Margin = new Padding(4, 2, 4, 2);
checkBootLogo.Name = "checkBootLogo"; checkBootLogo.Name = "checkBootLogo";
checkBootLogo.Padding = new Padding(15, 2, 5, 2); checkBootLogo.Padding = new Padding(15, 2, 6, 2);
checkBootLogo.Size = new Size(231, 40); checkBootLogo.Size = new Size(231, 41);
checkBootLogo.TabIndex = 18; checkBootLogo.TabIndex = 18;
checkBootLogo.Text = Strings.Boot; checkBootLogo.Text = Strings.Boot;
checkBootLogo.UseVisualStyleBackColor = true; checkBootLogo.UseVisualStyleBackColor = true;
@@ -588,10 +633,11 @@ namespace GHelper
// checkSleepLogo // checkSleepLogo
// //
checkSleepLogo.Dock = DockStyle.Fill; checkSleepLogo.Dock = DockStyle.Fill;
checkSleepLogo.Location = new Point(240, 137); checkSleepLogo.Location = new Point(243, 135);
checkSleepLogo.Margin = new Padding(4, 2, 4, 2);
checkSleepLogo.Name = "checkSleepLogo"; checkSleepLogo.Name = "checkSleepLogo";
checkSleepLogo.Padding = new Padding(15, 2, 5, 2); checkSleepLogo.Padding = new Padding(15, 2, 6, 2);
checkSleepLogo.Size = new Size(231, 40); checkSleepLogo.Size = new Size(231, 41);
checkSleepLogo.TabIndex = 19; checkSleepLogo.TabIndex = 19;
checkSleepLogo.Text = Strings.Sleep; checkSleepLogo.Text = Strings.Sleep;
checkSleepLogo.UseVisualStyleBackColor = true; checkSleepLogo.UseVisualStyleBackColor = true;
@@ -599,10 +645,11 @@ namespace GHelper
// checkShutdownLogo // checkShutdownLogo
// //
checkShutdownLogo.Dock = DockStyle.Fill; checkShutdownLogo.Dock = DockStyle.Fill;
checkShutdownLogo.Location = new Point(240, 183); checkShutdownLogo.Location = new Point(243, 180);
checkShutdownLogo.Margin = new Padding(4, 2, 4, 2);
checkShutdownLogo.Name = "checkShutdownLogo"; checkShutdownLogo.Name = "checkShutdownLogo";
checkShutdownLogo.Padding = new Padding(15, 2, 5, 2); checkShutdownLogo.Padding = new Padding(15, 2, 6, 2);
checkShutdownLogo.Size = new Size(231, 40); checkShutdownLogo.Size = new Size(231, 41);
checkShutdownLogo.TabIndex = 20; checkShutdownLogo.TabIndex = 20;
checkShutdownLogo.Text = Strings.Shutdown; checkShutdownLogo.Text = Strings.Shutdown;
checkShutdownLogo.UseVisualStyleBackColor = true; checkShutdownLogo.UseVisualStyleBackColor = true;
@@ -611,20 +658,22 @@ namespace GHelper
// //
labelBacklightBar.Dock = DockStyle.Fill; labelBacklightBar.Dock = DockStyle.Fill;
labelBacklightBar.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); labelBacklightBar.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelBacklightBar.Location = new Point(477, 0); labelBacklightBar.Location = new Point(482, 0);
labelBacklightBar.Margin = new Padding(4, 0, 4, 0);
labelBacklightBar.Name = "labelBacklightBar"; labelBacklightBar.Name = "labelBacklightBar";
labelBacklightBar.Padding = new Padding(10, 5, 5, 5); labelBacklightBar.Padding = new Padding(9, 4, 6, 4);
labelBacklightBar.Size = new Size(231, 42); labelBacklightBar.Size = new Size(231, 43);
labelBacklightBar.TabIndex = 11; labelBacklightBar.TabIndex = 11;
labelBacklightBar.Text = "Lightbar"; labelBacklightBar.Text = "Lightbar";
// //
// checkAwakeBar // checkAwakeBar
// //
checkAwakeBar.Dock = DockStyle.Fill; checkAwakeBar.Dock = DockStyle.Fill;
checkAwakeBar.Location = new Point(477, 45); checkAwakeBar.Location = new Point(482, 45);
checkAwakeBar.Margin = new Padding(4, 2, 4, 2);
checkAwakeBar.Name = "checkAwakeBar"; checkAwakeBar.Name = "checkAwakeBar";
checkAwakeBar.Padding = new Padding(15, 2, 5, 2); checkAwakeBar.Padding = new Padding(15, 2, 6, 2);
checkAwakeBar.Size = new Size(231, 40); checkAwakeBar.Size = new Size(231, 41);
checkAwakeBar.TabIndex = 7; checkAwakeBar.TabIndex = 7;
checkAwakeBar.Text = Strings.Awake; checkAwakeBar.Text = Strings.Awake;
checkAwakeBar.UseVisualStyleBackColor = true; checkAwakeBar.UseVisualStyleBackColor = true;
@@ -632,10 +681,11 @@ namespace GHelper
// checkBootBar // checkBootBar
// //
checkBootBar.Dock = DockStyle.Fill; checkBootBar.Dock = DockStyle.Fill;
checkBootBar.Location = new Point(477, 91); checkBootBar.Location = new Point(482, 90);
checkBootBar.Margin = new Padding(4, 2, 4, 2);
checkBootBar.Name = "checkBootBar"; checkBootBar.Name = "checkBootBar";
checkBootBar.Padding = new Padding(15, 2, 5, 2); checkBootBar.Padding = new Padding(15, 2, 6, 2);
checkBootBar.Size = new Size(231, 40); checkBootBar.Size = new Size(231, 41);
checkBootBar.TabIndex = 8; checkBootBar.TabIndex = 8;
checkBootBar.Text = Strings.Boot; checkBootBar.Text = Strings.Boot;
checkBootBar.UseVisualStyleBackColor = true; checkBootBar.UseVisualStyleBackColor = true;
@@ -643,10 +693,11 @@ namespace GHelper
// checkSleepBar // checkSleepBar
// //
checkSleepBar.Dock = DockStyle.Fill; checkSleepBar.Dock = DockStyle.Fill;
checkSleepBar.Location = new Point(477, 137); checkSleepBar.Location = new Point(482, 135);
checkSleepBar.Margin = new Padding(4, 2, 4, 2);
checkSleepBar.Name = "checkSleepBar"; checkSleepBar.Name = "checkSleepBar";
checkSleepBar.Padding = new Padding(15, 2, 5, 2); checkSleepBar.Padding = new Padding(15, 2, 6, 2);
checkSleepBar.Size = new Size(231, 40); checkSleepBar.Size = new Size(231, 41);
checkSleepBar.TabIndex = 9; checkSleepBar.TabIndex = 9;
checkSleepBar.Text = Strings.Sleep; checkSleepBar.Text = Strings.Sleep;
checkSleepBar.UseVisualStyleBackColor = true; checkSleepBar.UseVisualStyleBackColor = true;
@@ -654,10 +705,11 @@ namespace GHelper
// checkShutdownBar // checkShutdownBar
// //
checkShutdownBar.Dock = DockStyle.Fill; checkShutdownBar.Dock = DockStyle.Fill;
checkShutdownBar.Location = new Point(477, 183); checkShutdownBar.Location = new Point(482, 180);
checkShutdownBar.Margin = new Padding(4, 2, 4, 2);
checkShutdownBar.Name = "checkShutdownBar"; checkShutdownBar.Name = "checkShutdownBar";
checkShutdownBar.Padding = new Padding(15, 2, 5, 2); checkShutdownBar.Padding = new Padding(15, 2, 6, 2);
checkShutdownBar.Size = new Size(231, 40); checkShutdownBar.Size = new Size(231, 41);
checkShutdownBar.TabIndex = 10; checkShutdownBar.TabIndex = 10;
checkShutdownBar.Text = Strings.Shutdown; checkShutdownBar.Text = Strings.Shutdown;
checkShutdownBar.UseVisualStyleBackColor = true; checkShutdownBar.UseVisualStyleBackColor = true;
@@ -666,20 +718,22 @@ namespace GHelper
// //
labelBacklightLid.Dock = DockStyle.Fill; labelBacklightLid.Dock = DockStyle.Fill;
labelBacklightLid.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); labelBacklightLid.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelBacklightLid.Location = new Point(714, 0); labelBacklightLid.Location = new Point(721, 0);
labelBacklightLid.Margin = new Padding(4, 0, 4, 0);
labelBacklightLid.Name = "labelBacklightLid"; labelBacklightLid.Name = "labelBacklightLid";
labelBacklightLid.Padding = new Padding(10, 5, 5, 5); labelBacklightLid.Padding = new Padding(9, 4, 6, 4);
labelBacklightLid.Size = new Size(231, 42); labelBacklightLid.Size = new Size(233, 43);
labelBacklightLid.TabIndex = 16; labelBacklightLid.TabIndex = 16;
labelBacklightLid.Text = "Lid"; labelBacklightLid.Text = "Lid";
// //
// checkAwakeLid // checkAwakeLid
// //
checkAwakeLid.Dock = DockStyle.Fill; checkAwakeLid.Dock = DockStyle.Fill;
checkAwakeLid.Location = new Point(714, 45); checkAwakeLid.Location = new Point(721, 45);
checkAwakeLid.Margin = new Padding(4, 2, 4, 2);
checkAwakeLid.Name = "checkAwakeLid"; checkAwakeLid.Name = "checkAwakeLid";
checkAwakeLid.Padding = new Padding(15, 2, 5, 2); checkAwakeLid.Padding = new Padding(15, 2, 6, 2);
checkAwakeLid.Size = new Size(231, 40); checkAwakeLid.Size = new Size(233, 41);
checkAwakeLid.TabIndex = 12; checkAwakeLid.TabIndex = 12;
checkAwakeLid.Text = Strings.Awake; checkAwakeLid.Text = Strings.Awake;
checkAwakeLid.UseVisualStyleBackColor = true; checkAwakeLid.UseVisualStyleBackColor = true;
@@ -687,10 +741,11 @@ namespace GHelper
// checkBootLid // checkBootLid
// //
checkBootLid.Dock = DockStyle.Fill; checkBootLid.Dock = DockStyle.Fill;
checkBootLid.Location = new Point(714, 91); checkBootLid.Location = new Point(721, 90);
checkBootLid.Margin = new Padding(4, 2, 4, 2);
checkBootLid.Name = "checkBootLid"; checkBootLid.Name = "checkBootLid";
checkBootLid.Padding = new Padding(15, 2, 5, 2); checkBootLid.Padding = new Padding(15, 2, 6, 2);
checkBootLid.Size = new Size(231, 40); checkBootLid.Size = new Size(233, 41);
checkBootLid.TabIndex = 13; checkBootLid.TabIndex = 13;
checkBootLid.Text = Strings.Boot; checkBootLid.Text = Strings.Boot;
checkBootLid.UseVisualStyleBackColor = true; checkBootLid.UseVisualStyleBackColor = true;
@@ -698,10 +753,11 @@ namespace GHelper
// checkSleepLid // checkSleepLid
// //
checkSleepLid.Dock = DockStyle.Fill; checkSleepLid.Dock = DockStyle.Fill;
checkSleepLid.Location = new Point(714, 137); checkSleepLid.Location = new Point(721, 135);
checkSleepLid.Margin = new Padding(4, 2, 4, 2);
checkSleepLid.Name = "checkSleepLid"; checkSleepLid.Name = "checkSleepLid";
checkSleepLid.Padding = new Padding(15, 2, 5, 2); checkSleepLid.Padding = new Padding(15, 2, 6, 2);
checkSleepLid.Size = new Size(231, 40); checkSleepLid.Size = new Size(233, 41);
checkSleepLid.TabIndex = 14; checkSleepLid.TabIndex = 14;
checkSleepLid.Text = Strings.Sleep; checkSleepLid.Text = Strings.Sleep;
checkSleepLid.UseVisualStyleBackColor = true; checkSleepLid.UseVisualStyleBackColor = true;
@@ -709,16 +765,19 @@ namespace GHelper
// checkShutdownLid // checkShutdownLid
// //
checkShutdownLid.Dock = DockStyle.Fill; checkShutdownLid.Dock = DockStyle.Fill;
checkShutdownLid.Location = new Point(714, 183); checkShutdownLid.Location = new Point(721, 180);
checkShutdownLid.Margin = new Padding(4, 2, 4, 2);
checkShutdownLid.Name = "checkShutdownLid"; checkShutdownLid.Name = "checkShutdownLid";
checkShutdownLid.Padding = new Padding(15, 2, 5, 2); checkShutdownLid.Padding = new Padding(15, 2, 6, 2);
checkShutdownLid.Size = new Size(231, 40); checkShutdownLid.Size = new Size(233, 41);
checkShutdownLid.TabIndex = 15; checkShutdownLid.TabIndex = 15;
checkShutdownLid.Text = Strings.Shutdown; checkShutdownLid.Text = Strings.Shutdown;
checkShutdownLid.UseVisualStyleBackColor = true; checkShutdownLid.UseVisualStyleBackColor = true;
// //
// groupOther // groupOther
// //
groupOther.AutoSize = true;
groupOther.AutoSizeMode = AutoSizeMode.GrowAndShrink;
groupOther.Controls.Add(checkFnLock); groupOther.Controls.Add(checkFnLock);
groupOther.Controls.Add(checkGpuApps); groupOther.Controls.Add(checkGpuApps);
groupOther.Controls.Add(checkAutoApplyWindowsPowerMode); groupOther.Controls.Add(checkAutoApplyWindowsPowerMode);
@@ -726,9 +785,11 @@ namespace GHelper
groupOther.Controls.Add(checkNoOverdrive); groupOther.Controls.Add(checkNoOverdrive);
groupOther.Controls.Add(checkTopmost); groupOther.Controls.Add(checkTopmost);
groupOther.Dock = DockStyle.Top; groupOther.Dock = DockStyle.Top;
groupOther.Location = new Point(10, 933); groupOther.Location = new Point(9, 946);
groupOther.Margin = new Padding(4, 2, 4, 2);
groupOther.Name = "groupOther"; groupOther.Name = "groupOther";
groupOther.Size = new Size(954, 300); groupOther.Padding = new Padding(4, 2, 4, 0);
groupOther.Size = new Size(966, 320);
groupOther.TabIndex = 2; groupOther.TabIndex = 2;
groupOther.TabStop = false; groupOther.TabStop = false;
groupOther.Text = "Other"; groupOther.Text = "Other";
@@ -736,7 +797,8 @@ namespace GHelper
// checkFnLock // checkFnLock
// //
checkFnLock.AutoSize = true; checkFnLock.AutoSize = true;
checkFnLock.Location = new Point(25, 44); checkFnLock.Location = new Point(24, 45);
checkFnLock.Margin = new Padding(4, 2, 4, 2);
checkFnLock.MaximumSize = new Size(780, 0); checkFnLock.MaximumSize = new Size(780, 0);
checkFnLock.Name = "checkFnLock"; checkFnLock.Name = "checkFnLock";
checkFnLock.Size = new Size(397, 36); checkFnLock.Size = new Size(397, 36);
@@ -747,7 +809,8 @@ namespace GHelper
// checkGpuApps // checkGpuApps
// //
checkGpuApps.AutoSize = true; checkGpuApps.AutoSize = true;
checkGpuApps.Location = new Point(25, 83); checkGpuApps.Location = new Point(24, 83);
checkGpuApps.Margin = new Padding(4, 2, 4, 2);
checkGpuApps.Name = "checkGpuApps"; checkGpuApps.Name = "checkGpuApps";
checkGpuApps.Size = new Size(544, 36); checkGpuApps.Size = new Size(544, 36);
checkGpuApps.TabIndex = 48; checkGpuApps.TabIndex = 48;
@@ -757,7 +820,8 @@ namespace GHelper
// checkAutoApplyWindowsPowerMode // checkAutoApplyWindowsPowerMode
// //
checkAutoApplyWindowsPowerMode.AutoSize = true; checkAutoApplyWindowsPowerMode.AutoSize = true;
checkAutoApplyWindowsPowerMode.Location = new Point(25, 251); checkAutoApplyWindowsPowerMode.Location = new Point(24, 250);
checkAutoApplyWindowsPowerMode.Margin = new Padding(4, 2, 4, 2);
checkAutoApplyWindowsPowerMode.Name = "checkAutoApplyWindowsPowerMode"; checkAutoApplyWindowsPowerMode.Name = "checkAutoApplyWindowsPowerMode";
checkAutoApplyWindowsPowerMode.Size = new Size(416, 36); checkAutoApplyWindowsPowerMode.Size = new Size(416, 36);
checkAutoApplyWindowsPowerMode.TabIndex = 47; checkAutoApplyWindowsPowerMode.TabIndex = 47;
@@ -767,7 +831,8 @@ namespace GHelper
// checkUSBC // checkUSBC
// //
checkUSBC.AutoSize = true; checkUSBC.AutoSize = true;
checkUSBC.Location = new Point(25, 125); checkUSBC.Location = new Point(24, 126);
checkUSBC.Margin = new Padding(4, 2, 4, 2);
checkUSBC.Name = "checkUSBC"; checkUSBC.Name = "checkUSBC";
checkUSBC.Size = new Size(659, 36); checkUSBC.Size = new Size(659, 36);
checkUSBC.TabIndex = 4; checkUSBC.TabIndex = 4;
@@ -777,7 +842,8 @@ namespace GHelper
// checkNoOverdrive // checkNoOverdrive
// //
checkNoOverdrive.AutoSize = true; checkNoOverdrive.AutoSize = true;
checkNoOverdrive.Location = new Point(25, 167); checkNoOverdrive.Location = new Point(24, 166);
checkNoOverdrive.Margin = new Padding(4, 2, 4, 2);
checkNoOverdrive.Name = "checkNoOverdrive"; checkNoOverdrive.Name = "checkNoOverdrive";
checkNoOverdrive.Size = new Size(307, 36); checkNoOverdrive.Size = new Size(307, 36);
checkNoOverdrive.TabIndex = 3; checkNoOverdrive.TabIndex = 3;
@@ -787,7 +853,8 @@ namespace GHelper
// checkTopmost // checkTopmost
// //
checkTopmost.AutoSize = true; checkTopmost.AutoSize = true;
checkTopmost.Location = new Point(25, 209); checkTopmost.Location = new Point(24, 209);
checkTopmost.Margin = new Padding(4, 2, 4, 2);
checkTopmost.Name = "checkTopmost"; checkTopmost.Name = "checkTopmost";
checkTopmost.Size = new Size(390, 36); checkTopmost.Size = new Size(390, 36);
checkTopmost.TabIndex = 1; checkTopmost.TabIndex = 1;
@@ -800,17 +867,18 @@ namespace GHelper
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
AutoSize = true; AutoSize = true;
AutoSizeMode = AutoSizeMode.GrowAndShrink; AutoSizeMode = AutoSizeMode.GrowAndShrink;
ClientSize = new Size(974, 1247); ClientSize = new Size(984, 1244);
Controls.Add(groupOther); Controls.Add(groupOther);
Controls.Add(groupLight); Controls.Add(groupLight);
Controls.Add(groupBindings); Controls.Add(groupBindings);
FormBorderStyle = FormBorderStyle.FixedSingle; FormBorderStyle = FormBorderStyle.FixedSingle;
Margin = new Padding(4, 2, 4, 2);
MaximizeBox = false; MaximizeBox = false;
MdiChildrenMinimizedAnchorBottom = false; MdiChildrenMinimizedAnchorBottom = false;
MinimizeBox = false; MinimizeBox = false;
MinimumSize = new Size(1000, 0); MinimumSize = new Size(1010, 71);
Name = "Extra"; Name = "Extra";
Padding = new Padding(10); Padding = new Padding(9, 11, 9, 11);
ShowIcon = false; ShowIcon = false;
ShowInTaskbar = false; ShowInTaskbar = false;
Text = "Extra Settings"; Text = "Extra Settings";

49
app/Fans.Designer.cs generated
View File

@@ -31,14 +31,14 @@ namespace GHelper
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
ChartArea chartArea5 = new ChartArea(); ChartArea chartArea1 = new ChartArea();
Title title5 = new Title(); Title title1 = new Title();
ChartArea chartArea6 = new ChartArea(); ChartArea chartArea2 = new ChartArea();
Title title6 = new Title(); Title title2 = new Title();
ChartArea chartArea7 = new ChartArea(); ChartArea chartArea3 = new ChartArea();
Title title7 = new Title(); Title title3 = new Title();
ChartArea chartArea8 = new ChartArea(); ChartArea chartArea4 = new ChartArea();
Title title8 = new Title(); Title title4 = new Title();
panelFans = new Panel(); panelFans = new Panel();
labelTip = new Label(); labelTip = new Label();
tableFanCharts = new TableLayoutPanel(); tableFanCharts = new TableLayoutPanel();
@@ -181,8 +181,8 @@ namespace GHelper
// //
// chartGPU // chartGPU
// //
chartArea5.Name = "ChartArea1"; chartArea1.Name = "ChartArea1";
chartGPU.ChartAreas.Add(chartArea5); chartGPU.ChartAreas.Add(chartArea1);
chartGPU.Dock = DockStyle.Fill; chartGPU.Dock = DockStyle.Fill;
chartGPU.Location = new Point(12, 289); chartGPU.Location = new Point(12, 289);
chartGPU.Margin = new Padding(2, 10, 2, 10); chartGPU.Margin = new Padding(2, 10, 2, 10);
@@ -190,13 +190,13 @@ namespace GHelper
chartGPU.Size = new Size(781, 259); chartGPU.Size = new Size(781, 259);
chartGPU.TabIndex = 17; chartGPU.TabIndex = 17;
chartGPU.Text = "chartGPU"; chartGPU.Text = "chartGPU";
title5.Name = "Title1"; title1.Name = "Title1";
chartGPU.Titles.Add(title5); chartGPU.Titles.Add(title1);
// //
// chartCPU // chartCPU
// //
chartArea6.Name = "ChartArea1"; chartArea2.Name = "ChartArea1";
chartCPU.ChartAreas.Add(chartArea6); chartCPU.ChartAreas.Add(chartArea2);
chartCPU.Dock = DockStyle.Fill; chartCPU.Dock = DockStyle.Fill;
chartCPU.Location = new Point(12, 10); chartCPU.Location = new Point(12, 10);
chartCPU.Margin = new Padding(2, 10, 2, 10); chartCPU.Margin = new Padding(2, 10, 2, 10);
@@ -204,13 +204,13 @@ namespace GHelper
chartCPU.Size = new Size(781, 259); chartCPU.Size = new Size(781, 259);
chartCPU.TabIndex = 14; chartCPU.TabIndex = 14;
chartCPU.Text = "chartCPU"; chartCPU.Text = "chartCPU";
title6.Name = "Title1"; title2.Name = "Title1";
chartCPU.Titles.Add(title6); chartCPU.Titles.Add(title2);
// //
// chartXGM // chartXGM
// //
chartArea7.Name = "ChartAreaXGM"; chartArea3.Name = "ChartAreaXGM";
chartXGM.ChartAreas.Add(chartArea7); chartXGM.ChartAreas.Add(chartArea3);
chartXGM.Dock = DockStyle.Fill; chartXGM.Dock = DockStyle.Fill;
chartXGM.Location = new Point(12, 847); chartXGM.Location = new Point(12, 847);
chartXGM.Margin = new Padding(2, 10, 2, 10); chartXGM.Margin = new Padding(2, 10, 2, 10);
@@ -218,14 +218,14 @@ namespace GHelper
chartXGM.Size = new Size(781, 261); chartXGM.Size = new Size(781, 261);
chartXGM.TabIndex = 14; chartXGM.TabIndex = 14;
chartXGM.Text = "chartXGM"; chartXGM.Text = "chartXGM";
title7.Name = "Title4"; title3.Name = "Title4";
chartXGM.Titles.Add(title7); chartXGM.Titles.Add(title3);
chartXGM.Visible = false; chartXGM.Visible = false;
// //
// chartMid // chartMid
// //
chartArea8.Name = "ChartArea3"; chartArea4.Name = "ChartArea3";
chartMid.ChartAreas.Add(chartArea8); chartMid.ChartAreas.Add(chartArea4);
chartMid.Dock = DockStyle.Fill; chartMid.Dock = DockStyle.Fill;
chartMid.Location = new Point(12, 568); chartMid.Location = new Point(12, 568);
chartMid.Margin = new Padding(2, 10, 2, 10); chartMid.Margin = new Padding(2, 10, 2, 10);
@@ -233,8 +233,8 @@ namespace GHelper
chartMid.Size = new Size(781, 259); chartMid.Size = new Size(781, 259);
chartMid.TabIndex = 14; chartMid.TabIndex = 14;
chartMid.Text = "chartMid"; chartMid.Text = "chartMid";
title8.Name = "Title3"; title4.Name = "Title3";
chartMid.Titles.Add(title8); chartMid.Titles.Add(title4);
chartMid.Visible = false; chartMid.Visible = false;
// //
// panelTitleFans // panelTitleFans
@@ -847,7 +847,6 @@ namespace GHelper
Controls.Add(panelSliders); Controls.Add(panelSliders);
Margin = new Padding(4, 2, 4, 2); Margin = new Padding(4, 2, 4, 2);
MaximizeBox = false; MaximizeBox = false;
MdiChildrenMinimizedAnchorBottom = false;
MinimizeBox = false; MinimizeBox = false;
MinimumSize = new Size(0, 1200); MinimumSize = new Size(0, 1200);
Name = "Fans"; Name = "Fans";

View File

@@ -1,5 +1,6 @@
using CustomControls; using CustomControls;
using GHelper.Gpu; using GHelper.Gpu;
using System;
using System.Diagnostics; using System.Diagnostics;
using System.Windows.Forms.DataVisualization.Charting; using System.Windows.Forms.DataVisualization.Charting;
@@ -695,13 +696,19 @@ namespace GHelper
if (dy < dymin) dy = dymin; if (dy < dymin) dy = dymin;
if (e.Button.HasFlag(MouseButtons.Left)) if (e.Button.HasFlag(MouseButtons.Left) && hit.Series is not null)
{ {
curPoint.XValue = dx;
curPoint.YValues[0] = dy;
if (hit.Series is not null) curPoint.XValue = dx;
if (Control.ModifierKeys == Keys.Shift)
{
AdjustAllDots(0, dy - curPoint.YValues[0], hit.Series);
} else
{
curPoint.YValues[0] = dy;
AdjustAllLevels(hit.PointIndex, dx, dy, hit.Series); AdjustAllLevels(hit.PointIndex, dx, dy, hit.Series);
}
tip = true; tip = true;
} }
@@ -724,6 +731,15 @@ namespace GHelper
} }
private void AdjustAllDots(double deltaX, double deltaY, Series series)
{
for (int i = 0; i < series.Points.Count; i++)
{
series.Points[i].XValue = Math.Max(20, Math.Min(100, series.Points[i].XValue + deltaX));
series.Points[i].YValues[0] = Math.Max(0, Math.Min(100, series.Points[i].YValues[0]+deltaY));
}
}
private void AdjustAllLevels(int index, double curXVal, double curYVal, Series series) private void AdjustAllLevels(int index, double curXVal, double curYVal, Series series)
{ {

View File

@@ -16,7 +16,7 @@
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly> <ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.76</AssemblyVersion> <AssemblyVersion>0.77</AssemblyVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -369,7 +369,7 @@ namespace GHelper
Program.settingsForm.BeginInvoke(Program.settingsForm.RunToast, "Fn-Lock "+(fnLock==1?"On":"Off"), ToastIcon.FnLock); Program.settingsForm.BeginInvoke(Program.settingsForm.RunToast, "Fn-Lock "+(fnLock==1?"On":"Off"), ToastIcon.FnLock);
} }
static void TabletMode() public static void TabletMode()
{ {
bool touchpadState = GetTouchpadState(); bool touchpadState = GetTouchpadState();
bool tabletState = Program.acpi.DeviceGet(AsusACPI.TabletState) > 0; bool tabletState = Program.acpi.DeviceGet(AsusACPI.TabletState) > 0;

View File

@@ -480,6 +480,17 @@ public class NativeMethods
); );
[DllImport("powrprof.dll")]
static extern uint PowerReadACValue(
IntPtr RootPowerKey,
Guid SchemeGuid,
Guid SubGroupOfPowerSettingGuid,
Guid PowerSettingGuid,
ref int Type,
ref IntPtr Buffer,
ref uint BufferSize
);
[DllImport("PowrProf.dll", CharSet = CharSet.Unicode)] [DllImport("PowrProf.dll", CharSet = CharSet.Unicode)]
static extern UInt32 PowerSetActiveScheme(IntPtr RootPowerKey, static extern UInt32 PowerSetActiveScheme(IntPtr RootPowerKey,
@@ -491,6 +502,9 @@ public class NativeMethods
static readonly Guid GUID_CPU = new Guid("54533251-82be-4824-96c1-47b60b740d00"); static readonly Guid GUID_CPU = new Guid("54533251-82be-4824-96c1-47b60b740d00");
static readonly Guid GUID_BOOST = new Guid("be337238-0d82-4146-a960-4f3749d470c7"); static readonly Guid GUID_BOOST = new Guid("be337238-0d82-4146-a960-4f3749d470c7");
private static Guid GUID_SLEEP_SUBGROUP = new Guid("238c9fa8-0aad-41ed-83f4-97be242c8f20");
private static Guid GUID_HIBERNATEIDLE = new Guid("9d7815a6-7ee4-497e-8888-515a05f02364");
[DllImportAttribute("powrprof.dll", EntryPoint = "PowerGetActualOverlayScheme")] [DllImportAttribute("powrprof.dll", EntryPoint = "PowerGetActualOverlayScheme")]
public static extern uint PowerGetActualOverlayScheme(out Guid ActualOverlayGuid); public static extern uint PowerGetActualOverlayScheme(out Guid ActualOverlayGuid);
@@ -594,8 +608,7 @@ public class NativeMethods
displayNum = count; displayNum = count;
} }
count++; count++;
//Logger.WriteLine(device.outputTechnology.ToString()); //Logger.WriteLine(device.monitorFriendlyDeviceName + ":" + device.outputTechnology.ToString());
//Logger.WriteLine(device.monitorFriendlyDeviceName);
} }
var screens = Screen.AllScreens; var screens = Screen.AllScreens;
@@ -678,6 +691,20 @@ public class NativeMethods
} }
public static nint GetHuibernateAfter()
{
Guid activePolicyGuid = GetActiveScheme();
var type = 0;
nint value = 0;
var valueSize = 4u;
PowerReadACValue(IntPtr.Zero, activePolicyGuid,
GUID_SLEEP_SUBGROUP, GUID_HIBERNATEIDLE,
ref type, ref value, ref valueSize);
return value;
}
static Guid GetActiveScheme() static Guid GetActiveScheme()
{ {
IntPtr pActiveSchemeGuid; IntPtr pActiveSchemeGuid;

View File

@@ -174,8 +174,7 @@ namespace GHelper
public static void SettingsToggle(string action = "") public static void SettingsToggle(string action = "")
{ {
if (settingsForm.Visible) if (settingsForm.Visible) settingsForm.HideAll();
settingsForm.Hide();
else else
{ {
settingsForm.Show(); settingsForm.Show();

View File

@@ -154,7 +154,7 @@
<value>Güç Sınırlarını Uygula</value> <value>Güç Sınırlarını Uygula</value>
</data> </data>
<data name="ApplyWindowsPowerPlan" xml:space="preserve"> <data name="ApplyWindowsPowerPlan" xml:space="preserve">
<value>Auto adjust Windows Power Mode</value> <value>Windows Güç Modunu otomatik ayarla</value>
</data> </data>
<data name="AuraBreathe" xml:space="preserve"> <data name="AuraBreathe" xml:space="preserve">
<value>Nefes</value> <value>Nefes</value>
@@ -189,6 +189,12 @@
<data name="Awake" xml:space="preserve"> <data name="Awake" xml:space="preserve">
<value>Uyanık</value> <value>Uyanık</value>
</data> </data>
<data name="BacklightTimeout" xml:space="preserve">
<value>Pildeyken klavye ışığının kapanma süresi</value>
</data>
<data name="BacklightTimeoutPlugged" xml:space="preserve">
<value>Şarjdayken klavye ışığının kapanma süresi (0 her zaman açık)</value>
</data>
<data name="Balanced" xml:space="preserve"> <data name="Balanced" xml:space="preserve">
<value>Dengeli</value> <value>Dengeli</value>
</data> </data>
@@ -258,6 +264,9 @@
<data name="FansPower" xml:space="preserve"> <data name="FansPower" xml:space="preserve">
<value>Fanlar + Güç</value> <value>Fanlar + Güç</value>
</data> </data>
<data name="FnLock" xml:space="preserve">
<value>Fn+F kısayol tuşlarını FN tuşuna basmadan çalıştır</value>
</data>
<data name="GPUChanging" xml:space="preserve"> <data name="GPUChanging" xml:space="preserve">
<value>Değiştiriliyor</value> <value>Değiştiriliyor</value>
</data> </data>
@@ -282,6 +291,9 @@
<data name="KeyboardAuto" xml:space="preserve"> <data name="KeyboardAuto" xml:space="preserve">
<value>Pille çalışırken klavye aydınlatmasını kıs, şarjdayken eski haline dön</value> <value>Pille çalışırken klavye aydınlatmasını kıs, şarjdayken eski haline dön</value>
</data> </data>
<data name="KillGpuApps" xml:space="preserve">
<value>Eco'ya geçerken dGPU kullanan tüm uygulamaları durdur</value>
</data>
<data name="LaptopBacklight" xml:space="preserve"> <data name="LaptopBacklight" xml:space="preserve">
<value>Aydınlatması</value> <value>Aydınlatması</value>
</data> </data>
@@ -333,6 +345,9 @@
<data name="OptimizedGPUTooltip" xml:space="preserve"> <data name="OptimizedGPUTooltip" xml:space="preserve">
<value>Pille çalışırken Eko moda ve şarjdayken Standart moda geçiş yapın</value> <value>Pille çalışırken Eko moda ve şarjdayken Standart moda geçiş yapın</value>
</data> </data>
<data name="OptimizedUSBC" xml:space="preserve">
<value>Optimize edilmiş modda USB-c şarj cihazında GPU'yu devre dışı bırak</value>
</data>
<data name="Other" xml:space="preserve"> <data name="Other" xml:space="preserve">
<value>Diğer</value> <value>Diğer</value>
</data> </data>

View File

@@ -264,6 +264,9 @@
<data name="FansPower" xml:space="preserve"> <data name="FansPower" xml:space="preserve">
<value>Кулери та Потужність</value> <value>Кулери та Потужність</value>
</data> </data>
<data name="FnLock" xml:space="preserve">
<value>Гарячі клавіші Fn+F працюють без натискання Fn</value>
</data>
<data name="GPUChanging" xml:space="preserve"> <data name="GPUChanging" xml:space="preserve">
<value>Зміна</value> <value>Зміна</value>
</data> </data>

View File

@@ -906,12 +906,23 @@ namespace GHelper
Application.Exit(); Application.Exit();
} }
public void HideAll()
{
this.Hide();
if (fans != null && fans.Text != "") fans.Close();
if (keyb != null && keyb.Text != "") keyb.Close();
}
public void CloseOthers()
{
}
private void SettingsForm_FormClosing(object? sender, FormClosingEventArgs e) private void SettingsForm_FormClosing(object? sender, FormClosingEventArgs e)
{ {
if (e.CloseReason == CloseReason.UserClosing) if (e.CloseReason == CloseReason.UserClosing)
{ {
e.Cancel = true; e.Cancel = true;
Hide(); HideAll();
} }
} }
@@ -1290,6 +1301,8 @@ namespace GHelper
public void AutoKeyboard() public void AutoKeyboard()
{ {
InputDispatcher.SetBacklightAuto(true); InputDispatcher.SetBacklightAuto(true);
if (AppConfig.ContainsModel("X16") || AppConfig.ContainsModel("X13")) InputDispatcher.TabletMode();
} }
public void AutoPerformance() public void AutoPerformance()
@@ -1458,7 +1471,7 @@ namespace GHelper
if (eco < 0) if (eco < 0)
{ {
tableGPU.Visible = false; tableGPU.Visible = false;
if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < 0) panelGPU.Visible = false; if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < -65536) panelGPU.Visible = false;
} }
} }