UI tweaks

This commit is contained in:
seerge
2023-03-30 11:57:11 +02:00
parent a7a7170676
commit 228ad70b8d
7 changed files with 12 additions and 15 deletions

View File

@@ -390,7 +390,7 @@ namespace Starlight.AnimeMatrix
} }
public void GenerateFrame(Image image, InterpolationMode interpolation = InterpolationMode.HighQualityBicubic) public void GenerateFrame(Image image, InterpolationMode interpolation = InterpolationMode.High)
{ {
int width = MaxColumns/2 * 6; int width = MaxColumns/2 * 6;

View File

@@ -106,7 +106,8 @@ public static class ControlHelper
combo.BackColor = backMain; combo.BackColor = backMain;
combo.ForeColor = foreMain; combo.ForeColor = foreMain;
combo.BorderColor = backMain; combo.BorderColor = backMain;
combo.ButtonColor = buttonMain; combo.ButtonColor = backMain;
combo.ArrowColor = foreMain;
} }
var gb = control as GroupBox; var gb = control as GroupBox;

View File

@@ -71,8 +71,8 @@ namespace CustomControls
} }
private Color buttonColor = Color.FromArgb(255,230, 230, 230); private Color buttonColor = Color.FromArgb(255, 255, 255, 255);
[DefaultValue(typeof(Color), "230, 230, 230")] [DefaultValue(typeof(Color), "255, 255, 255")]
public Color ButtonColor public Color ButtonColor
{ {
get { return buttonColor; } get { return buttonColor; }

View File

@@ -19,7 +19,6 @@ public static class HardwareMonitor
int max = 58; int max = 58;
if (Program.config.ContainsModel("401")) max = 72; if (Program.config.ContainsModel("401")) max = 72;
else if (Program.config.ContainsModel("503")) max = 68; else if (Program.config.ContainsModel("503")) max = 68;
return Math.Max(max, Program.config.getConfig("fan_max")); return Math.Max(max, Program.config.getConfig("fan_max"));
} }

View File

@@ -154,7 +154,7 @@ namespace GHelper
} }
catch catch
{ {
Logger.WriteLine("Failed to run " + fileName); Logger.WriteLine("Failed to run " + fileName);
} }

View File

@@ -163,7 +163,6 @@ namespace GHelper
// comboMatrix // comboMatrix
// //
comboMatrix.BorderColor = Color.White; comboMatrix.BorderColor = Color.White;
comboMatrix.ButtonColor = SystemColors.ControlLight;
comboMatrix.Dock = DockStyle.Top; comboMatrix.Dock = DockStyle.Top;
comboMatrix.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point); comboMatrix.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboMatrix.FormattingEnabled = true; comboMatrix.FormattingEnabled = true;
@@ -179,7 +178,6 @@ namespace GHelper
// comboMatrixRunning // comboMatrixRunning
// //
comboMatrixRunning.BorderColor = Color.White; comboMatrixRunning.BorderColor = Color.White;
comboMatrixRunning.ButtonColor = SystemColors.ControlLight;
comboMatrixRunning.Dock = DockStyle.Top; comboMatrixRunning.Dock = DockStyle.Top;
comboMatrixRunning.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point); comboMatrixRunning.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
comboMatrixRunning.FormattingEnabled = true; comboMatrixRunning.FormattingEnabled = true;
@@ -890,7 +888,6 @@ namespace GHelper
// comboKeyboard // comboKeyboard
// //
comboKeyboard.BorderColor = Color.White; comboKeyboard.BorderColor = Color.White;
comboKeyboard.ButtonColor = SystemColors.ControlLight;
comboKeyboard.Dock = DockStyle.Top; comboKeyboard.Dock = DockStyle.Top;
comboKeyboard.FlatStyle = FlatStyle.Flat; comboKeyboard.FlatStyle = FlatStyle.Flat;
comboKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point); comboKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);

View File

@@ -1026,10 +1026,10 @@ namespace GHelper
if (SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online) if (SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online)
Aura.ApplyBrightness(3); Aura.ApplyBrightness(3);
//Program.wmi.DeviceSet(ASUSWmi.UniversalControl, ASUSWmi.KB_Light_Up); //Program.wmi.DeviceSet(ASUSWmi.UniversalControl, ASUSWmi.KB_Light_Up);
else else
Aura.ApplyBrightness(0); Aura.ApplyBrightness(0);
//Program.wmi.DeviceSet(ASUSWmi.UniversalControl, ASUSWmi.KB_Light_Down); //Program.wmi.DeviceSet(ASUSWmi.UniversalControl, ASUSWmi.KB_Light_Down);
} }