Button to download Color Profiles

This commit is contained in:
Serge
2024-03-10 17:04:44 +01:00
parent b1f6754dae
commit 8ec97da829
8 changed files with 662 additions and 49 deletions

View File

@@ -124,6 +124,8 @@ namespace GHelper
labelAlly = new Label();
panelGamma = new Panel();
tableVisual = new TableLayoutPanel();
buttonInstallColor = new RButton();
comboColorTemp = new RComboBox();
comboVisual = new RComboBox();
comboGamut = new RComboBox();
sliderGamma = new Slider();
@@ -131,7 +133,6 @@ namespace GHelper
labelGamma = new Label();
pictureGamma = new PictureBox();
labelGammaTitle = new Label();
comboColorTemp = new RComboBox();
panelMatrix.SuspendLayout();
panelMatrixAuto.SuspendLayout();
tableLayoutMatrix.SuspendLayout();
@@ -186,7 +187,7 @@ namespace GHelper
panelMatrix.Controls.Add(tableLayoutMatrix);
panelMatrix.Controls.Add(panelMatrixTitle);
panelMatrix.Dock = DockStyle.Top;
panelMatrix.Location = new Point(11, 1000);
panelMatrix.Location = new Point(11, 1027);
panelMatrix.Margin = new Padding(0);
panelMatrix.Name = "panelMatrix";
panelMatrix.Padding = new Padding(20, 20, 20, 10);
@@ -361,7 +362,7 @@ namespace GHelper
panelBattery.Controls.Add(sliderBattery);
panelBattery.Controls.Add(panelBatteryTitle);
panelBattery.Dock = DockStyle.Top;
panelBattery.Location = new Point(11, 1676);
panelBattery.Location = new Point(11, 1703);
panelBattery.Margin = new Padding(0);
panelBattery.Name = "panelBattery";
panelBattery.Padding = new Padding(20, 20, 20, 10);
@@ -453,7 +454,7 @@ namespace GHelper
panelFooter.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panelFooter.Controls.Add(tableButtons);
panelFooter.Dock = DockStyle.Top;
panelFooter.Location = new Point(11, 1851);
panelFooter.Location = new Point(11, 1878);
panelFooter.Margin = new Padding(0);
panelFooter.Name = "panelFooter";
panelFooter.Padding = new Padding(20);
@@ -1200,7 +1201,7 @@ namespace GHelper
panelKeyboard.Controls.Add(tableLayoutKeyboard);
panelKeyboard.Controls.Add(panelKeyboardTitle);
panelKeyboard.Dock = DockStyle.Top;
panelKeyboard.Location = new Point(11, 1334);
panelKeyboard.Location = new Point(11, 1361);
panelKeyboard.Margin = new Padding(0);
panelKeyboard.Name = "panelKeyboard";
panelKeyboard.Padding = new Padding(20);
@@ -1376,7 +1377,7 @@ namespace GHelper
panelVersion.Controls.Add(labelCharge);
panelVersion.Controls.Add(checkStartup);
panelVersion.Dock = DockStyle.Top;
panelVersion.Location = new Point(11, 1795);
panelVersion.Location = new Point(11, 1822);
panelVersion.Margin = new Padding(4);
panelVersion.Name = "panelVersion";
panelVersion.Size = new Size(827, 56);
@@ -1401,7 +1402,7 @@ namespace GHelper
panelPeripherals.Controls.Add(tableLayoutPeripherals);
panelPeripherals.Controls.Add(panelPeripheralsTile);
panelPeripherals.Dock = DockStyle.Top;
panelPeripherals.Location = new Point(11, 1478);
panelPeripherals.Location = new Point(11, 1505);
panelPeripherals.Margin = new Padding(0);
panelPeripherals.Name = "panelPeripherals";
panelPeripherals.Padding = new Padding(20, 20, 20, 10);
@@ -1543,7 +1544,7 @@ namespace GHelper
panelAlly.Controls.Add(tableLayoutAlly);
panelAlly.Controls.Add(panelAllyTitle);
panelAlly.Dock = DockStyle.Top;
panelAlly.Location = new Point(11, 1194);
panelAlly.Location = new Point(11, 1221);
panelAlly.Margin = new Padding(0);
panelAlly.Name = "panelAlly";
panelAlly.Padding = new Padding(20, 20, 20, 0);
@@ -1683,7 +1684,7 @@ namespace GHelper
panelGamma.Margin = new Padding(0);
panelGamma.Name = "panelGamma";
panelGamma.Padding = new Padding(20, 20, 20, 10);
panelGamma.Size = new Size(827, 173);
panelGamma.Size = new Size(827, 200);
panelGamma.TabIndex = 9;
panelGamma.Visible = false;
//
@@ -1692,9 +1693,10 @@ namespace GHelper
tableVisual.AutoSize = true;
tableVisual.AutoSizeMode = AutoSizeMode.GrowAndShrink;
tableVisual.ColumnCount = 3;
tableVisual.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
tableVisual.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
tableVisual.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
tableVisual.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F));
tableVisual.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F));
tableVisual.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F));
tableVisual.Controls.Add(buttonInstallColor, 0, 0);
tableVisual.Controls.Add(comboColorTemp, 0, 0);
tableVisual.Controls.Add(comboVisual, 0, 0);
tableVisual.Controls.Add(comboGamut, 0, 0);
@@ -1704,10 +1706,49 @@ namespace GHelper
tableVisual.Name = "tableVisual";
tableVisual.RowCount = 1;
tableVisual.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
tableVisual.Size = new Size(787, 59);
tableVisual.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
tableVisual.Size = new Size(787, 86);
tableVisual.TabIndex = 41;
tableVisual.Visible = false;
//
// buttonInstallColor
//
buttonInstallColor.Activated = false;
buttonInstallColor.BackColor = SystemColors.ControlLight;
buttonInstallColor.BorderColor = Color.Transparent;
buttonInstallColor.BorderRadius = 2;
buttonInstallColor.Dock = DockStyle.Top;
buttonInstallColor.FlatAppearance.BorderSize = 0;
buttonInstallColor.FlatStyle = FlatStyle.Flat;
buttonInstallColor.Image = Properties.Resources.icons8_color_32;
buttonInstallColor.ImageAlign = ContentAlignment.MiddleRight;
buttonInstallColor.Location = new Point(528, 8);
buttonInstallColor.Margin = new Padding(4, 8, 4, 8);
buttonInstallColor.Name = "buttonInstallColor";
buttonInstallColor.Secondary = true;
buttonInstallColor.Size = new Size(255, 50);
buttonInstallColor.TabIndex = 38;
buttonInstallColor.Text = "Install Colors";
buttonInstallColor.TextImageRelation = TextImageRelation.ImageBeforeText;
buttonInstallColor.UseVisualStyleBackColor = false;
buttonInstallColor.Visible = false;
//
// comboColorTemp
//
comboColorTemp.BorderColor = Color.White;
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.FormattingEnabled = true;
comboColorTemp.ItemHeight = 32;
comboColorTemp.Location = new Point(4, 77);
comboColorTemp.Margin = new Padding(4, 11, 4, 8);
comboColorTemp.Name = "comboColorTemp";
comboColorTemp.Size = new Size(254, 40);
comboColorTemp.TabIndex = 15;
comboColorTemp.Visible = false;
//
// comboVisual
//
comboVisual.BorderColor = Color.White;
@@ -1717,7 +1758,7 @@ namespace GHelper
comboVisual.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboVisual.FormattingEnabled = true;
comboVisual.ItemHeight = 32;
comboVisual.Location = new Point(266, 11);
comboVisual.Location = new Point(4, 11);
comboVisual.Margin = new Padding(4, 11, 4, 8);
comboVisual.Name = "comboVisual";
comboVisual.Size = new Size(254, 40);
@@ -1733,7 +1774,7 @@ namespace GHelper
comboGamut.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboGamut.FormattingEnabled = true;
comboGamut.ItemHeight = 32;
comboGamut.Location = new Point(4, 11);
comboGamut.Location = new Point(266, 11);
comboGamut.Margin = new Padding(4, 11, 4, 8);
comboGamut.Name = "comboGamut";
comboGamut.Size = new Size(254, 40);
@@ -1800,22 +1841,6 @@ namespace GHelper
labelGammaTitle.TabIndex = 37;
labelGammaTitle.Text = "Flicker-free Dimming";
//
// comboColorTemp
//
comboColorTemp.BorderColor = Color.White;
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.FormattingEnabled = true;
comboColorTemp.ItemHeight = 32;
comboColorTemp.Location = new Point(528, 11);
comboColorTemp.Margin = new Padding(4, 11, 4, 8);
comboColorTemp.Name = "comboColorTemp";
comboColorTemp.Size = new Size(255, 40);
comboColorTemp.TabIndex = 15;
comboColorTemp.Visible = false;
//
// SettingsForm
//
AutoScaleDimensions = new SizeF(192F, 192F);
@@ -2013,5 +2038,6 @@ namespace GHelper
private RComboBox comboVisual;
private RComboBox comboGamut;
private RComboBox comboColorTemp;
private RButton buttonInstallColor;
}
}