Mouse UI Fixes (#2173)

* Support for Strix Carry (P508)

* Fixes polling rate, angle snapping and debounce for Gladius II Origin.

* The Gen2 version of the TuF M3 uses 0-100 for brightness.

* Adds support for ROG Strix Impact III (P518)

* Import/Export feature for mice.

* Suppor for Strix Impact (P303)

* Support for Strix Impact II Electro Punk

* Strix Carry has 50 DPI minimum and increments of 50.

* Respect top-most setting of GHelper

* Fixes to the buttons to be wider to fit longer translations.
This commit is contained in:
IceStormNG
2024-03-07 14:15:01 +01:00
committed by GitHub
parent 35ceea878f
commit c7db5a403c
2 changed files with 62 additions and 62 deletions

View File

@@ -152,7 +152,7 @@
// //
panelProfiles.Controls.Add(comboProfile); panelProfiles.Controls.Add(comboProfile);
panelProfiles.Controls.Add(labelProfile); panelProfiles.Controls.Add(labelProfile);
panelProfiles.Location = new Point(212, 2); panelProfiles.Location = new Point(220, 2);
panelProfiles.Margin = new Padding(2); panelProfiles.Margin = new Padding(2);
panelProfiles.MinimumSize = new Size(227, 0); panelProfiles.MinimumSize = new Size(227, 0);
panelProfiles.Name = "panelProfiles"; panelProfiles.Name = "panelProfiles";
@@ -197,7 +197,7 @@
panelPerformance.Margin = new Padding(2); panelPerformance.Margin = new Padding(2);
panelPerformance.Name = "panelPerformance"; panelPerformance.Name = "panelPerformance";
panelPerformance.Padding = new Padding(0, 7, 0, 17); panelPerformance.Padding = new Padding(0, 7, 0, 17);
panelPerformance.Size = new Size(420, 370); panelPerformance.Size = new Size(437, 370);
panelPerformance.TabIndex = 1; panelPerformance.TabIndex = 1;
// //
// panelPerformanceOther // panelPerformanceOther
@@ -215,7 +215,7 @@
panelPerformanceOther.Margin = new Padding(2); panelPerformanceOther.Margin = new Padding(2);
panelPerformanceOther.Name = "panelPerformanceOther"; panelPerformanceOther.Name = "panelPerformanceOther";
panelPerformanceOther.Padding = new Padding(0, 7, 0, 7); panelPerformanceOther.Padding = new Padding(0, 7, 0, 7);
panelPerformanceOther.Size = new Size(420, 192); panelPerformanceOther.Size = new Size(437, 192);
panelPerformanceOther.TabIndex = 49; panelPerformanceOther.TabIndex = 49;
// //
// panelDeceleration // panelDeceleration
@@ -230,7 +230,7 @@
panelDeceleration.Margin = new Padding(2); panelDeceleration.Margin = new Padding(2);
panelDeceleration.Name = "panelDeceleration"; panelDeceleration.Name = "panelDeceleration";
panelDeceleration.Padding = new Padding(3); panelDeceleration.Padding = new Padding(3);
panelDeceleration.Size = new Size(420, 31); panelDeceleration.Size = new Size(437, 31);
panelDeceleration.TabIndex = 58; panelDeceleration.TabIndex = 58;
// //
// labelDeceleration // labelDeceleration
@@ -279,7 +279,7 @@
panelAcceleration.Margin = new Padding(2); panelAcceleration.Margin = new Padding(2);
panelAcceleration.Name = "panelAcceleration"; panelAcceleration.Name = "panelAcceleration";
panelAcceleration.Padding = new Padding(3); panelAcceleration.Padding = new Padding(3);
panelAcceleration.Size = new Size(420, 31); panelAcceleration.Size = new Size(437, 31);
panelAcceleration.TabIndex = 57; panelAcceleration.TabIndex = 57;
// //
// labelAcceleration // labelAcceleration
@@ -327,7 +327,7 @@
panelLiftOffDistance.Margin = new Padding(2); panelLiftOffDistance.Margin = new Padding(2);
panelLiftOffDistance.Name = "panelLiftOffDistance"; panelLiftOffDistance.Name = "panelLiftOffDistance";
panelLiftOffDistance.Padding = new Padding(3); panelLiftOffDistance.Padding = new Padding(3);
panelLiftOffDistance.Size = new Size(420, 29); panelLiftOffDistance.Size = new Size(437, 29);
panelLiftOffDistance.TabIndex = 56; panelLiftOffDistance.TabIndex = 56;
// //
// labelLiftOffDistance // labelLiftOffDistance
@@ -364,7 +364,7 @@
panelDebounce.Margin = new Padding(2); panelDebounce.Margin = new Padding(2);
panelDebounce.Name = "panelDebounce"; panelDebounce.Name = "panelDebounce";
panelDebounce.Padding = new Padding(3); panelDebounce.Padding = new Padding(3);
panelDebounce.Size = new Size(420, 31); panelDebounce.Size = new Size(437, 31);
panelDebounce.TabIndex = 55; panelDebounce.TabIndex = 55;
// //
// labelButtonDebounce // labelButtonDebounce
@@ -413,7 +413,7 @@
panelAngleSnapping.Margin = new Padding(2); panelAngleSnapping.Margin = new Padding(2);
panelAngleSnapping.Name = "panelAngleSnapping"; panelAngleSnapping.Name = "panelAngleSnapping";
panelAngleSnapping.Padding = new Padding(3); panelAngleSnapping.Padding = new Padding(3);
panelAngleSnapping.Size = new Size(420, 29); panelAngleSnapping.Size = new Size(437, 29);
panelAngleSnapping.TabIndex = 54; panelAngleSnapping.TabIndex = 54;
// //
// sliderAngleAdjustment // sliderAngleAdjustment
@@ -464,7 +464,7 @@
panelPollingRate.Margin = new Padding(2); panelPollingRate.Margin = new Padding(2);
panelPollingRate.Name = "panelPollingRate"; panelPollingRate.Name = "panelPollingRate";
panelPollingRate.Padding = new Padding(3); panelPollingRate.Padding = new Padding(3);
panelPollingRate.Size = new Size(420, 27); panelPollingRate.Size = new Size(437, 27);
panelPollingRate.TabIndex = 53; panelPollingRate.TabIndex = 53;
// //
// labelPollingRate // labelPollingRate
@@ -500,7 +500,7 @@
panelDPISettings.Location = new Point(0, 91); panelDPISettings.Location = new Point(0, 91);
panelDPISettings.Margin = new Padding(2); panelDPISettings.Margin = new Padding(2);
panelDPISettings.Name = "panelDPISettings"; panelDPISettings.Name = "panelDPISettings";
panelDPISettings.Size = new Size(420, 70); panelDPISettings.Size = new Size(437, 70);
panelDPISettings.TabIndex = 44; panelDPISettings.TabIndex = 44;
// //
// sliderDPI // sliderDPI
@@ -512,7 +512,7 @@
sliderDPI.Max = 35000; sliderDPI.Max = 35000;
sliderDPI.Min = 100; sliderDPI.Min = 100;
sliderDPI.Name = "sliderDPI"; sliderDPI.Name = "sliderDPI";
sliderDPI.Size = new Size(420, 20); sliderDPI.Size = new Size(437, 20);
sliderDPI.Step = 50; sliderDPI.Step = 50;
sliderDPI.TabIndex = 43; sliderDPI.TabIndex = 43;
sliderDPI.TabStop = false; sliderDPI.TabStop = false;
@@ -537,7 +537,7 @@
tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.Name = "tableLayoutPanel1";
tableLayoutPanel1.RowCount = 1; tableLayoutPanel1.RowCount = 1;
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
tableLayoutPanel1.Size = new Size(420, 23); tableLayoutPanel1.Size = new Size(437, 23);
tableLayoutPanel1.TabIndex = 47; tableLayoutPanel1.TabIndex = 47;
// //
// labelMinDPI // labelMinDPI
@@ -547,7 +547,7 @@
labelMinDPI.Location = new Point(4, 0); labelMinDPI.Location = new Point(4, 0);
labelMinDPI.Margin = new Padding(4, 0, 4, 0); labelMinDPI.Margin = new Padding(4, 0, 4, 0);
labelMinDPI.Name = "labelMinDPI"; labelMinDPI.Name = "labelMinDPI";
labelMinDPI.Size = new Size(151, 23); labelMinDPI.Size = new Size(158, 23);
labelMinDPI.TabIndex = 45; labelMinDPI.TabIndex = 45;
labelMinDPI.Text = "100"; labelMinDPI.Text = "100";
// //
@@ -555,10 +555,10 @@
// //
labelMaxDPI.Dock = DockStyle.Fill; labelMaxDPI.Dock = DockStyle.Fill;
labelMaxDPI.ForeColor = SystemColors.GrayText; labelMaxDPI.ForeColor = SystemColors.GrayText;
labelMaxDPI.Location = new Point(263, 0); labelMaxDPI.Location = new Point(274, 0);
labelMaxDPI.Margin = new Padding(4, 0, 4, 0); labelMaxDPI.Margin = new Padding(4, 0, 4, 0);
labelMaxDPI.Name = "labelMaxDPI"; labelMaxDPI.Name = "labelMaxDPI";
labelMaxDPI.Size = new Size(153, 23); labelMaxDPI.Size = new Size(159, 23);
labelMaxDPI.TabIndex = 46; labelMaxDPI.TabIndex = 46;
labelMaxDPI.Text = " 35000"; labelMaxDPI.Text = " 35000";
labelMaxDPI.TextAlign = ContentAlignment.TopRight; labelMaxDPI.TextAlign = ContentAlignment.TopRight;
@@ -568,12 +568,12 @@
numericUpDownCurrentDPI.BorderStyle = BorderStyle.None; numericUpDownCurrentDPI.BorderStyle = BorderStyle.None;
numericUpDownCurrentDPI.Dock = DockStyle.Fill; numericUpDownCurrentDPI.Dock = DockStyle.Fill;
numericUpDownCurrentDPI.Increment = new decimal(new int[] { 50, 0, 0, 0 }); numericUpDownCurrentDPI.Increment = new decimal(new int[] { 50, 0, 0, 0 });
numericUpDownCurrentDPI.Location = new Point(161, 2); numericUpDownCurrentDPI.Location = new Point(168, 2);
numericUpDownCurrentDPI.Margin = new Padding(2); numericUpDownCurrentDPI.Margin = new Padding(2);
numericUpDownCurrentDPI.Maximum = new decimal(new int[] { 35000, 0, 0, 0 }); numericUpDownCurrentDPI.Maximum = new decimal(new int[] { 35000, 0, 0, 0 });
numericUpDownCurrentDPI.Minimum = new decimal(new int[] { 100, 0, 0, 0 }); numericUpDownCurrentDPI.Minimum = new decimal(new int[] { 100, 0, 0, 0 });
numericUpDownCurrentDPI.Name = "numericUpDownCurrentDPI"; numericUpDownCurrentDPI.Name = "numericUpDownCurrentDPI";
numericUpDownCurrentDPI.Size = new Size(96, 19); numericUpDownCurrentDPI.Size = new Size(100, 19);
numericUpDownCurrentDPI.TabIndex = 47; numericUpDownCurrentDPI.TabIndex = 47;
numericUpDownCurrentDPI.TextAlign = HorizontalAlignment.Center; numericUpDownCurrentDPI.TextAlign = HorizontalAlignment.Center;
numericUpDownCurrentDPI.Value = new decimal(new int[] { 2000, 0, 0, 0 }); numericUpDownCurrentDPI.Value = new decimal(new int[] { 2000, 0, 0, 0 });
@@ -588,13 +588,13 @@
panelDPITile.Margin = new Padding(2); panelDPITile.Margin = new Padding(2);
panelDPITile.Name = "panelDPITile"; panelDPITile.Name = "panelDPITile";
panelDPITile.Padding = new Padding(0, 3, 0, 3); panelDPITile.Padding = new Padding(0, 3, 0, 3);
panelDPITile.Size = new Size(420, 27); panelDPITile.Size = new Size(437, 27);
panelDPITile.TabIndex = 48; panelDPITile.TabIndex = 48;
// //
// pictureDPIColor // pictureDPIColor
// //
pictureDPIColor.Anchor = AnchorStyles.Top | AnchorStyles.Right; pictureDPIColor.Anchor = AnchorStyles.Top | AnchorStyles.Right;
pictureDPIColor.Location = new Point(395, 7); pictureDPIColor.Location = new Point(412, 7);
pictureDPIColor.Margin = new Padding(4); pictureDPIColor.Margin = new Padding(4);
pictureDPIColor.Name = "pictureDPIColor"; pictureDPIColor.Name = "pictureDPIColor";
pictureDPIColor.Size = new Size(10, 10); pictureDPIColor.Size = new Size(10, 10);
@@ -612,7 +612,7 @@
buttonDPIColor.BorderRadius = 2; buttonDPIColor.BorderRadius = 2;
buttonDPIColor.FlatStyle = FlatStyle.Flat; buttonDPIColor.FlatStyle = FlatStyle.Flat;
buttonDPIColor.ForeColor = SystemColors.ControlText; buttonDPIColor.ForeColor = SystemColors.ControlText;
buttonDPIColor.Location = new Point(291, 1); buttonDPIColor.Location = new Point(308, 1);
buttonDPIColor.Margin = new Padding(2, 4, 2, 4); buttonDPIColor.Margin = new Padding(2, 4, 2, 4);
buttonDPIColor.Name = "buttonDPIColor"; buttonDPIColor.Name = "buttonDPIColor";
buttonDPIColor.Secondary = false; buttonDPIColor.Secondary = false;
@@ -653,7 +653,7 @@
tableDPI.RowCount = 1; tableDPI.RowCount = 1;
tableDPI.RowStyles.Add(new RowStyle(SizeType.Absolute, 64F)); tableDPI.RowStyles.Add(new RowStyle(SizeType.Absolute, 64F));
tableDPI.RowStyles.Add(new RowStyle(SizeType.Absolute, 64F)); tableDPI.RowStyles.Add(new RowStyle(SizeType.Absolute, 64F));
tableDPI.Size = new Size(420, 64); tableDPI.Size = new Size(437, 64);
tableDPI.TabIndex = 42; tableDPI.TabIndex = 42;
// //
// buttonDPI2 // buttonDPI2
@@ -669,11 +669,11 @@
buttonDPI2.ForeColor = SystemColors.ControlText; buttonDPI2.ForeColor = SystemColors.ControlText;
buttonDPI2.Image = Properties.Resources.lighting_dot_32; buttonDPI2.Image = Properties.Resources.lighting_dot_32;
buttonDPI2.ImageAlign = ContentAlignment.BottomCenter; buttonDPI2.ImageAlign = ContentAlignment.BottomCenter;
buttonDPI2.Location = new Point(107, 2); buttonDPI2.Location = new Point(111, 2);
buttonDPI2.Margin = new Padding(2); buttonDPI2.Margin = new Padding(2);
buttonDPI2.Name = "buttonDPI2"; buttonDPI2.Name = "buttonDPI2";
buttonDPI2.Secondary = false; buttonDPI2.Secondary = false;
buttonDPI2.Size = new Size(101, 60); buttonDPI2.Size = new Size(105, 60);
buttonDPI2.TabIndex = 4; buttonDPI2.TabIndex = 4;
buttonDPI2.Text = "DPI 2\r\n1000"; buttonDPI2.Text = "DPI 2\r\n1000";
buttonDPI2.TextImageRelation = TextImageRelation.ImageAboveText; buttonDPI2.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -696,7 +696,7 @@
buttonDPI1.Margin = new Padding(2); buttonDPI1.Margin = new Padding(2);
buttonDPI1.Name = "buttonDPI1"; buttonDPI1.Name = "buttonDPI1";
buttonDPI1.Secondary = false; buttonDPI1.Secondary = false;
buttonDPI1.Size = new Size(101, 60); buttonDPI1.Size = new Size(105, 60);
buttonDPI1.TabIndex = 4; buttonDPI1.TabIndex = 4;
buttonDPI1.Text = "DPI 1\r\n800"; buttonDPI1.Text = "DPI 1\r\n800";
buttonDPI1.TextImageRelation = TextImageRelation.ImageAboveText; buttonDPI1.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -715,11 +715,11 @@
buttonDPI3.ForeColor = SystemColors.ControlText; buttonDPI3.ForeColor = SystemColors.ControlText;
buttonDPI3.Image = Properties.Resources.lighting_dot_32; buttonDPI3.Image = Properties.Resources.lighting_dot_32;
buttonDPI3.ImageAlign = ContentAlignment.BottomCenter; buttonDPI3.ImageAlign = ContentAlignment.BottomCenter;
buttonDPI3.Location = new Point(212, 2); buttonDPI3.Location = new Point(220, 2);
buttonDPI3.Margin = new Padding(2); buttonDPI3.Margin = new Padding(2);
buttonDPI3.Name = "buttonDPI3"; buttonDPI3.Name = "buttonDPI3";
buttonDPI3.Secondary = false; buttonDPI3.Secondary = false;
buttonDPI3.Size = new Size(101, 60); buttonDPI3.Size = new Size(105, 60);
buttonDPI3.TabIndex = 5; buttonDPI3.TabIndex = 5;
buttonDPI3.Text = "DPI 3\r\n1200"; buttonDPI3.Text = "DPI 3\r\n1200";
buttonDPI3.TextImageRelation = TextImageRelation.ImageAboveText; buttonDPI3.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -738,11 +738,11 @@
buttonDPI4.ForeColor = SystemColors.ControlText; buttonDPI4.ForeColor = SystemColors.ControlText;
buttonDPI4.Image = Properties.Resources.lighting_dot_32; buttonDPI4.Image = Properties.Resources.lighting_dot_32;
buttonDPI4.ImageAlign = ContentAlignment.BottomCenter; buttonDPI4.ImageAlign = ContentAlignment.BottomCenter;
buttonDPI4.Location = new Point(317, 2); buttonDPI4.Location = new Point(329, 2);
buttonDPI4.Margin = new Padding(2); buttonDPI4.Margin = new Padding(2);
buttonDPI4.Name = "buttonDPI4"; buttonDPI4.Name = "buttonDPI4";
buttonDPI4.Secondary = false; buttonDPI4.Secondary = false;
buttonDPI4.Size = new Size(101, 60); buttonDPI4.Size = new Size(106, 60);
buttonDPI4.TabIndex = 6; buttonDPI4.TabIndex = 6;
buttonDPI4.Text = "DPI 4\r\n1400"; buttonDPI4.Text = "DPI 4\r\n1400";
buttonDPI4.TextImageRelation = TextImageRelation.ImageAboveText; buttonDPI4.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -757,7 +757,7 @@
panelPerformanceHeader.Location = new Point(0, 7); panelPerformanceHeader.Location = new Point(0, 7);
panelPerformanceHeader.Margin = new Padding(2); panelPerformanceHeader.Margin = new Padding(2);
panelPerformanceHeader.Name = "panelPerformanceHeader"; panelPerformanceHeader.Name = "panelPerformanceHeader";
panelPerformanceHeader.Size = new Size(420, 20); panelPerformanceHeader.Size = new Size(437, 20);
panelPerformanceHeader.TabIndex = 41; panelPerformanceHeader.TabIndex = 41;
// //
// pictureKeyboard // pictureKeyboard
@@ -793,7 +793,7 @@
panelLighting.Margin = new Padding(2); panelLighting.Margin = new Padding(2);
panelLighting.Name = "panelLighting"; panelLighting.Name = "panelLighting";
panelLighting.Padding = new Padding(0, 0, 0, 17); panelLighting.Padding = new Padding(0, 0, 0, 17);
panelLighting.Size = new Size(420, 220); panelLighting.Size = new Size(437, 220);
panelLighting.TabIndex = 42; panelLighting.TabIndex = 42;
// //
// panelLightingContent // panelLightingContent
@@ -814,7 +814,7 @@
panelLightingContent.Margin = new Padding(2); panelLightingContent.Margin = new Padding(2);
panelLightingContent.Name = "panelLightingContent"; panelLightingContent.Name = "panelLightingContent";
panelLightingContent.Padding = new Padding(0, 0, 0, 7); panelLightingContent.Padding = new Padding(0, 0, 0, 7);
panelLightingContent.Size = new Size(420, 183); panelLightingContent.Size = new Size(437, 183);
panelLightingContent.TabIndex = 42; panelLightingContent.TabIndex = 42;
// //
// tableLayoutLightingZones // tableLayoutLightingZones
@@ -838,7 +838,7 @@
tableLayoutLightingZones.Name = "tableLayoutLightingZones"; tableLayoutLightingZones.Name = "tableLayoutLightingZones";
tableLayoutLightingZones.RowCount = 1; tableLayoutLightingZones.RowCount = 1;
tableLayoutLightingZones.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F)); tableLayoutLightingZones.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F));
tableLayoutLightingZones.Size = new Size(420, 40); tableLayoutLightingZones.Size = new Size(437, 40);
tableLayoutLightingZones.TabIndex = 56; tableLayoutLightingZones.TabIndex = 56;
// //
// buttonLightingZoneScroll // buttonLightingZoneScroll
@@ -855,11 +855,11 @@
buttonLightingZoneScroll.FlatStyle = FlatStyle.Flat; buttonLightingZoneScroll.FlatStyle = FlatStyle.Flat;
buttonLightingZoneScroll.ForeColor = SystemColors.ControlText; buttonLightingZoneScroll.ForeColor = SystemColors.ControlText;
buttonLightingZoneScroll.ImageAlign = ContentAlignment.BottomCenter; buttonLightingZoneScroll.ImageAlign = ContentAlignment.BottomCenter;
buttonLightingZoneScroll.Location = new Point(170, 2); buttonLightingZoneScroll.Location = new Point(176, 2);
buttonLightingZoneScroll.Margin = new Padding(2); buttonLightingZoneScroll.Margin = new Padding(2);
buttonLightingZoneScroll.Name = "buttonLightingZoneScroll"; buttonLightingZoneScroll.Name = "buttonLightingZoneScroll";
buttonLightingZoneScroll.Secondary = false; buttonLightingZoneScroll.Secondary = false;
buttonLightingZoneScroll.Size = new Size(80, 36); buttonLightingZoneScroll.Size = new Size(83, 36);
buttonLightingZoneScroll.TabIndex = 7; buttonLightingZoneScroll.TabIndex = 7;
buttonLightingZoneScroll.Text = "Scrollwheel"; buttonLightingZoneScroll.Text = "Scrollwheel";
buttonLightingZoneScroll.TextImageRelation = TextImageRelation.ImageAboveText; buttonLightingZoneScroll.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -879,11 +879,11 @@
buttonLightingZoneLogo.FlatStyle = FlatStyle.Flat; buttonLightingZoneLogo.FlatStyle = FlatStyle.Flat;
buttonLightingZoneLogo.ForeColor = SystemColors.ControlText; buttonLightingZoneLogo.ForeColor = SystemColors.ControlText;
buttonLightingZoneLogo.ImageAlign = ContentAlignment.BottomCenter; buttonLightingZoneLogo.ImageAlign = ContentAlignment.BottomCenter;
buttonLightingZoneLogo.Location = new Point(86, 2); buttonLightingZoneLogo.Location = new Point(89, 2);
buttonLightingZoneLogo.Margin = new Padding(2); buttonLightingZoneLogo.Margin = new Padding(2);
buttonLightingZoneLogo.Name = "buttonLightingZoneLogo"; buttonLightingZoneLogo.Name = "buttonLightingZoneLogo";
buttonLightingZoneLogo.Secondary = false; buttonLightingZoneLogo.Secondary = false;
buttonLightingZoneLogo.Size = new Size(80, 36); buttonLightingZoneLogo.Size = new Size(83, 36);
buttonLightingZoneLogo.TabIndex = 4; buttonLightingZoneLogo.TabIndex = 4;
buttonLightingZoneLogo.Text = "Logo"; buttonLightingZoneLogo.Text = "Logo";
buttonLightingZoneLogo.TextImageRelation = TextImageRelation.ImageAboveText; buttonLightingZoneLogo.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -907,7 +907,7 @@
buttonLightingZoneAll.Margin = new Padding(2); buttonLightingZoneAll.Margin = new Padding(2);
buttonLightingZoneAll.Name = "buttonLightingZoneAll"; buttonLightingZoneAll.Name = "buttonLightingZoneAll";
buttonLightingZoneAll.Secondary = false; buttonLightingZoneAll.Secondary = false;
buttonLightingZoneAll.Size = new Size(80, 36); buttonLightingZoneAll.Size = new Size(83, 36);
buttonLightingZoneAll.TabIndex = 4; buttonLightingZoneAll.TabIndex = 4;
buttonLightingZoneAll.Text = "All"; buttonLightingZoneAll.Text = "All";
buttonLightingZoneAll.TextImageRelation = TextImageRelation.ImageAboveText; buttonLightingZoneAll.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -927,11 +927,11 @@
buttonLightingZoneUnderglow.FlatStyle = FlatStyle.Flat; buttonLightingZoneUnderglow.FlatStyle = FlatStyle.Flat;
buttonLightingZoneUnderglow.ForeColor = SystemColors.ControlText; buttonLightingZoneUnderglow.ForeColor = SystemColors.ControlText;
buttonLightingZoneUnderglow.ImageAlign = ContentAlignment.BottomCenter; buttonLightingZoneUnderglow.ImageAlign = ContentAlignment.BottomCenter;
buttonLightingZoneUnderglow.Location = new Point(254, 2); buttonLightingZoneUnderglow.Location = new Point(263, 2);
buttonLightingZoneUnderglow.Margin = new Padding(2); buttonLightingZoneUnderglow.Margin = new Padding(2);
buttonLightingZoneUnderglow.Name = "buttonLightingZoneUnderglow"; buttonLightingZoneUnderglow.Name = "buttonLightingZoneUnderglow";
buttonLightingZoneUnderglow.Secondary = false; buttonLightingZoneUnderglow.Secondary = false;
buttonLightingZoneUnderglow.Size = new Size(80, 36); buttonLightingZoneUnderglow.Size = new Size(83, 36);
buttonLightingZoneUnderglow.TabIndex = 5; buttonLightingZoneUnderglow.TabIndex = 5;
buttonLightingZoneUnderglow.Text = "Underglow"; buttonLightingZoneUnderglow.Text = "Underglow";
buttonLightingZoneUnderglow.TextImageRelation = TextImageRelation.ImageAboveText; buttonLightingZoneUnderglow.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -951,11 +951,11 @@
buttonLightingZoneDock.FlatStyle = FlatStyle.Flat; buttonLightingZoneDock.FlatStyle = FlatStyle.Flat;
buttonLightingZoneDock.ForeColor = SystemColors.ControlText; buttonLightingZoneDock.ForeColor = SystemColors.ControlText;
buttonLightingZoneDock.ImageAlign = ContentAlignment.BottomCenter; buttonLightingZoneDock.ImageAlign = ContentAlignment.BottomCenter;
buttonLightingZoneDock.Location = new Point(338, 2); buttonLightingZoneDock.Location = new Point(350, 2);
buttonLightingZoneDock.Margin = new Padding(2); buttonLightingZoneDock.Margin = new Padding(2);
buttonLightingZoneDock.Name = "buttonLightingZoneDock"; buttonLightingZoneDock.Name = "buttonLightingZoneDock";
buttonLightingZoneDock.Secondary = false; buttonLightingZoneDock.Secondary = false;
buttonLightingZoneDock.Size = new Size(80, 36); buttonLightingZoneDock.Size = new Size(85, 36);
buttonLightingZoneDock.TabIndex = 6; buttonLightingZoneDock.TabIndex = 6;
buttonLightingZoneDock.Text = "Dock"; buttonLightingZoneDock.Text = "Dock";
buttonLightingZoneDock.TextImageRelation = TextImageRelation.ImageAboveText; buttonLightingZoneDock.TextImageRelation = TextImageRelation.ImageAboveText;
@@ -968,10 +968,10 @@
comboBoxAnimationDirection.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxAnimationDirection.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxAnimationDirection.FlatStyle = FlatStyle.Flat; comboBoxAnimationDirection.FlatStyle = FlatStyle.Flat;
comboBoxAnimationDirection.FormattingEnabled = true; comboBoxAnimationDirection.FormattingEnabled = true;
comboBoxAnimationDirection.Location = new Point(244, 153); comboBoxAnimationDirection.Location = new Point(245, 153);
comboBoxAnimationDirection.Margin = new Padding(11, 0, 11, 0); comboBoxAnimationDirection.Margin = new Padding(11, 0, 11, 0);
comboBoxAnimationDirection.Name = "comboBoxAnimationDirection"; comboBoxAnimationDirection.Name = "comboBoxAnimationDirection";
comboBoxAnimationDirection.Size = new Size(191, 23); comboBoxAnimationDirection.Size = new Size(190, 23);
comboBoxAnimationDirection.TabIndex = 54; comboBoxAnimationDirection.TabIndex = 54;
// //
// labelAnimationDirection // labelAnimationDirection
@@ -1000,10 +1000,10 @@
comboBoxAnimationSpeed.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxAnimationSpeed.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxAnimationSpeed.FlatStyle = FlatStyle.Flat; comboBoxAnimationSpeed.FlatStyle = FlatStyle.Flat;
comboBoxAnimationSpeed.FormattingEnabled = true; comboBoxAnimationSpeed.FormattingEnabled = true;
comboBoxAnimationSpeed.Location = new Point(244, 125); comboBoxAnimationSpeed.Location = new Point(245, 125);
comboBoxAnimationSpeed.Margin = new Padding(11, 0, 11, 0); comboBoxAnimationSpeed.Margin = new Padding(11, 0, 11, 0);
comboBoxAnimationSpeed.Name = "comboBoxAnimationSpeed"; comboBoxAnimationSpeed.Name = "comboBoxAnimationSpeed";
comboBoxAnimationSpeed.Size = new Size(191, 23); comboBoxAnimationSpeed.Size = new Size(190, 23);
comboBoxAnimationSpeed.TabIndex = 51; comboBoxAnimationSpeed.TabIndex = 51;
// //
// labelAnimationSpeed // labelAnimationSpeed
@@ -1018,7 +1018,7 @@
// pictureBoxLightingColor // pictureBoxLightingColor
// //
pictureBoxLightingColor.Anchor = AnchorStyles.Top | AnchorStyles.Right; pictureBoxLightingColor.Anchor = AnchorStyles.Top | AnchorStyles.Right;
pictureBoxLightingColor.Location = new Point(304, 80); pictureBoxLightingColor.Location = new Point(321, 80);
pictureBoxLightingColor.Margin = new Padding(4); pictureBoxLightingColor.Margin = new Padding(4);
pictureBoxLightingColor.Name = "pictureBoxLightingColor"; pictureBoxLightingColor.Name = "pictureBoxLightingColor";
pictureBoxLightingColor.Size = new Size(13, 13); pictureBoxLightingColor.Size = new Size(13, 13);
@@ -1035,11 +1035,11 @@
buttonLightingColor.BorderRadius = 2; buttonLightingColor.BorderRadius = 2;
buttonLightingColor.FlatStyle = FlatStyle.Flat; buttonLightingColor.FlatStyle = FlatStyle.Flat;
buttonLightingColor.ForeColor = SystemColors.ControlText; buttonLightingColor.ForeColor = SystemColors.ControlText;
buttonLightingColor.Location = new Point(233, 74); buttonLightingColor.Location = new Point(252, 74);
buttonLightingColor.Margin = new Padding(2, 4, 2, 4); buttonLightingColor.Margin = new Padding(2, 4, 2, 4);
buttonLightingColor.Name = "buttonLightingColor"; buttonLightingColor.Name = "buttonLightingColor";
buttonLightingColor.Secondary = false; buttonLightingColor.Secondary = false;
buttonLightingColor.Size = new Size(94, 25); buttonLightingColor.Size = new Size(90, 25);
buttonLightingColor.TabIndex = 49; buttonLightingColor.TabIndex = 49;
buttonLightingColor.Text = Properties.Strings.Color; buttonLightingColor.Text = Properties.Strings.Color;
buttonLightingColor.TextAlign = ContentAlignment.MiddleLeft; buttonLightingColor.TextAlign = ContentAlignment.MiddleLeft;
@@ -1077,13 +1077,13 @@
panelLightingHeader.Location = new Point(0, 0); panelLightingHeader.Location = new Point(0, 0);
panelLightingHeader.Margin = new Padding(2); panelLightingHeader.Margin = new Padding(2);
panelLightingHeader.Name = "panelLightingHeader"; panelLightingHeader.Name = "panelLightingHeader";
panelLightingHeader.Size = new Size(420, 20); panelLightingHeader.Size = new Size(437, 20);
panelLightingHeader.TabIndex = 41; panelLightingHeader.TabIndex = 41;
// //
// sliderBrightness // sliderBrightness
// //
sliderBrightness.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right; sliderBrightness.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
sliderBrightness.Location = new Point(229, 1); sliderBrightness.Location = new Point(246, 1);
sliderBrightness.Margin = new Padding(1); sliderBrightness.Margin = new Padding(1);
sliderBrightness.Max = 100; sliderBrightness.Max = 100;
sliderBrightness.Min = 0; sliderBrightness.Min = 0;
@@ -1131,7 +1131,7 @@
panelEnergy.Margin = new Padding(2); panelEnergy.Margin = new Padding(2);
panelEnergy.Name = "panelEnergy"; panelEnergy.Name = "panelEnergy";
panelEnergy.Padding = new Padding(0, 0, 0, 17); panelEnergy.Padding = new Padding(0, 0, 0, 17);
panelEnergy.Size = new Size(420, 96); panelEnergy.Size = new Size(437, 96);
panelEnergy.TabIndex = 43; panelEnergy.TabIndex = 43;
// //
// labelLowBatteryWarningValue // labelLowBatteryWarningValue
@@ -1199,7 +1199,7 @@
panelEnergyHeader.Location = new Point(0, 0); panelEnergyHeader.Location = new Point(0, 0);
panelEnergyHeader.Margin = new Padding(2); panelEnergyHeader.Margin = new Padding(2);
panelEnergyHeader.Name = "panelEnergyHeader"; panelEnergyHeader.Name = "panelEnergyHeader";
panelEnergyHeader.Size = new Size(420, 20); panelEnergyHeader.Size = new Size(437, 20);
panelEnergyHeader.TabIndex = 41; panelEnergyHeader.TabIndex = 41;
// //
// pictureBoxEnergy // pictureBoxEnergy
@@ -1240,7 +1240,7 @@
tableLayoutProfiles.RowCount = 1; tableLayoutProfiles.RowCount = 1;
tableLayoutProfiles.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); tableLayoutProfiles.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
tableLayoutProfiles.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); tableLayoutProfiles.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
tableLayoutProfiles.Size = new Size(420, 38); tableLayoutProfiles.Size = new Size(437, 38);
tableLayoutProfiles.TabIndex = 44; tableLayoutProfiles.TabIndex = 44;
// //
// panelBatteryState // panelBatteryState
@@ -1302,11 +1302,11 @@
buttonSync.BorderRadius = 2; buttonSync.BorderRadius = 2;
buttonSync.FlatStyle = FlatStyle.Flat; buttonSync.FlatStyle = FlatStyle.Flat;
buttonSync.ForeColor = SystemColors.ControlText; buttonSync.ForeColor = SystemColors.ControlText;
buttonSync.Location = new Point(223, 5); buttonSync.Location = new Point(5, 37);
buttonSync.Margin = new Padding(2, 4, 2, 4); buttonSync.Margin = new Padding(2, 4, 2, 4);
buttonSync.Name = "buttonSync"; buttonSync.Name = "buttonSync";
buttonSync.Secondary = false; buttonSync.Secondary = false;
buttonSync.Size = new Size(195, 25); buttonSync.Size = new Size(431, 25);
buttonSync.TabIndex = 46; buttonSync.TabIndex = 46;
buttonSync.Text = "Synchronize with Mouse"; buttonSync.Text = "Synchronize with Mouse";
buttonSync.UseVisualStyleBackColor = false; buttonSync.UseVisualStyleBackColor = false;
@@ -1322,7 +1322,7 @@
panelBottomButtons.Location = new Point(7, 731); panelBottomButtons.Location = new Point(7, 731);
panelBottomButtons.Margin = new Padding(2); panelBottomButtons.Margin = new Padding(2);
panelBottomButtons.Name = "panelBottomButtons"; panelBottomButtons.Name = "panelBottomButtons";
panelBottomButtons.Size = new Size(420, 45); panelBottomButtons.Size = new Size(437, 66);
panelBottomButtons.TabIndex = 47; panelBottomButtons.TabIndex = 47;
// //
// buttonImport // buttonImport
@@ -1335,11 +1335,11 @@
buttonImport.BorderRadius = 2; buttonImport.BorderRadius = 2;
buttonImport.FlatStyle = FlatStyle.Flat; buttonImport.FlatStyle = FlatStyle.Flat;
buttonImport.ForeColor = SystemColors.ControlText; buttonImport.ForeColor = SystemColors.ControlText;
buttonImport.Location = new Point(106, 6); buttonImport.Location = new Point(222, 6);
buttonImport.Margin = new Padding(2, 4, 2, 4); buttonImport.Margin = new Padding(2, 4, 2, 4);
buttonImport.Name = "buttonImport"; buttonImport.Name = "buttonImport";
buttonImport.Secondary = false; buttonImport.Secondary = false;
buttonImport.Size = new Size(102, 25); buttonImport.Size = new Size(214, 25);
buttonImport.TabIndex = 48; buttonImport.TabIndex = 48;
buttonImport.Text = "Import Profile"; buttonImport.Text = "Import Profile";
buttonImport.UseVisualStyleBackColor = false; buttonImport.UseVisualStyleBackColor = false;
@@ -1355,11 +1355,11 @@
buttonExport.BorderRadius = 2; buttonExport.BorderRadius = 2;
buttonExport.FlatStyle = FlatStyle.Flat; buttonExport.FlatStyle = FlatStyle.Flat;
buttonExport.ForeColor = SystemColors.ControlText; buttonExport.ForeColor = SystemColors.ControlText;
buttonExport.Location = new Point(2, 6); buttonExport.Location = new Point(5, 6);
buttonExport.Margin = new Padding(2, 4, 2, 4); buttonExport.Margin = new Padding(2, 4, 2, 4);
buttonExport.Name = "buttonExport"; buttonExport.Name = "buttonExport";
buttonExport.Secondary = false; buttonExport.Secondary = false;
buttonExport.Size = new Size(103, 25); buttonExport.Size = new Size(197, 25);
buttonExport.TabIndex = 47; buttonExport.TabIndex = 47;
buttonExport.Text = "Export Profile"; buttonExport.Text = "Export Profile";
buttonExport.UseVisualStyleBackColor = false; buttonExport.UseVisualStyleBackColor = false;
@@ -1433,7 +1433,7 @@
AutoScroll = true; AutoScroll = true;
AutoSize = true; AutoSize = true;
AutoSizeMode = AutoSizeMode.GrowAndShrink; AutoSizeMode = AutoSizeMode.GrowAndShrink;
ClientSize = new Size(451, 699); ClientSize = new Size(451, 803);
Controls.Add(panelBottomButtons); Controls.Add(panelBottomButtons);
Controls.Add(panelEnergy); Controls.Add(panelEnergy);
Controls.Add(panelLighting); Controls.Add(panelLighting);

View File

@@ -1648,7 +1648,7 @@ namespace GHelper
return; return;
} }
mouseSettings = new AsusMouseSettings(am); mouseSettings = new AsusMouseSettings(am);
mouseSettings.TopMost = true; mouseSettings.TopMost = AppConfig.Is("topmost");
mouseSettings.FormClosed += MouseSettings_FormClosed; mouseSettings.FormClosed += MouseSettings_FormClosed;
mouseSettings.Disposed += MouseSettings_Disposed; mouseSettings.Disposed += MouseSettings_Disposed;
if (!mouseSettings.IsDisposed) if (!mouseSettings.IsDisposed)