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:
@@ -191,8 +191,10 @@ namespace CustomControls
|
||||
{
|
||||
dc = m.WParam;
|
||||
}
|
||||
|
||||
var rgn = CreateRectRgn(innerInnerBorder.Left, innerInnerBorder.Top,
|
||||
innerInnerBorder.Right, innerInnerBorder.Bottom);
|
||||
|
||||
SelectClipRgn(dc, rgn);
|
||||
DefWndProc(ref m);
|
||||
DeleteObject(rgn);
|
||||
|
||||
@@ -335,6 +335,8 @@ namespace GHelper
|
||||
old = curve[i];
|
||||
}
|
||||
|
||||
SaveProfile(series, device);
|
||||
|
||||
}
|
||||
|
||||
void SaveProfile(Series series, int device)
|
||||
|
||||
11
app/Keyboard.Designer.cs
generated
11
app/Keyboard.Designer.cs
generated
@@ -80,7 +80,7 @@ namespace GHelper
|
||||
//
|
||||
// textFNF4
|
||||
//
|
||||
textFNF4.Location = new Point(411, 176);
|
||||
textFNF4.Location = new Point(415, 176);
|
||||
textFNF4.Name = "textFNF4";
|
||||
textFNF4.PlaceholderText = "action";
|
||||
textFNF4.Size = new Size(320, 39);
|
||||
@@ -93,6 +93,7 @@ namespace GHelper
|
||||
comboFNF4.Name = "comboFNF4";
|
||||
comboFNF4.Size = new Size(312, 40);
|
||||
comboFNF4.TabIndex = 7;
|
||||
comboFNF4.BorderColor = Color.White;
|
||||
//
|
||||
// labelFNF4
|
||||
//
|
||||
@@ -105,7 +106,7 @@ namespace GHelper
|
||||
//
|
||||
// textM4
|
||||
//
|
||||
textM4.Location = new Point(411, 113);
|
||||
textM4.Location = new Point(415, 113);
|
||||
textM4.Name = "textM4";
|
||||
textM4.PlaceholderText = "action";
|
||||
textM4.Size = new Size(320, 39);
|
||||
@@ -113,7 +114,7 @@ namespace GHelper
|
||||
//
|
||||
// textM3
|
||||
//
|
||||
textM3.Location = new Point(411, 54);
|
||||
textM3.Location = new Point(415, 54);
|
||||
textM3.Name = "textM3";
|
||||
textM3.PlaceholderText = "notepad /p \"file.txt\"";
|
||||
textM3.Size = new Size(320, 39);
|
||||
@@ -127,6 +128,8 @@ namespace GHelper
|
||||
comboM4.Name = "comboM4";
|
||||
comboM4.Size = new Size(312, 40);
|
||||
comboM4.TabIndex = 3;
|
||||
comboM4.BorderColor = Color.White;
|
||||
|
||||
//
|
||||
// labelM4
|
||||
//
|
||||
@@ -145,6 +148,8 @@ namespace GHelper
|
||||
comboM3.Name = "comboM3";
|
||||
comboM3.Size = new Size(312, 40);
|
||||
comboM3.TabIndex = 1;
|
||||
comboM3.BorderColor = Color.White;
|
||||
|
||||
//
|
||||
// labelM3
|
||||
//
|
||||
|
||||
6
app/Settings.Designer.cs
generated
6
app/Settings.Designer.cs
generated
@@ -380,7 +380,7 @@ namespace GHelper
|
||||
picturePerf.BackgroundImage = (Image)resources.GetObject("picturePerf.BackgroundImage");
|
||||
picturePerf.BackgroundImageLayout = ImageLayout.Zoom;
|
||||
picturePerf.InitialImage = null;
|
||||
picturePerf.Location = new Point(24, 20);
|
||||
picturePerf.Location = new Point(24, 18);
|
||||
picturePerf.Margin = new Padding(4);
|
||||
picturePerf.Name = "picturePerf";
|
||||
picturePerf.Size = new Size(32, 32);
|
||||
@@ -402,7 +402,7 @@ namespace GHelper
|
||||
//
|
||||
labelCPUFan.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
labelCPUFan.Cursor = Cursors.Hand;
|
||||
labelCPUFan.Location = new Point(384, 15);
|
||||
labelCPUFan.Location = new Point(384, 18);
|
||||
labelCPUFan.Margin = new Padding(8, 0, 8, 0);
|
||||
labelCPUFan.Name = "labelCPUFan";
|
||||
labelCPUFan.Size = new Size(400, 36);
|
||||
@@ -988,7 +988,7 @@ namespace GHelper
|
||||
//
|
||||
labelKeyboard.AutoSize = true;
|
||||
labelKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||
labelKeyboard.Location = new Point(60, 13);
|
||||
labelKeyboard.Location = new Point(60, 14);
|
||||
labelKeyboard.Margin = new Padding(8, 0, 8, 0);
|
||||
labelKeyboard.Name = "labelKeyboard";
|
||||
labelKeyboard.Size = new Size(210, 32);
|
||||
|
||||
@@ -874,12 +874,6 @@ namespace GHelper
|
||||
public void SetPower()
|
||||
{
|
||||
|
||||
// fix for misbehaving bios PPTs on G513
|
||||
if (Program.config.ContainsModel("G513") && Program.config.getConfigPerf("auto_apply") != 1)
|
||||
{
|
||||
AutoFans(true);
|
||||
}
|
||||
|
||||
int limit_total = Program.config.getConfigPerf("limit_total");
|
||||
int limit_cpu = Program.config.getConfigPerf("limit_cpu");
|
||||
|
||||
@@ -948,6 +942,13 @@ namespace GHelper
|
||||
public void AutoPower(int delay = 0)
|
||||
{
|
||||
|
||||
// fix for misbehaving bios PPTs on G513
|
||||
if (Program.config.ContainsModel("G513") && Program.config.getConfigPerf("auto_apply") != 1)
|
||||
{
|
||||
AutoFans(true);
|
||||
delay = 500;
|
||||
}
|
||||
|
||||
customPower = 0;
|
||||
|
||||
if (Program.config.getConfigPerf("auto_apply_power") == 1)
|
||||
|
||||
Reference in New Issue
Block a user