mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
UI tweaks
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
@@ -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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ namespace GHelper
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
Logger.WriteLine("Failed to run " + fileName);
|
Logger.WriteLine("Failed to run " + fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3
app/Settings.Designer.cs
generated
3
app/Settings.Designer.cs
generated
@@ -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);
|
||||||
|
|||||||
@@ -855,13 +855,13 @@ namespace GHelper
|
|||||||
{
|
{
|
||||||
Program.settingsForm.labelCPUFan.Text = "CPU" + cpuTemp + HardwareMonitor.cpuFan;
|
Program.settingsForm.labelCPUFan.Text = "CPU" + cpuTemp + HardwareMonitor.cpuFan;
|
||||||
Program.settingsForm.labelGPUFan.Text = "GPU" + gpuTemp + HardwareMonitor.gpuFan;
|
Program.settingsForm.labelGPUFan.Text = "GPU" + gpuTemp + HardwareMonitor.gpuFan;
|
||||||
if (HardwareMonitor.midFan is not null)
|
if (HardwareMonitor.midFan is not null)
|
||||||
Program.settingsForm.labelMidFan.Text = "Mid" + HardwareMonitor.midFan;
|
Program.settingsForm.labelMidFan.Text = "Mid" + HardwareMonitor.midFan;
|
||||||
|
|
||||||
Program.settingsForm.labelBattery.Text = battery;
|
Program.settingsForm.labelBattery.Text = battery;
|
||||||
|
|
||||||
Program.trayIcon.Text = "CPU" + cpuTemp + HardwareMonitor.cpuFan + "\n"
|
Program.trayIcon.Text = "CPU" + cpuTemp + HardwareMonitor.cpuFan + "\n"
|
||||||
+ "GPU" + gpuTemp + HardwareMonitor.gpuFan +
|
+ "GPU" + gpuTemp + HardwareMonitor.gpuFan +
|
||||||
((battery.Length > 0) ? ("\n" + battery) : "");
|
((battery.Length > 0) ? ("\n" + battery) : "");
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user