mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
2 Commits
visual_mod
...
srgb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27cd55bd4c | ||
|
|
aeef62afa4 |
@@ -405,12 +405,7 @@ public static class AppConfig
|
|||||||
|
|
||||||
public static bool IsOLED()
|
public static bool IsOLED()
|
||||||
{
|
{
|
||||||
return ContainsModel("OLED") || IsSlash() || ContainsModel("UX64") || ContainsModel("UX34") || ContainsModel("UX53") || ContainsModel("K360") || ContainsModel("X150") || ContainsModel("M3500") || ContainsModel("K650");
|
return ContainsModel("OLED") || IsSlash() || ContainsModel("UX64") || ContainsModel("UX34") || ContainsModel("UX53") || ContainsModel("K360") || ContainsModel("X150");
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsNoOverdrive()
|
|
||||||
{
|
|
||||||
return Is("no_overdrive") || IsOLED();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsStrix()
|
public static bool IsStrix()
|
||||||
@@ -436,7 +431,7 @@ public static class AppConfig
|
|||||||
|
|
||||||
public static bool IsNoDirectRGB()
|
public static bool IsNoDirectRGB()
|
||||||
{
|
{
|
||||||
return ContainsModel("GA503") || ContainsModel("G533Q") || IsSlash();
|
return ContainsModel("GA503") || ContainsModel("G533Q");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsStrixNumpad()
|
public static bool IsStrixNumpad()
|
||||||
@@ -577,10 +572,6 @@ public static class AppConfig
|
|||||||
return ContainsModel("G834") || ContainsModel("G614") || ContainsModel("G834") || ContainsModel("G634");
|
return ContainsModel("G834") || ContainsModel("G614") || ContainsModel("G834") || ContainsModel("G634");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsROG()
|
|
||||||
{
|
|
||||||
return ContainsModel("ROG");
|
|
||||||
}
|
|
||||||
public static bool IsASUS()
|
public static bool IsASUS()
|
||||||
{
|
{
|
||||||
return ContainsModel("ROG") || ContainsModel("TUF") || ContainsModel("Vivobook") || ContainsModel("Zenbook");
|
return ContainsModel("ROG") || ContainsModel("TUF") || ContainsModel("Vivobook") || ContainsModel("Zenbook");
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ public class AsusACPI
|
|||||||
|
|
||||||
if (AppConfig.IsSlash())
|
if (AppConfig.IsSlash())
|
||||||
{
|
{
|
||||||
MaxGPUPower = AppConfig.Get("max_gpu_power", 25);
|
MaxGPUPower = 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.DynamicBoost5())
|
if (AppConfig.DynamicBoost5())
|
||||||
|
|||||||
122
app/AsusMouseSettings.Designer.cs
generated
122
app/AsusMouseSettings.Designer.cs
generated
@@ -152,7 +152,7 @@
|
|||||||
//
|
//
|
||||||
panelProfiles.Controls.Add(comboProfile);
|
panelProfiles.Controls.Add(comboProfile);
|
||||||
panelProfiles.Controls.Add(labelProfile);
|
panelProfiles.Controls.Add(labelProfile);
|
||||||
panelProfiles.Location = new Point(220, 2);
|
panelProfiles.Location = new Point(212, 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(437, 370);
|
panelPerformance.Size = new Size(420, 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(437, 192);
|
panelPerformanceOther.Size = new Size(420, 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(437, 31);
|
panelDeceleration.Size = new Size(420, 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(437, 31);
|
panelAcceleration.Size = new Size(420, 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(437, 29);
|
panelLiftOffDistance.Size = new Size(420, 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(437, 31);
|
panelDebounce.Size = new Size(420, 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(437, 29);
|
panelAngleSnapping.Size = new Size(420, 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(437, 27);
|
panelPollingRate.Size = new Size(420, 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(437, 70);
|
panelDPISettings.Size = new Size(420, 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(437, 20);
|
sliderDPI.Size = new Size(420, 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(437, 23);
|
tableLayoutPanel1.Size = new Size(420, 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(158, 23);
|
labelMinDPI.Size = new Size(151, 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(274, 0);
|
labelMaxDPI.Location = new Point(263, 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(159, 23);
|
labelMaxDPI.Size = new Size(153, 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(168, 2);
|
numericUpDownCurrentDPI.Location = new Point(161, 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(100, 19);
|
numericUpDownCurrentDPI.Size = new Size(96, 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(437, 27);
|
panelDPITile.Size = new Size(420, 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(412, 7);
|
pictureDPIColor.Location = new Point(395, 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(308, 1);
|
buttonDPIColor.Location = new Point(291, 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(437, 64);
|
tableDPI.Size = new Size(420, 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(111, 2);
|
buttonDPI2.Location = new Point(107, 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(105, 60);
|
buttonDPI2.Size = new Size(101, 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(105, 60);
|
buttonDPI1.Size = new Size(101, 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(220, 2);
|
buttonDPI3.Location = new Point(212, 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(105, 60);
|
buttonDPI3.Size = new Size(101, 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(329, 2);
|
buttonDPI4.Location = new Point(317, 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(106, 60);
|
buttonDPI4.Size = new Size(101, 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(437, 20);
|
panelPerformanceHeader.Size = new Size(420, 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(437, 220);
|
panelLighting.Size = new Size(420, 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(437, 183);
|
panelLightingContent.Size = new Size(420, 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(437, 40);
|
tableLayoutLightingZones.Size = new Size(420, 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(176, 2);
|
buttonLightingZoneScroll.Location = new Point(170, 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(83, 36);
|
buttonLightingZoneScroll.Size = new Size(80, 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(89, 2);
|
buttonLightingZoneLogo.Location = new Point(86, 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(83, 36);
|
buttonLightingZoneLogo.Size = new Size(80, 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(83, 36);
|
buttonLightingZoneAll.Size = new Size(80, 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(263, 2);
|
buttonLightingZoneUnderglow.Location = new Point(254, 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(83, 36);
|
buttonLightingZoneUnderglow.Size = new Size(80, 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(350, 2);
|
buttonLightingZoneDock.Location = new Point(338, 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(85, 36);
|
buttonLightingZoneDock.Size = new Size(80, 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(245, 153);
|
comboBoxAnimationDirection.Location = new Point(244, 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(190, 23);
|
comboBoxAnimationDirection.Size = new Size(191, 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(245, 125);
|
comboBoxAnimationSpeed.Location = new Point(244, 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(190, 23);
|
comboBoxAnimationSpeed.Size = new Size(191, 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(321, 80);
|
pictureBoxLightingColor.Location = new Point(304, 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(252, 74);
|
buttonLightingColor.Location = new Point(233, 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(90, 25);
|
buttonLightingColor.Size = new Size(94, 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(437, 20);
|
panelLightingHeader.Size = new Size(420, 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(246, 1);
|
sliderBrightness.Location = new Point(229, 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(437, 96);
|
panelEnergy.Size = new Size(420, 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(437, 20);
|
panelEnergyHeader.Size = new Size(420, 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(437, 38);
|
tableLayoutProfiles.Size = new Size(420, 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(5, 37);
|
buttonSync.Location = new Point(223, 5);
|
||||||
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(431, 25);
|
buttonSync.Size = new Size(195, 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(437, 66);
|
panelBottomButtons.Size = new Size(420, 45);
|
||||||
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(222, 6);
|
buttonImport.Location = new Point(106, 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(214, 25);
|
buttonImport.Size = new Size(102, 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(5, 6);
|
buttonExport.Location = new Point(2, 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(197, 25);
|
buttonExport.Size = new Size(103, 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, 803);
|
ClientSize = new Size(451, 699);
|
||||||
Controls.Add(panelBottomButtons);
|
Controls.Add(panelBottomButtons);
|
||||||
Controls.Add(panelEnergy);
|
Controls.Add(panelEnergy);
|
||||||
Controls.Add(panelLighting);
|
Controls.Add(panelLighting);
|
||||||
|
|||||||
1202
app/Display/CCD.cs
Normal file
1202
app/Display/CCD.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,174 +1,57 @@
|
|||||||
using GHelper.Helpers;
|
using System.Diagnostics;
|
||||||
using GHelper.Mode;
|
|
||||||
using GHelper.USB;
|
|
||||||
using System.Management;
|
|
||||||
|
|
||||||
namespace GHelper.Display
|
namespace GHelper.Display
|
||||||
{
|
{
|
||||||
public enum SplendidGamut : int
|
|
||||||
|
enum VisualMode
|
||||||
{
|
{
|
||||||
Native = 50,
|
Default,
|
||||||
sRGB = 51,
|
Racing,
|
||||||
DCIP3 = 53,
|
Scenery,
|
||||||
DisplayP3 = 54
|
RPG,
|
||||||
|
FPS,
|
||||||
|
Cinema,
|
||||||
|
Eyecare,
|
||||||
|
Vivid
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum SplendidCommand: int
|
|
||||||
{
|
|
||||||
Init = 10,
|
|
||||||
DimmingAsus = 9,
|
|
||||||
DimmingVisual = 19,
|
|
||||||
GamutMode = 200,
|
|
||||||
|
|
||||||
Default = 11,
|
public class ScreenControl
|
||||||
Racing = 21,
|
|
||||||
Scenery = 22,
|
|
||||||
RTS = 23,
|
|
||||||
FPS = 24,
|
|
||||||
Cinema = 25,
|
|
||||||
Vivid = 13,
|
|
||||||
Eyecare = 17,
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class ScreenControl
|
|
||||||
{
|
{
|
||||||
|
|
||||||
public const int MAX_REFRESH = 1000;
|
public const int MAX_REFRESH = 1000;
|
||||||
|
|
||||||
|
public static int activeProfile = 0;
|
||||||
|
|
||||||
public static DisplayGammaRamp? gammaRamp;
|
public static DisplayGammaRamp? gammaRamp;
|
||||||
|
|
||||||
private static int _brightness = 100;
|
private GammaRamp GetGamma(VisualMode mode)
|
||||||
private static bool _init = true;
|
|
||||||
private static string? _splendidPath = null;
|
|
||||||
|
|
||||||
private static System.Timers.Timer brightnessTimer = new System.Timers.Timer(100);
|
|
||||||
|
|
||||||
|
|
||||||
static ScreenControl () {
|
|
||||||
brightnessTimer.Elapsed += BrightnessTimerTimer_Elapsed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static Dictionary<SplendidGamut, string> GetGamutModes ()
|
|
||||||
{
|
{
|
||||||
Dictionary<SplendidGamut, string> _modes = new Dictionary<SplendidGamut, string>();
|
ushort[] GammaR, GammaG, GammaB;
|
||||||
|
|
||||||
DirectoryInfo d = new DirectoryInfo("C:\\ProgramData\\ASUS\\GameVisual");
|
switch (mode)
|
||||||
FileInfo[] icms = d.GetFiles("*.icm");
|
|
||||||
|
|
||||||
if (icms.Length == 0) return _modes;
|
|
||||||
|
|
||||||
_modes.Add(SplendidGamut.Native, "Gamut - Native");
|
|
||||||
foreach (FileInfo icm in icms)
|
|
||||||
{
|
{
|
||||||
if (icm.Name.Contains("sRGB")) _modes.Add(SplendidGamut.sRGB, "Gamut - sRGB");
|
case VisualMode.Racing:
|
||||||
if (icm.Name.Contains("DCIP3")) _modes.Add(SplendidGamut.DCIP3, "Gamut - DCIP3");
|
GammaR = new ushort[] { 0, 256, 512, 768, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280};
|
||||||
if (icm.Name.Contains("DisplayP3")) _modes.Add(SplendidGamut.DisplayP3, "Gamut - DisplayP3");
|
GammaG = new ushort[] { 0, 256, 512, 768, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256};
|
||||||
}
|
GammaB = new ushort[] { 0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12032, 12288, 12544, 12800, 13056, 13312, 13312, 13568, 13824, 14080, 14336, 14592, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416};
|
||||||
return _modes;
|
break;
|
||||||
}
|
case VisualMode.Scenery:
|
||||||
|
GammaR = new ushort[] { 7424, 7680, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58624, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280, 65280};
|
||||||
public static Dictionary<SplendidCommand, string> GetVisualModes()
|
GammaG = new ushort[] { 7424, 7680, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512, 64512};
|
||||||
{
|
GammaB = new ushort[] { 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55296, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928, 60928};
|
||||||
return new Dictionary<SplendidCommand, string>
|
break;
|
||||||
{
|
default:
|
||||||
{ SplendidCommand.Default, "Default"},
|
GammaR = new ushort[] { 0, 256, 512, 768, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280 };
|
||||||
{ SplendidCommand.Racing, "Racing"},
|
GammaG = new ushort[] { 0, 256, 512, 768, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256 };
|
||||||
{ SplendidCommand.Scenery, "Scenery"},
|
GammaB = new ushort[] { 0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9216, 9472, 9728, 9984, 10240, 10496, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12032, 12288, 12544, 12800, 13056, 13312, 13312, 13568, 13824, 14080, 14336, 14592, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416 };
|
||||||
{ SplendidCommand.RTS, "RTS/RPG"},
|
break;
|
||||||
{ SplendidCommand.FPS, "FPS"},
|
|
||||||
{ SplendidCommand.Cinema, "Cinema"},
|
|
||||||
{ SplendidCommand.Vivid, "Vivid" },
|
|
||||||
{ SplendidCommand.Eyecare, "Eyecare"}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetGamut(int mode = 50)
|
|
||||||
{
|
|
||||||
if (RunSplendid(SplendidCommand.GamutMode, 0, mode)) return;
|
|
||||||
|
|
||||||
if (_init)
|
|
||||||
{
|
|
||||||
_init = false;
|
|
||||||
RunSplendid(SplendidCommand.Init);
|
|
||||||
RunSplendid(SplendidCommand.GamutMode, 0, mode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetVisual(SplendidCommand mode = SplendidCommand.Default, int whiteBalance = 50)
|
|
||||||
{
|
|
||||||
int balance = mode == SplendidCommand.Eyecare ? 2 : whiteBalance;
|
|
||||||
RunSplendid(mode, 0, balance);
|
|
||||||
|
|
||||||
if (_init)
|
|
||||||
{
|
|
||||||
_init = false;
|
|
||||||
RunSplendid(SplendidCommand.Init);
|
|
||||||
RunSplendid(mode, 0, balance);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static string GetSplendidPath()
|
|
||||||
{
|
|
||||||
if (_splendidPath == null)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
using (var searcher = new ManagementObjectSearcher(@"Select * from Win32_SystemDriver WHERE Name='ATKWMIACPIIO'"))
|
|
||||||
{
|
|
||||||
foreach (var driver in searcher.Get())
|
|
||||||
{
|
|
||||||
string path = driver["PathName"].ToString();
|
|
||||||
_splendidPath = Path.GetDirectoryName(path) + "\\AsusSplendid.exe";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Logger.WriteLine(ex.Message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return _splendidPath;
|
return new GammaRamp(GammaR, GammaG, GammaB);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool RunSplendid(SplendidCommand command, int? param1 = null, int? param2 = null)
|
public void AutoScreen(bool force = false)
|
||||||
{
|
|
||||||
var splendid = GetSplendidPath();
|
|
||||||
bool isGameVisual = Directory.Exists("C:\\ProgramData\\ASUS\\GameVisual");
|
|
||||||
bool isSplenddid = File.Exists(splendid);
|
|
||||||
|
|
||||||
if (isSplenddid)
|
|
||||||
{
|
|
||||||
if (command == SplendidCommand.DimmingVisual && !isGameVisual) command = SplendidCommand.DimmingAsus;
|
|
||||||
var result = ProcessHelper.RunCMD(splendid, (int)command + " " + param1 + " " + param2);
|
|
||||||
if (result.Contains("file not exist") || (result.Length == 0 && isGameVisual)) return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void BrightnessTimerTimer_Elapsed(object? sender, System.Timers.ElapsedEventArgs e)
|
|
||||||
{
|
|
||||||
brightnessTimer.Stop();
|
|
||||||
|
|
||||||
|
|
||||||
if (RunSplendid(SplendidCommand.DimmingVisual, 0, (int)(40 + _brightness * 0.6))) return;
|
|
||||||
|
|
||||||
if (_init)
|
|
||||||
{
|
|
||||||
_init = false;
|
|
||||||
RunSplendid(SplendidCommand.Init);
|
|
||||||
RunSplendid(SplendidCommand.Init, 4);
|
|
||||||
if (RunSplendid(SplendidCommand.DimmingVisual, 0, (int)(40 + _brightness * 0.6))) return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// GammaRamp Fallback
|
|
||||||
SetGamma(_brightness);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void AutoScreen(bool force = false)
|
|
||||||
{
|
{
|
||||||
if (force || AppConfig.Is("screen_auto"))
|
if (force || AppConfig.Is("screen_auto"))
|
||||||
{
|
{
|
||||||
@@ -183,25 +66,80 @@ namespace GHelper.Display
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int SetBrightness(int brightness = -1, int delta = 0)
|
public bool GetSRGB()
|
||||||
{
|
{
|
||||||
if (!AppConfig.IsOLED()) return -1;
|
var screenName = ScreenNative.FindLaptopScreen();
|
||||||
|
if (screenName is null) return false;
|
||||||
|
|
||||||
if (brightness < 0) brightness = AppConfig.Get("brightness", 100);
|
bool userProfiles = CCD.GetUsePerUserDisplayProfiles(screenName);
|
||||||
|
var defaultProfile = CCD.GetDisplayDefaultColorProfile(screenName);
|
||||||
|
|
||||||
_brightness = Math.Max(0, Math.Min(100, brightness + delta));
|
return defaultProfile is not null && defaultProfile.ToLower().Contains("srgb") && userProfiles;
|
||||||
AppConfig.Set("brightness", _brightness);
|
}
|
||||||
|
|
||||||
brightnessTimer.Start();
|
public void ToggleSRGB()
|
||||||
|
{
|
||||||
|
var screenName = ScreenNative.FindLaptopScreen();
|
||||||
|
if (screenName is null) return;
|
||||||
|
|
||||||
Program.settingsForm.VisualiseBrightness();
|
bool userProfiles = CCD.GetUsePerUserDisplayProfiles(screenName);
|
||||||
|
|
||||||
return _brightness;
|
if (!userProfiles) CCD.SetUsePerUserDisplayProfiles(screenName, true);
|
||||||
|
|
||||||
|
var profiles = CCD.GetDisplayColorProfiles(screenName);
|
||||||
|
var defaultProfile = CCD.GetDisplayDefaultColorProfile(screenName);
|
||||||
|
|
||||||
|
Debug.WriteLine($"Default Profile {screenName}: {defaultProfile}");
|
||||||
|
|
||||||
|
bool isSRGB = defaultProfile is not null && defaultProfile.ToLower().Contains("srgb") && userProfiles;
|
||||||
|
bool changed = false;
|
||||||
|
|
||||||
|
foreach (var profile in profiles)
|
||||||
|
{
|
||||||
|
Debug.WriteLine(profile);
|
||||||
|
|
||||||
|
if (!changed && !isSRGB && profile.ToLower().Contains("srgb"))
|
||||||
|
{
|
||||||
|
CCD.SetDisplayDefaultColorProfile(screenName, profile);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!changed && isSRGB && !profile.ToLower().Contains("srgb"))
|
||||||
|
{
|
||||||
|
CCD.SetDisplayDefaultColorProfile(screenName, profile);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!changed)
|
||||||
|
{
|
||||||
|
if (isSRGB) CCD.SetUsePerUserDisplayProfiles(screenName, false);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var profile = Application.StartupPath + "ASUS_sRGB.icm";
|
||||||
|
CCD.AddDisplayColorProfile(screenName, profile, true, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//var colorparams = CCD.GetColorParams(screenName);
|
||||||
|
//Debug.WriteLine($"{colorparams.MaxLuminance} = {colorparams.RedPointX},{colorparams.RedPointY} {colorparams.GreenPointX},{colorparams.GreenPointY} {colorparams.BluePointX},{colorparams.BluePointY}");
|
||||||
|
|
||||||
|
//CCD.SetMinMaxLuminance(0, 0.6, 0.6, screenName);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetBrightness(int brightness = -1)
|
||||||
|
{
|
||||||
|
if (!AppConfig.IsOLED()) return;
|
||||||
|
|
||||||
|
if (brightness >= 0) AppConfig.Set("brightness", brightness);
|
||||||
|
else brightness = AppConfig.Get("brightness");
|
||||||
|
|
||||||
|
if (brightness >= 0) SetGamma(brightness);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void SetGamma(int brightness = 100)
|
||||||
public static void SetGamma(int brightness = 100)
|
|
||||||
{
|
{
|
||||||
var bright = Math.Round((float)brightness / 200 + 0.5, 2);
|
var bright = Math.Round((float)brightness / 200 + 0.5, 2);
|
||||||
|
|
||||||
@@ -211,18 +149,20 @@ namespace GHelper.Display
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var handle = ScreenNative.CreateDC(screenName, screenName, null, IntPtr.Zero);
|
var handle = ScreenNative.CreateDC(screenName, screenName, null, IntPtr.Zero);
|
||||||
if (gammaRamp is null)
|
if (true || gammaRamp is null)
|
||||||
{
|
{
|
||||||
var gammaDump = new GammaRamp();
|
var gammaDump = new GammaRamp();
|
||||||
if (ScreenNative.GetDeviceGammaRamp(handle, ref gammaDump))
|
if (ScreenNative.GetDeviceGammaRamp(handle, ref gammaDump))
|
||||||
{
|
{
|
||||||
gammaRamp = new DisplayGammaRamp(gammaDump);
|
gammaRamp = new DisplayGammaRamp(gammaDump);
|
||||||
//Logger.WriteLine("Gamma R: " + string.Join("-", gammaRamp.Red));
|
Logger.WriteLine("GammaR = {" + string.Join(", ", gammaRamp.Red) + "};");
|
||||||
//Logger.WriteLine("Gamma G: " + string.Join("-", gammaRamp.Green));
|
Logger.WriteLine("GammaG = {" + string.Join(", ", gammaRamp.Green) + "};");
|
||||||
//Logger.WriteLine("Gamma B: " + string.Join("-", gammaRamp.Blue));
|
Logger.WriteLine("GammaB = {" + string.Join(", ", gammaRamp.Blue) + "};");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
if (gammaRamp is null || !gammaRamp.IsOriginal())
|
if (gammaRamp is null || !gammaRamp.IsOriginal())
|
||||||
{
|
{
|
||||||
Logger.WriteLine("Not default Gamma");
|
Logger.WriteLine("Not default Gamma");
|
||||||
@@ -232,7 +172,7 @@ namespace GHelper.Display
|
|||||||
var ramp = gammaRamp.AsBrightnessRamp(bright);
|
var ramp = gammaRamp.AsBrightnessRamp(bright);
|
||||||
bool result = ScreenNative.SetDeviceGammaRamp(handle, ref ramp);
|
bool result = ScreenNative.SetDeviceGammaRamp(handle, ref ramp);
|
||||||
|
|
||||||
Logger.WriteLine("Gamma " + bright.ToString() + ": " + result);
|
Logger.WriteLine("Brightness " + bright.ToString() + ": " + result);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -243,7 +183,7 @@ namespace GHelper.Display
|
|||||||
//ScreenBrightness.Set(60 + (int)(40 * bright));
|
//ScreenBrightness.Set(60 + (int)(40 * bright));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetScreen(int frequency = -1, int overdrive = -1, int miniled = -1)
|
public void SetScreen(int frequency = -1, int overdrive = -1, int miniled = -1)
|
||||||
{
|
{
|
||||||
var laptopScreen = ScreenNative.FindLaptopScreen(true);
|
var laptopScreen = ScreenNative.FindLaptopScreen(true);
|
||||||
|
|
||||||
@@ -263,8 +203,8 @@ namespace GHelper.Display
|
|||||||
|
|
||||||
if (overdrive >= 0)
|
if (overdrive >= 0)
|
||||||
{
|
{
|
||||||
if (AppConfig.IsNoOverdrive()) overdrive = 0;
|
if (AppConfig.Get("no_overdrive") == 1) overdrive = 0;
|
||||||
if (!AppConfig.IsOLED()) Program.acpi.DeviceSet(AsusACPI.ScreenOverdrive, overdrive, "ScreenOverdrive");
|
Program.acpi.DeviceSet(AsusACPI.ScreenOverdrive, overdrive, "ScreenOverdrive");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,7 +220,7 @@ namespace GHelper.Display
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static int ToogleMiniled()
|
public int ToogleMiniled()
|
||||||
{
|
{
|
||||||
int miniled1 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled1);
|
int miniled1 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled1);
|
||||||
int miniled2 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled2);
|
int miniled2 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled2);
|
||||||
@@ -308,7 +248,7 @@ namespace GHelper.Display
|
|||||||
return miniled;
|
return miniled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void InitScreen()
|
public void InitScreen()
|
||||||
{
|
{
|
||||||
var laptopScreen = ScreenNative.FindLaptopScreen();
|
var laptopScreen = ScreenNative.FindLaptopScreen();
|
||||||
|
|
||||||
@@ -316,9 +256,9 @@ namespace GHelper.Display
|
|||||||
int maxFrequency = ScreenNative.GetMaxRefreshRate(laptopScreen);
|
int maxFrequency = ScreenNative.GetMaxRefreshRate(laptopScreen);
|
||||||
|
|
||||||
bool screenAuto = AppConfig.Is("screen_auto");
|
bool screenAuto = AppConfig.Is("screen_auto");
|
||||||
bool overdriveSetting = !AppConfig.IsNoOverdrive();
|
bool overdriveSetting = !AppConfig.Is("no_overdrive");
|
||||||
|
|
||||||
int overdrive = AppConfig.IsNoOverdrive() ? 0 : Program.acpi.DeviceGet(AsusACPI.ScreenOverdrive);
|
int overdrive = Program.acpi.DeviceGet(AsusACPI.ScreenOverdrive);
|
||||||
|
|
||||||
int miniled1 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled1);
|
int miniled1 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled1);
|
||||||
int miniled2 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled2);
|
int miniled2 = Program.acpi.DeviceGet(AsusACPI.ScreenMiniled2);
|
||||||
|
|||||||
10
app/Extra.cs
10
app/Extra.cs
@@ -12,6 +12,7 @@ namespace GHelper
|
|||||||
public partial class Extra : RForm
|
public partial class Extra : RForm
|
||||||
{
|
{
|
||||||
|
|
||||||
|
ScreenControl screenControl = new ScreenControl();
|
||||||
ClamshellModeControl clamshellControl = new ClamshellModeControl();
|
ClamshellModeControl clamshellControl = new ClamshellModeControl();
|
||||||
|
|
||||||
const string EMPTY = "--------------";
|
const string EMPTY = "--------------";
|
||||||
@@ -209,11 +210,6 @@ namespace GHelper
|
|||||||
checkUSBC.Visible = false;
|
checkUSBC.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsOLED())
|
|
||||||
{
|
|
||||||
checkNoOverdrive.Visible = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Change text and hide irrelevant options on the ROG Ally,
|
// Change text and hide irrelevant options on the ROG Ally,
|
||||||
// which is a bit of a special case piece of hardware.
|
// which is a bit of a special case piece of hardware.
|
||||||
if (AppConfig.IsAlly())
|
if (AppConfig.IsAlly())
|
||||||
@@ -361,7 +357,7 @@ namespace GHelper
|
|||||||
checkTopmost.Checked = AppConfig.Is("topmost");
|
checkTopmost.Checked = AppConfig.Is("topmost");
|
||||||
checkTopmost.CheckedChanged += CheckTopmost_CheckedChanged; ;
|
checkTopmost.CheckedChanged += CheckTopmost_CheckedChanged; ;
|
||||||
|
|
||||||
checkNoOverdrive.Checked = AppConfig.IsNoOverdrive();
|
checkNoOverdrive.Checked = AppConfig.Is("no_overdrive");
|
||||||
checkNoOverdrive.CheckedChanged += CheckNoOverdrive_CheckedChanged;
|
checkNoOverdrive.CheckedChanged += CheckNoOverdrive_CheckedChanged;
|
||||||
|
|
||||||
checkUSBC.Checked = AppConfig.Is("optimized_usbc");
|
checkUSBC.Checked = AppConfig.Is("optimized_usbc");
|
||||||
@@ -683,7 +679,7 @@ namespace GHelper
|
|||||||
private void CheckNoOverdrive_CheckedChanged(object? sender, EventArgs e)
|
private void CheckNoOverdrive_CheckedChanged(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppConfig.Set("no_overdrive", (checkNoOverdrive.Checked ? 1 : 0));
|
AppConfig.Set("no_overdrive", (checkNoOverdrive.Checked ? 1 : 0));
|
||||||
ScreenControl.AutoScreen(true);
|
screenControl.AutoScreen(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace GHelper
|
|||||||
labelPowerLimits.Text = Properties.Strings.PowerLimits;
|
labelPowerLimits.Text = Properties.Strings.PowerLimits;
|
||||||
checkApplyPower.Text = Properties.Strings.ApplyPowerLimits;
|
checkApplyPower.Text = Properties.Strings.ApplyPowerLimits;
|
||||||
|
|
||||||
labelFans.Text = "BIOS " + Properties.Strings.FanCurves;
|
labelFans.Text = Properties.Strings.FanCurves;
|
||||||
labelBoost.Text = Properties.Strings.CPUBoost;
|
labelBoost.Text = Properties.Strings.CPUBoost;
|
||||||
buttonReset.Text = Properties.Strings.FactoryDefaults;
|
buttonReset.Text = Properties.Strings.FactoryDefaults;
|
||||||
checkApplyFans.Text = Properties.Strings.ApplyFanCurve;
|
checkApplyFans.Text = Properties.Strings.ApplyFanCurve;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
<AssemblyVersion>0.157</AssemblyVersion>
|
<AssemblyVersion>0.156</AssemblyVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ namespace GHelper.Gpu
|
|||||||
public class GPUModeControl
|
public class GPUModeControl
|
||||||
{
|
{
|
||||||
SettingsForm settings;
|
SettingsForm settings;
|
||||||
|
ScreenControl screenControl = new ScreenControl();
|
||||||
|
|
||||||
public static int gpuMode;
|
public static int gpuMode;
|
||||||
public static bool? gpuExists = null;
|
public static bool? gpuExists = null;
|
||||||
@@ -158,7 +159,7 @@ namespace GHelper.Gpu
|
|||||||
settings.Invoke(delegate
|
settings.Invoke(delegate
|
||||||
{
|
{
|
||||||
InitGPUMode();
|
InitGPUMode();
|
||||||
ScreenControl.AutoScreen();
|
screenControl.AutoScreen();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (eco == 0)
|
if (eco == 0)
|
||||||
|
|||||||
@@ -99,7 +99,9 @@ namespace GHelper.Helpers
|
|||||||
ToggleLidAction();
|
ToggleLidAction();
|
||||||
|
|
||||||
if (Program.settingsForm.Visible)
|
if (Program.settingsForm.Visible)
|
||||||
ScreenControl.InitScreen();
|
Program.screenControl.InitScreen();
|
||||||
|
|
||||||
|
Program.screenControl.SetBrightness();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ namespace GHelper.Helpers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string RunCMD(string name, string args)
|
public static void RunCMD(string name, string args)
|
||||||
{
|
{
|
||||||
var cmd = new Process();
|
var cmd = new Process();
|
||||||
cmd.StartInfo.UseShellExecute = false;
|
cmd.StartInfo.UseShellExecute = false;
|
||||||
@@ -133,13 +133,13 @@ namespace GHelper.Helpers
|
|||||||
cmd.StartInfo.Arguments = args;
|
cmd.StartInfo.Arguments = args;
|
||||||
cmd.Start();
|
cmd.Start();
|
||||||
|
|
||||||
Logger.WriteLine(name + " " + args);
|
Logger.WriteLine(args);
|
||||||
|
|
||||||
string result = cmd.StandardOutput.ReadToEnd().Replace(Environment.NewLine, " ").Trim(' ');
|
string result = cmd.StandardOutput.ReadToEnd().Replace(Environment.NewLine, " ").Trim(' ');
|
||||||
|
|
||||||
Logger.WriteLine(result);
|
Logger.WriteLine(result);
|
||||||
|
|
||||||
cmd.WaitForExit();
|
cmd.WaitForExit();
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ namespace GHelper.Input
|
|||||||
public static Keys keyApp = Keys.F12;
|
public static Keys keyApp = Keys.F12;
|
||||||
|
|
||||||
static ModeControl modeControl = Program.modeControl;
|
static ModeControl modeControl = Program.modeControl;
|
||||||
|
static ScreenControl screenControl = new ScreenControl();
|
||||||
|
|
||||||
static bool isTUF = AppConfig.IsTUF();
|
static bool isTUF = AppConfig.IsTUF();
|
||||||
|
|
||||||
KeyboardListener listener;
|
KeyboardListener listener;
|
||||||
@@ -243,13 +244,6 @@ namespace GHelper.Input
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetBrightnessDimming(int delta)
|
|
||||||
{
|
|
||||||
int brightness = ScreenControl.SetBrightness(delta: delta);
|
|
||||||
if (brightness >= 0)
|
|
||||||
Program.toast.RunToast(brightness + "%", (delta < 0) ? ToastIcon.BrightnessDown : ToastIcon.BrightnessUp);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void KeyPressed(object sender, KeyPressedEventArgs e)
|
public void KeyPressed(object sender, KeyPressedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -478,7 +472,7 @@ namespace GHelper.Input
|
|||||||
break;
|
break;
|
||||||
case "miniled":
|
case "miniled":
|
||||||
if (ScreenCCD.GetHDRStatus()) return;
|
if (ScreenCCD.GetHDRStatus()) return;
|
||||||
int miniled = ScreenControl.ToogleMiniled();
|
int miniled = screenControl.ToogleMiniled();
|
||||||
Program.toast.RunToast(miniled == 1 ? "Multi-Zone" : "Single-Zone", miniled == 1 ? ToastIcon.BrightnessUp : ToastIcon.BrightnessDown);
|
Program.toast.RunToast(miniled == 1 ? "Multi-Zone" : "Single-Zone", miniled == 1 ? ToastIcon.BrightnessUp : ToastIcon.BrightnessDown);
|
||||||
break;
|
break;
|
||||||
case "aura":
|
case "aura":
|
||||||
@@ -704,14 +698,8 @@ namespace GHelper.Input
|
|||||||
if (AppConfig.IsDUO()) SetScreenpad(-10);
|
if (AppConfig.IsDUO()) SetScreenpad(-10);
|
||||||
else Program.settingsForm.BeginInvoke(Program.settingsForm.CycleMatrix, -1);
|
else Program.settingsForm.BeginInvoke(Program.settingsForm.CycleMatrix, -1);
|
||||||
}
|
}
|
||||||
else if (Control.ModifierKeys == Keys.Control && AppConfig.IsOLED())
|
|
||||||
{
|
|
||||||
SetBrightnessDimming(-10);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Down, "Brightness");
|
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Down, "Brightness");
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 32: // FN+F8
|
case 32: // FN+F8
|
||||||
if (Control.ModifierKeys == Keys.Shift)
|
if (Control.ModifierKeys == Keys.Shift)
|
||||||
@@ -719,14 +707,8 @@ namespace GHelper.Input
|
|||||||
if (AppConfig.IsDUO()) SetScreenpad(10);
|
if (AppConfig.IsDUO()) SetScreenpad(10);
|
||||||
else Program.settingsForm.BeginInvoke(Program.settingsForm.CycleMatrix, 1);
|
else Program.settingsForm.BeginInvoke(Program.settingsForm.CycleMatrix, 1);
|
||||||
}
|
}
|
||||||
else if (Control.ModifierKeys == Keys.Control && AppConfig.IsOLED())
|
|
||||||
{
|
|
||||||
SetBrightnessDimming(10);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Up, "Brightness");
|
Program.acpi.DeviceSet(AsusACPI.UniversalControl, AsusACPI.Brightness_Up, "Brightness");
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 133: // Camera Toggle
|
case 133: // Camera Toggle
|
||||||
ToggleCamera();
|
ToggleCamera();
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ namespace GHelper
|
|||||||
public static ModeControl modeControl = new ModeControl();
|
public static ModeControl modeControl = new ModeControl();
|
||||||
public static GPUModeControl gpuControl = new GPUModeControl(settingsForm);
|
public static GPUModeControl gpuControl = new GPUModeControl(settingsForm);
|
||||||
public static AllyControl allyControl = new AllyControl(settingsForm);
|
public static AllyControl allyControl = new AllyControl(settingsForm);
|
||||||
|
public static ScreenControl screenControl = new ScreenControl();
|
||||||
public static ClamshellModeControl clamshellControl = new ClamshellModeControl();
|
public static ClamshellModeControl clamshellControl = new ClamshellModeControl();
|
||||||
|
|
||||||
public static ToastForm toast = new ToastForm();
|
public static ToastForm toast = new ToastForm();
|
||||||
@@ -165,7 +166,7 @@ namespace GHelper
|
|||||||
if (e.Reason == SessionSwitchReason.SessionLogon || e.Reason == SessionSwitchReason.SessionUnlock)
|
if (e.Reason == SessionSwitchReason.SessionLogon || e.Reason == SessionSwitchReason.SessionUnlock)
|
||||||
{
|
{
|
||||||
Logger.WriteLine("Session:" + e.Reason.ToString());
|
Logger.WriteLine("Session:" + e.Reason.ToString());
|
||||||
ScreenControl.AutoScreen();
|
screenControl.AutoScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,7 +224,7 @@ namespace GHelper
|
|||||||
if (!switched)
|
if (!switched)
|
||||||
{
|
{
|
||||||
gpuControl.InitGPUMode();
|
gpuControl.InitGPUMode();
|
||||||
ScreenControl.AutoScreen();
|
screenControl.AutoScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
BatteryControl.AutoBattery(init);
|
BatteryControl.AutoBattery(init);
|
||||||
|
|||||||
592
app/Settings.Designer.cs
generated
592
app/Settings.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
115
app/Settings.cs
115
app/Settings.cs
@@ -24,6 +24,7 @@ namespace GHelper
|
|||||||
|
|
||||||
public GPUModeControl gpuControl;
|
public GPUModeControl gpuControl;
|
||||||
public AllyControl allyControl;
|
public AllyControl allyControl;
|
||||||
|
ScreenControl screenControl = new ScreenControl();
|
||||||
AutoUpdateControl updateControl;
|
AutoUpdateControl updateControl;
|
||||||
|
|
||||||
AsusMouseSettings? mouseSettings;
|
AsusMouseSettings? mouseSettings;
|
||||||
@@ -47,8 +48,6 @@ namespace GHelper
|
|||||||
bool batteryMouseOver = false;
|
bool batteryMouseOver = false;
|
||||||
bool batteryFullMouseOver = false;
|
bool batteryFullMouseOver = false;
|
||||||
|
|
||||||
bool sliderGammaIgnore = false;
|
|
||||||
|
|
||||||
public SettingsForm()
|
public SettingsForm()
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -117,7 +116,7 @@ namespace GHelper
|
|||||||
buttonScreenAuto.AccessibleName = Properties.Strings.AutoMode;
|
buttonScreenAuto.AccessibleName = Properties.Strings.AutoMode;
|
||||||
//button60Hz.AccessibleName = "60Hz Refresh Rate";
|
//button60Hz.AccessibleName = "60Hz Refresh Rate";
|
||||||
//button120Hz.AccessibleName = "Maximum Refresh Rate";
|
//button120Hz.AccessibleName = "Maximum Refresh Rate";
|
||||||
|
|
||||||
panelKeyboard.AccessibleName = Properties.Strings.LaptopKeyboard;
|
panelKeyboard.AccessibleName = Properties.Strings.LaptopKeyboard;
|
||||||
buttonKeyboard.AccessibleName = Properties.Strings.ExtraSettings;
|
buttonKeyboard.AccessibleName = Properties.Strings.ExtraSettings;
|
||||||
buttonKeyboardColor.AccessibleName = Properties.Strings.LaptopKeyboard + " " + Properties.Strings.Color;
|
buttonKeyboardColor.AccessibleName = Properties.Strings.LaptopKeyboard + " " + Properties.Strings.Color;
|
||||||
@@ -220,7 +219,7 @@ namespace GHelper
|
|||||||
sliderBattery.ValueChanged += SliderBattery_ValueChanged;
|
sliderBattery.ValueChanged += SliderBattery_ValueChanged;
|
||||||
Program.trayIcon.MouseMove += TrayIcon_MouseMove;
|
Program.trayIcon.MouseMove += TrayIcon_MouseMove;
|
||||||
|
|
||||||
sensorTimer = new System.Timers.Timer(AppConfig.Get("sensor_timer", 1000));
|
sensorTimer = new System.Timers.Timer(AppConfig.Get("sensor_timer",1000));
|
||||||
sensorTimer.Elapsed += OnTimedEvent;
|
sensorTimer.Elapsed += OnTimedEvent;
|
||||||
sensorTimer.Enabled = true;
|
sensorTimer.Enabled = true;
|
||||||
|
|
||||||
@@ -256,83 +255,37 @@ namespace GHelper
|
|||||||
buttonFnLock.Click += ButtonFnLock_Click;
|
buttonFnLock.Click += ButtonFnLock_Click;
|
||||||
|
|
||||||
panelPerformance.Focus();
|
panelPerformance.Focus();
|
||||||
InitVisual();
|
|
||||||
|
InitBrightness();
|
||||||
|
|
||||||
|
checkSRGB.Checked = screenControl.GetSRGB();
|
||||||
|
checkSRGB.CheckedChanged += CheckSRGB_CheckedChanged;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CheckSRGB_CheckedChanged(object? sender, EventArgs e)
|
||||||
public void InitVisual()
|
|
||||||
{
|
{
|
||||||
|
screenControl.ToggleSRGB();
|
||||||
|
}
|
||||||
|
|
||||||
bool dimming = false;
|
public void InitBrightness()
|
||||||
|
{
|
||||||
if (AppConfig.IsOLED())
|
if (!AppConfig.IsOLED()) return;
|
||||||
{
|
|
||||||
dimming = true;
|
|
||||||
labelGammaTitle.Text = "Flicker-free Dimming";
|
|
||||||
panelGamma.Visible = true;
|
|
||||||
sliderGamma.Visible = true;
|
|
||||||
VisualiseBrightness();
|
|
||||||
sliderGamma.ValueChanged += SliderGamma_ValueChanged;
|
|
||||||
}
|
|
||||||
|
|
||||||
var gamuts = ScreenControl.GetGamutModes();
|
|
||||||
if (gamuts.Count < 1) return;
|
|
||||||
|
|
||||||
if (!dimming) labelGammaTitle.Text = "Visual Mode";
|
|
||||||
else labelGammaTitle.Text += " / Visual";
|
|
||||||
|
|
||||||
panelGamma.Visible = true;
|
panelGamma.Visible = true;
|
||||||
tableVisual.Visible = true;
|
|
||||||
|
|
||||||
comboVisual.DropDownStyle = ComboBoxStyle.DropDownList;
|
int brightness = AppConfig.Get("brightness");
|
||||||
comboVisual.DataSource = new BindingSource(ScreenControl.GetVisualModes(), null);
|
if (brightness >= 0) sliderGamma.Value = brightness;
|
||||||
comboVisual.DisplayMember = "Value";
|
|
||||||
comboVisual.ValueMember = "Key";
|
|
||||||
comboVisual.SelectedValue = (SplendidCommand)AppConfig.Get("visual", (int)SplendidCommand.Default);
|
|
||||||
|
|
||||||
comboVisual.SelectedValueChanged += ComboVisual_SelectedValueChanged;
|
|
||||||
comboVisual.Visible = true;
|
|
||||||
|
|
||||||
if (gamuts.Count <= 1) return;
|
|
||||||
|
|
||||||
comboGamut.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
||||||
comboGamut.DataSource = new BindingSource(gamuts, null);
|
|
||||||
comboGamut.DisplayMember = "Value";
|
|
||||||
comboGamut.ValueMember = "Key";
|
|
||||||
comboGamut.SelectedValue = (SplendidGamut)AppConfig.Get("gamut", (int)SplendidGamut.Native);
|
|
||||||
|
|
||||||
comboGamut.SelectedValueChanged += ComboGamut_SelectedValueChanged;
|
|
||||||
comboGamut.Visible = true;
|
|
||||||
|
|
||||||
|
sliderGamma.ValueChanged += SliderGamma_ValueChanged;
|
||||||
|
labelGamma.Text = sliderGamma.Value + "%";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ComboGamut_SelectedValueChanged(object? sender, EventArgs e)
|
|
||||||
{
|
|
||||||
AppConfig.Set("gamut", (int)comboGamut.SelectedValue);
|
|
||||||
ScreenControl.SetGamut((int)comboGamut.SelectedValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ComboVisual_SelectedValueChanged(object? sender, EventArgs e)
|
|
||||||
{
|
|
||||||
AppConfig.Set("visual", (int)comboVisual.SelectedValue);
|
|
||||||
ScreenControl.SetVisual((SplendidCommand)comboVisual.SelectedValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void VisualiseBrightness()
|
|
||||||
{
|
|
||||||
Invoke(delegate
|
|
||||||
{
|
|
||||||
sliderGammaIgnore = true;
|
|
||||||
sliderGamma.Value = AppConfig.Get("brightness", 100);
|
|
||||||
labelGamma.Text = sliderGamma.Value + "%";
|
|
||||||
sliderGammaIgnore = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SliderGamma_ValueChanged(object? sender, EventArgs e)
|
private void SliderGamma_ValueChanged(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (sliderGammaIgnore) return;
|
screenControl.SetBrightness(sliderGamma.Value);
|
||||||
ScreenControl.SetBrightness(sliderGamma.Value);
|
labelGamma.Text = sliderGamma.Value + "%";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ButtonOverlay_Click(object? sender, EventArgs e)
|
private void ButtonOverlay_Click(object? sender, EventArgs e)
|
||||||
@@ -406,7 +359,7 @@ namespace GHelper
|
|||||||
|
|
||||||
public void VisualiseBacklight(int backlight)
|
public void VisualiseBacklight(int backlight)
|
||||||
{
|
{
|
||||||
buttonBacklight.Text = Math.Round((double)backlight * 33.33).ToString() + "%";
|
buttonBacklight.Text = Math.Round((double)backlight*33.33).ToString() + "%";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void VisualiseFPSLimit(int limit)
|
public void VisualiseFPSLimit(int limit)
|
||||||
@@ -474,7 +427,7 @@ namespace GHelper
|
|||||||
sensorTimer.Enabled = this.Visible;
|
sensorTimer.Enabled = this.Visible;
|
||||||
if (this.Visible)
|
if (this.Visible)
|
||||||
{
|
{
|
||||||
ScreenControl.InitScreen();
|
screenControl.InitScreen();
|
||||||
VisualizeXGM();
|
VisualizeXGM();
|
||||||
|
|
||||||
Task.Run((Action)RefreshPeripheralsBattery);
|
Task.Run((Action)RefreshPeripheralsBattery);
|
||||||
@@ -753,7 +706,7 @@ namespace GHelper
|
|||||||
private void ButtonScreenAuto_Click(object? sender, EventArgs e)
|
private void ButtonScreenAuto_Click(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppConfig.Set("screen_auto", 1);
|
AppConfig.Set("screen_auto", 1);
|
||||||
ScreenControl.AutoScreen();
|
screenControl.AutoScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -903,7 +856,7 @@ namespace GHelper
|
|||||||
FansToggle();
|
FansToggle();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetColorPicker(string colorField = "aura_color")
|
private void SetColorPicker(string colorField = "aura_color")
|
||||||
{
|
{
|
||||||
ColorDialog colorDlg = new ColorDialog();
|
ColorDialog colorDlg = new ColorDialog();
|
||||||
colorDlg.AllowFullOpen = true;
|
colorDlg.AllowFullOpen = true;
|
||||||
@@ -1008,7 +961,7 @@ namespace GHelper
|
|||||||
|
|
||||||
buttonMatrix.Visible = false;
|
buttonMatrix.Visible = false;
|
||||||
checkMatrixLid.Visible = true;
|
checkMatrixLid.Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
comboMatrix.SelectedIndex = Math.Min(AppConfig.Get("matrix_brightness", 0), comboMatrix.Items.Count - 1);
|
comboMatrix.SelectedIndex = Math.Min(AppConfig.Get("matrix_brightness", 0), comboMatrix.Items.Count - 1);
|
||||||
comboMatrixRunning.SelectedIndex = Math.Min(AppConfig.Get("matrix_running", 0), comboMatrixRunning.Items.Count - 1);
|
comboMatrixRunning.SelectedIndex = Math.Min(AppConfig.Get("matrix_running", 0), comboMatrixRunning.Items.Count - 1);
|
||||||
@@ -1053,19 +1006,19 @@ namespace GHelper
|
|||||||
private void Button120Hz_Click(object? sender, EventArgs e)
|
private void Button120Hz_Click(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppConfig.Set("screen_auto", 0);
|
AppConfig.Set("screen_auto", 0);
|
||||||
ScreenControl.SetScreen(ScreenControl.MAX_REFRESH, 1);
|
screenControl.SetScreen(ScreenControl.MAX_REFRESH, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button60Hz_Click(object? sender, EventArgs e)
|
private void Button60Hz_Click(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppConfig.Set("screen_auto", 0);
|
AppConfig.Set("screen_auto", 0);
|
||||||
ScreenControl.SetScreen(60, 0);
|
screenControl.SetScreen(60, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void ButtonMiniled_Click(object? sender, EventArgs e)
|
private void ButtonMiniled_Click(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ScreenControl.ToogleMiniled();
|
screenControl.ToogleMiniled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1341,13 +1294,11 @@ namespace GHelper
|
|||||||
{
|
{
|
||||||
if (InvokeRequired)
|
if (InvokeRequired)
|
||||||
{
|
{
|
||||||
Invoke(delegate
|
Invoke(delegate {
|
||||||
{
|
|
||||||
labelPerf.Text = modeText;
|
labelPerf.Text = modeText;
|
||||||
panelPerformance.AccessibleName = labelPerf.Text;
|
panelPerformance.AccessibleName = labelPerf.Text;
|
||||||
});
|
});
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
{
|
{
|
||||||
labelPerf.Text = modeText;
|
labelPerf.Text = modeText;
|
||||||
panelPerformance.AccessibleName = labelPerf.Text;
|
panelPerformance.AccessibleName = labelPerf.Text;
|
||||||
@@ -1522,7 +1473,7 @@ namespace GHelper
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VisualizeXGM(GPUMode);
|
VisualizeXGM(GPUMode);
|
||||||
|
|
||||||
@@ -1696,7 +1647,7 @@ namespace GHelper
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mouseSettings = new AsusMouseSettings(am);
|
mouseSettings = new AsusMouseSettings(am);
|
||||||
mouseSettings.TopMost = AppConfig.Is("topmost");
|
mouseSettings.TopMost = true;
|
||||||
mouseSettings.FormClosed += MouseSettings_FormClosed;
|
mouseSettings.FormClosed += MouseSettings_FormClosed;
|
||||||
mouseSettings.Disposed += MouseSettings_Disposed;
|
mouseSettings.Disposed += MouseSettings_Disposed;
|
||||||
if (!mouseSettings.IsDisposed)
|
if (!mouseSettings.IsDisposed)
|
||||||
|
|||||||
@@ -97,16 +97,16 @@ public static class AsusHid
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
stream.Write(data);
|
stream.Write(data);
|
||||||
if (log is not null) Logger.WriteLine($"{log} {device.ProductID.ToString("X")}: {BitConverter.ToString(data)}");
|
Logger.WriteLine($"{log} {device.ProductID.ToString("X")}: {BitConverter.ToString(data)}");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
if (log is not null) Logger.WriteLine($"Error writing {log} {device.ProductID.ToString("X")}: {ex.Message} {BitConverter.ToString(data)} ");
|
Logger.WriteLine($"Error writing {log} {device.ProductID.ToString("X")}: {ex.Message} {BitConverter.ToString(data)} ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
if (log is not null) Logger.WriteLine($"Error opening {log} {device.ProductID.ToString("X")}: {ex.Message}");
|
Logger.WriteLine($"Error opening {log} {device.ProductID.ToString("X")}: {ex.Message}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -598,7 +598,7 @@ namespace GHelper.USB
|
|||||||
|
|
||||||
if (AppConfig.IsNoDirectRGB())
|
if (AppConfig.IsNoDirectRGB())
|
||||||
{
|
{
|
||||||
AsusHid.Write(new List<byte[]> { AuraMessage(AuraMode.AuraStatic, color, color, 0xeb, isSingleColor), MESSAGE_SET }, null);
|
AsusHid.Write(new List<byte[]> { AuraMessage(AuraMode.AuraStatic, color, color, 0xeb, isSingleColor), MESSAGE_SET });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -670,7 +670,7 @@ namespace GHelper.USB
|
|||||||
{
|
{
|
||||||
CustomRGB.ApplyAmbient(true);
|
CustomRGB.ApplyAmbient(true);
|
||||||
timer.Enabled = true;
|
timer.Enabled = true;
|
||||||
timer.Interval = AppConfig.Get("aura_refresh", AppConfig.IsStrix() ? 100 : 300);
|
timer.Interval = AppConfig.Get("aura_refresh", AppConfig.ContainsModel("GU604") ? 400 : 120);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user