This commit is contained in:
Serge
2024-07-24 13:44:22 +02:00
parent 37f4022366
commit 1c8260ce28
5 changed files with 168 additions and 106 deletions

172
app/Settings.Designer.cs generated
View File

@@ -51,7 +51,7 @@ namespace GHelper
labelBatteryTitle = new Label();
panelFooter = new Panel();
tableButtons = new TableLayoutPanel();
labelVersion = new Label();
buttonDonate = new RButton();
buttonQuit = new RButton();
buttonUpdates = new RButton();
checkStartup = new CheckBox();
@@ -107,7 +107,7 @@ namespace GHelper
buttonFnLock = new RButton();
pictureKeyboard = new PictureBox();
labelKeyboard = new Label();
panelVersion = new Panel();
panelStartup = new Panel();
labelCharge = new Label();
panelPeripherals = new Panel();
tableLayoutPeripherals = new TableLayoutPanel();
@@ -137,6 +137,8 @@ namespace GHelper
labelGamma = new Label();
pictureGamma = new PictureBox();
labelGammaTitle = new Label();
panelVersion = new Panel();
labelVersion = new Label();
panelMatrix.SuspendLayout();
panelMatrixAuto.SuspendLayout();
tableLayoutMatrix.SuspendLayout();
@@ -167,7 +169,7 @@ namespace GHelper
((System.ComponentModel.ISupportInitialize)pictureColor).BeginInit();
panelKeyboardTitle.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureKeyboard).BeginInit();
panelVersion.SuspendLayout();
panelStartup.SuspendLayout();
panelPeripherals.SuspendLayout();
tableLayoutPeripherals.SuspendLayout();
panelPeripheralsTile.SuspendLayout();
@@ -180,6 +182,7 @@ namespace GHelper
tableVisual.SuspendLayout();
panelGammaTitle.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureGamma).BeginInit();
panelVersion.SuspendLayout();
SuspendLayout();
//
// panelMatrix
@@ -268,7 +271,7 @@ namespace GHelper
comboMatrix.BorderColor = Color.White;
comboMatrix.ButtonColor = Color.FromArgb(255, 255, 255);
comboMatrix.Dock = DockStyle.Top;
comboMatrix.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboMatrix.Font = new Font("Segoe UI", 9F);
comboMatrix.FormattingEnabled = true;
comboMatrix.ItemHeight = 32;
comboMatrix.Items.AddRange(new object[] { Properties.Strings.MatrixOff, Properties.Strings.MatrixDim, Properties.Strings.MatrixMedium, Properties.Strings.MatrixBright });
@@ -283,7 +286,7 @@ namespace GHelper
comboMatrixRunning.BorderColor = Color.White;
comboMatrixRunning.ButtonColor = Color.FromArgb(255, 255, 255);
comboMatrixRunning.Dock = DockStyle.Top;
comboMatrixRunning.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboMatrixRunning.Font = new Font("Segoe UI", 9F);
comboMatrixRunning.FormattingEnabled = true;
comboMatrixRunning.ItemHeight = 32;
comboMatrixRunning.Items.AddRange(new object[] { Properties.Strings.MatrixBanner, Properties.Strings.MatrixLogo, Properties.Strings.MatrixPicture, Properties.Strings.MatrixClock, Properties.Strings.MatrixAudio });
@@ -298,7 +301,7 @@ namespace GHelper
comboInterval.BorderColor = Color.White;
comboInterval.ButtonColor = Color.FromArgb(255, 255, 255);
comboInterval.Dock = DockStyle.Top;
comboInterval.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboInterval.Font = new Font("Segoe UI", 9F);
comboInterval.FormattingEnabled = true;
comboInterval.ItemHeight = 32;
comboInterval.Location = new Point(10, 60);
@@ -355,7 +358,7 @@ namespace GHelper
// labelMatrix
//
labelMatrix.AutoSize = true;
labelMatrix.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelMatrix.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelMatrix.Location = new Point(44, 0);
labelMatrix.Margin = new Padding(4, 0, 4, 0);
labelMatrix.Name = "labelMatrix";
@@ -374,8 +377,8 @@ namespace GHelper
panelBattery.Location = new Point(11, 1765);
panelBattery.Margin = new Padding(0);
panelBattery.Name = "panelBattery";
panelBattery.Padding = new Padding(20, 20, 20, 11);
panelBattery.Size = new Size(827, 120);
panelBattery.Padding = new Padding(20, 20, 20, 0);
panelBattery.Size = new Size(827, 109);
panelBattery.TabIndex = 5;
//
// buttonBatteryFull
@@ -387,7 +390,7 @@ namespace GHelper
buttonBatteryFull.BorderRadius = 2;
buttonBatteryFull.FlatAppearance.BorderSize = 0;
buttonBatteryFull.FlatStyle = FlatStyle.Flat;
buttonBatteryFull.Font = new Font("Segoe UI", 7.125F, FontStyle.Bold, GraphicsUnit.Point);
buttonBatteryFull.Font = new Font("Segoe UI", 7.125F, FontStyle.Bold);
buttonBatteryFull.ForeColor = SystemColors.ControlDark;
buttonBatteryFull.Location = new Point(728, 67);
buttonBatteryFull.Margin = new Padding(0);
@@ -449,7 +452,7 @@ namespace GHelper
//
// labelBatteryTitle
//
labelBatteryTitle.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelBatteryTitle.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelBatteryTitle.Location = new Point(43, 0);
labelBatteryTitle.Margin = new Padding(8, 0, 8, 0);
labelBatteryTitle.Name = "labelBatteryTitle";
@@ -463,11 +466,11 @@ namespace GHelper
panelFooter.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panelFooter.Controls.Add(tableButtons);
panelFooter.Dock = DockStyle.Top;
panelFooter.Location = new Point(11, 1941);
panelFooter.Location = new Point(11, 1974);
panelFooter.Margin = new Padding(0);
panelFooter.Name = "panelFooter";
panelFooter.Padding = new Padding(20);
panelFooter.Size = new Size(827, 100);
panelFooter.Padding = new Padding(20, 10, 20, 20);
panelFooter.Size = new Size(827, 88);
panelFooter.TabIndex = 7;
//
// tableButtons
@@ -478,32 +481,37 @@ namespace GHelper
tableButtons.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F));
tableButtons.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F));
tableButtons.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 27F));
tableButtons.Controls.Add(labelVersion, 0, 0);
tableButtons.Controls.Add(buttonDonate, 0, 0);
tableButtons.Controls.Add(buttonQuit, 2, 0);
tableButtons.Controls.Add(buttonUpdates, 1, 0);
tableButtons.Dock = DockStyle.Top;
tableButtons.Location = new Point(20, 20);
tableButtons.Location = new Point(20, 10);
tableButtons.Margin = new Padding(8, 4, 8, 4);
tableButtons.Name = "tableButtons";
tableButtons.RowCount = 1;
tableButtons.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
tableButtons.Size = new Size(787, 60);
tableButtons.Size = new Size(787, 58);
tableButtons.TabIndex = 25;
//
// labelVersion
// buttonDonate
//
labelVersion.Cursor = Cursors.Hand;
labelVersion.Dock = DockStyle.Fill;
labelVersion.Font = new Font("Segoe UI", 9F, FontStyle.Underline, GraphicsUnit.Point);
labelVersion.ForeColor = SystemColors.ControlDark;
labelVersion.Location = new Point(0, 0);
labelVersion.Margin = new Padding(0);
labelVersion.Name = "labelVersion";
labelVersion.Padding = new Padding(5);
labelVersion.Size = new Size(262, 60);
labelVersion.TabIndex = 37;
labelVersion.Text = "v.0";
labelVersion.TextAlign = ContentAlignment.MiddleLeft;
buttonDonate.Activated = false;
buttonDonate.BackColor = SystemColors.ControlLight;
buttonDonate.BorderColor = Color.Transparent;
buttonDonate.BorderRadius = 2;
buttonDonate.Dock = DockStyle.Top;
buttonDonate.FlatStyle = FlatStyle.Flat;
buttonDonate.Image = Properties.Resources.icons8_dollar_32;
buttonDonate.ImageAlign = ContentAlignment.MiddleRight;
buttonDonate.Location = new Point(4, 5);
buttonDonate.Margin = new Padding(4, 5, 4, 5);
buttonDonate.Name = "buttonDonate";
buttonDonate.Secondary = true;
buttonDonate.Size = new Size(254, 48);
buttonDonate.TabIndex = 3;
buttonDonate.Text = "&Donate";
buttonDonate.TextImageRelation = TextImageRelation.ImageBeforeText;
buttonDonate.UseVisualStyleBackColor = false;
//
// buttonQuit
//
@@ -548,10 +556,12 @@ namespace GHelper
// checkStartup
//
checkStartup.AutoSize = true;
checkStartup.Location = new Point(28, 11);
checkStartup.Dock = DockStyle.Left;
checkStartup.Location = new Point(20, 0);
checkStartup.Margin = new Padding(11, 5, 11, 5);
checkStartup.Name = "checkStartup";
checkStartup.Size = new Size(206, 36);
checkStartup.Padding = new Padding(10, 0, 0, 0);
checkStartup.Size = new Size(216, 50);
checkStartup.TabIndex = 21;
checkStartup.Text = Properties.Strings.RunOnStartup;
checkStartup.UseVisualStyleBackColor = true;
@@ -710,7 +720,7 @@ namespace GHelper
//
labelPerf.AccessibleRole = AccessibleRole.Caret;
labelPerf.AutoSize = true;
labelPerf.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelPerf.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelPerf.LiveSetting = System.Windows.Forms.Automation.AutomationLiveSetting.Polite;
labelPerf.Location = new Point(40, 0);
labelPerf.Margin = new Padding(8, 0, 8, 0);
@@ -1034,7 +1044,7 @@ namespace GHelper
// labelGPU
//
labelGPU.AutoSize = true;
labelGPU.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelGPU.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelGPU.Location = new Point(40, 0);
labelGPU.Margin = new Padding(8, 0, 8, 0);
labelGPU.Name = "labelGPU";
@@ -1240,7 +1250,7 @@ namespace GHelper
// labelSreen
//
labelSreen.AutoSize = true;
labelSreen.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelSreen.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelSreen.Location = new Point(40, 0);
labelSreen.Margin = new Padding(4, 0, 4, 0);
labelSreen.Name = "labelSreen";
@@ -1269,7 +1279,7 @@ namespace GHelper
//
labelDynamicLighting.Cursor = Cursors.Hand;
labelDynamicLighting.Dock = DockStyle.Top;
labelDynamicLighting.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
labelDynamicLighting.Font = new Font("Segoe UI", 9F);
labelDynamicLighting.ForeColor = SystemColors.GrayText;
labelDynamicLighting.Location = new Point(20, 112);
labelDynamicLighting.Margin = new Padding(4, 0, 4, 0);
@@ -1386,7 +1396,7 @@ namespace GHelper
comboKeyboard.ButtonColor = Color.FromArgb(255, 255, 255);
comboKeyboard.Dock = DockStyle.Top;
comboKeyboard.FlatStyle = FlatStyle.Flat;
comboKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboKeyboard.Font = new Font("Segoe UI", 9F);
comboKeyboard.FormattingEnabled = true;
comboKeyboard.ItemHeight = 32;
comboKeyboard.Items.AddRange(new object[] { "Static", "Breathe", "Rainbow", "Strobe" });
@@ -1418,7 +1428,7 @@ namespace GHelper
buttonFnLock.Dock = DockStyle.Right;
buttonFnLock.FlatAppearance.BorderSize = 0;
buttonFnLock.FlatStyle = FlatStyle.Flat;
buttonFnLock.Font = new Font("Segoe UI", 7.125F, FontStyle.Bold, GraphicsUnit.Point);
buttonFnLock.Font = new Font("Segoe UI", 7.125F, FontStyle.Bold);
buttonFnLock.ForeColor = SystemColors.ControlDark;
buttonFnLock.Location = new Point(675, 0);
buttonFnLock.Margin = new Padding(0);
@@ -1443,7 +1453,7 @@ namespace GHelper
// labelKeyboard
//
labelKeyboard.AutoSize = true;
labelKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelKeyboard.Location = new Point(43, 0);
labelKeyboard.Margin = new Padding(4, 0, 4, 0);
labelKeyboard.Name = "labelKeyboard";
@@ -1451,27 +1461,27 @@ namespace GHelper
labelKeyboard.TabIndex = 34;
labelKeyboard.Text = "Laptop Keyboard";
//
// panelVersion
// panelStartup
//
panelVersion.Controls.Add(labelCharge);
panelVersion.Controls.Add(checkStartup);
panelVersion.Dock = DockStyle.Top;
panelVersion.Location = new Point(11, 1885);
panelVersion.Margin = new Padding(4);
panelVersion.Name = "panelVersion";
panelVersion.Size = new Size(827, 56);
panelVersion.TabIndex = 6;
panelStartup.Controls.Add(labelCharge);
panelStartup.Controls.Add(checkStartup);
panelStartup.Dock = DockStyle.Top;
panelStartup.Location = new Point(11, 1874);
panelStartup.Margin = new Padding(0);
panelStartup.Name = "panelStartup";
panelStartup.Padding = new Padding(20, 0, 20, 0);
panelStartup.Size = new Size(827, 50);
panelStartup.TabIndex = 6;
//
// labelCharge
//
labelCharge.Cursor = Cursors.Hand;
labelCharge.Dock = DockStyle.Right;
labelCharge.ForeColor = SystemColors.ControlDark;
labelCharge.Location = new Point(366, 0);
labelCharge.Location = new Point(346, 0);
labelCharge.Margin = new Padding(0);
labelCharge.Name = "labelCharge";
labelCharge.Padding = new Padding(0, 0, 20, 0);
labelCharge.Size = new Size(461, 56);
labelCharge.Size = new Size(461, 50);
labelCharge.TabIndex = 40;
labelCharge.TextAlign = ContentAlignment.MiddleRight;
//
@@ -1521,7 +1531,7 @@ namespace GHelper
buttonPeripheral3.Dock = DockStyle.Top;
buttonPeripheral3.FlatAppearance.BorderSize = 0;
buttonPeripheral3.FlatStyle = FlatStyle.Flat;
buttonPeripheral3.Font = new Font("Segoe UI", 8F, FontStyle.Regular, GraphicsUnit.Point);
buttonPeripheral3.Font = new Font("Segoe UI", 8F);
buttonPeripheral3.ForeColor = SystemColors.ControlText;
buttonPeripheral3.Image = Properties.Resources.icons8_maus_48;
buttonPeripheral3.ImageAlign = ContentAlignment.MiddleLeft;
@@ -1545,7 +1555,7 @@ namespace GHelper
buttonPeripheral2.Dock = DockStyle.Top;
buttonPeripheral2.FlatAppearance.BorderSize = 0;
buttonPeripheral2.FlatStyle = FlatStyle.Flat;
buttonPeripheral2.Font = new Font("Segoe UI", 8F, FontStyle.Regular, GraphicsUnit.Point);
buttonPeripheral2.Font = new Font("Segoe UI", 8F);
buttonPeripheral2.ForeColor = SystemColors.ControlText;
buttonPeripheral2.Image = Properties.Resources.icons8_maus_48;
buttonPeripheral2.ImageAlign = ContentAlignment.MiddleLeft;
@@ -1569,7 +1579,7 @@ namespace GHelper
buttonPeripheral1.Dock = DockStyle.Top;
buttonPeripheral1.FlatAppearance.BorderSize = 0;
buttonPeripheral1.FlatStyle = FlatStyle.Flat;
buttonPeripheral1.Font = new Font("Segoe UI", 8F, FontStyle.Regular, GraphicsUnit.Point);
buttonPeripheral1.Font = new Font("Segoe UI", 8F);
buttonPeripheral1.ForeColor = SystemColors.ControlText;
buttonPeripheral1.Image = Properties.Resources.icons8_maus_48;
buttonPeripheral1.ImageAlign = ContentAlignment.MiddleLeft;
@@ -1608,7 +1618,7 @@ namespace GHelper
// labelPeripherals
//
labelPeripherals.AutoSize = true;
labelPeripherals.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelPeripherals.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelPeripherals.Location = new Point(44, 0);
labelPeripherals.Margin = new Padding(8, 0, 8, 0);
labelPeripherals.Name = "labelPeripherals";
@@ -1744,7 +1754,7 @@ namespace GHelper
// labelAlly
//
labelAlly.AutoSize = true;
labelAlly.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelAlly.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelAlly.Location = new Point(43, 0);
labelAlly.Margin = new Padding(4, 0, 4, 0);
labelAlly.Name = "labelAlly";
@@ -1834,7 +1844,7 @@ namespace GHelper
comboVisual.ButtonColor = Color.FromArgb(255, 255, 255);
comboVisual.Dock = DockStyle.Top;
comboVisual.FlatStyle = FlatStyle.Flat;
comboVisual.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboVisual.Font = new Font("Segoe UI", 9F);
comboVisual.FormattingEnabled = true;
comboVisual.ItemHeight = 32;
comboVisual.Location = new Point(10, 8);
@@ -1850,7 +1860,7 @@ namespace GHelper
comboColorTemp.ButtonColor = Color.FromArgb(255, 255, 255);
comboColorTemp.Dock = DockStyle.Top;
comboColorTemp.FlatStyle = FlatStyle.Flat;
comboColorTemp.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboColorTemp.Font = new Font("Segoe UI", 9F);
comboColorTemp.FormattingEnabled = true;
comboColorTemp.ItemHeight = 32;
comboColorTemp.Location = new Point(530, 8);
@@ -1866,7 +1876,7 @@ namespace GHelper
comboGamut.ButtonColor = Color.FromArgb(255, 255, 255);
comboGamut.Dock = DockStyle.Top;
comboGamut.FlatStyle = FlatStyle.Flat;
comboGamut.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboGamut.Font = new Font("Segoe UI", 9F);
comboGamut.FormattingEnabled = true;
comboGamut.ItemHeight = 32;
comboGamut.Location = new Point(10, 67);
@@ -1927,7 +1937,7 @@ namespace GHelper
//
// labelGammaTitle
//
labelGammaTitle.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelGammaTitle.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
labelGammaTitle.Location = new Point(43, 0);
labelGammaTitle.Margin = new Padding(4, 0, 4, 0);
labelGammaTitle.Name = "labelGammaTitle";
@@ -1935,15 +1945,44 @@ namespace GHelper
labelGammaTitle.TabIndex = 37;
labelGammaTitle.Text = "Flicker-free Dimming";
//
// panelVersion
//
panelVersion.AutoSize = true;
panelVersion.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panelVersion.Controls.Add(labelVersion);
panelVersion.Dock = DockStyle.Top;
panelVersion.Location = new Point(11, 1924);
panelVersion.MinimumSize = new Size(0, 50);
panelVersion.Name = "panelVersion";
panelVersion.Padding = new Padding(20, 5, 20, 5);
panelVersion.Size = new Size(827, 50);
panelVersion.TabIndex = 10;
//
// labelVersion
//
labelVersion.Cursor = Cursors.Hand;
labelVersion.Dock = DockStyle.Left;
labelVersion.Font = new Font("Segoe UI", 9F, FontStyle.Underline);
labelVersion.ForeColor = SystemColors.ControlDark;
labelVersion.Location = new Point(20, 5);
labelVersion.Margin = new Padding(0);
labelVersion.Name = "labelVersion";
labelVersion.Padding = new Padding(5, 0, 5, 0);
labelVersion.Size = new Size(399, 40);
labelVersion.TabIndex = 38;
labelVersion.Text = "v.0";
labelVersion.TextAlign = ContentAlignment.MiddleLeft;
//
// SettingsForm
//
AutoScaleDimensions = new SizeF(192F, 192F);
AutoScaleMode = AutoScaleMode.Dpi;
AutoSize = true;
AutoSizeMode = AutoSizeMode.GrowAndShrink;
ClientSize = new Size(849, 2045);
ClientSize = new Size(849, 2075);
Controls.Add(panelFooter);
Controls.Add(panelVersion);
Controls.Add(panelStartup);
Controls.Add(panelBattery);
Controls.Add(panelPeripherals);
Controls.Add(panelKeyboard);
@@ -2008,8 +2047,8 @@ namespace GHelper
panelKeyboardTitle.ResumeLayout(false);
panelKeyboardTitle.PerformLayout();
((System.ComponentModel.ISupportInitialize)pictureKeyboard).EndInit();
panelVersion.ResumeLayout(false);
panelVersion.PerformLayout();
panelStartup.ResumeLayout(false);
panelStartup.PerformLayout();
panelPeripherals.ResumeLayout(false);
panelPeripherals.PerformLayout();
tableLayoutPeripherals.ResumeLayout(false);
@@ -2027,6 +2066,7 @@ namespace GHelper
tableVisual.ResumeLayout(false);
panelGammaTitle.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)pictureGamma).EndInit();
panelVersion.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
}
@@ -2093,8 +2133,7 @@ namespace GHelper
private Label labelBattery;
private PictureBox pictureBattery;
private Label labelBatteryTitle;
private Panel panelVersion;
private Label labelVersion;
private Panel panelStartup;
private RButton buttonStopGPU;
private TableLayoutPanel tableButtons;
private Panel panelPeripherals;
@@ -2139,5 +2178,8 @@ namespace GHelper
private RButton buttonFHD;
private RButton buttonAutoTDP;
private Label labelDynamicLighting;
private Panel panelVersion;
private Label labelVersion;
private RButton buttonDonate;
}
}