diff --git a/app/Fans.Designer.cs b/app/Fans.Designer.cs index 6d2d4183..3275f970 100644 --- a/app/Fans.Designer.cs +++ b/app/Fans.Designer.cs @@ -143,24 +143,24 @@ namespace GHelper panelFans.Controls.Add(panelTitleFans); panelFans.Controls.Add(panelApplyFans); panelFans.Dock = DockStyle.Left; - panelFans.Location = new Point(532, 0); + panelFans.Location = new Point(266, 0); panelFans.Margin = new Padding(0); - panelFans.MaximumSize = new Size(816, 0); - panelFans.MinimumSize = new Size(816, 0); + panelFans.MaximumSize = new Size(408, 0); + panelFans.MinimumSize = new Size(408, 0); panelFans.Name = "panelFans"; - panelFans.Padding = new Padding(0, 0, 10, 0); - panelFans.Size = new Size(816, 1310); + panelFans.Padding = new Padding(0, 0, 5, 0); + panelFans.Size = new Size(408, 655); panelFans.TabIndex = 12; // // labelTip // labelTip.AutoSize = true; labelTip.BackColor = SystemColors.ControlLightLight; - labelTip.Location = new Point(684, 92); - labelTip.Margin = new Padding(4, 0, 4, 0); + labelTip.Location = new Point(342, 46); + labelTip.Margin = new Padding(2, 0, 2, 0); labelTip.Name = "labelTip"; - labelTip.Padding = new Padding(4); - labelTip.Size = new Size(105, 40); + labelTip.Padding = new Padding(2, 2, 2, 2); + labelTip.Size = new Size(50, 19); labelTip.TabIndex = 40; labelTip.Text = "500,300"; // @@ -174,16 +174,16 @@ namespace GHelper tableFanCharts.Controls.Add(chartXGM, 0, 2); tableFanCharts.Controls.Add(chartMid, 0, 2); tableFanCharts.Dock = DockStyle.Fill; - tableFanCharts.Location = new Point(0, 66); - tableFanCharts.Margin = new Padding(4); + tableFanCharts.Location = new Point(0, 33); + tableFanCharts.Margin = new Padding(2, 2, 2, 2); tableFanCharts.Name = "tableFanCharts"; - tableFanCharts.Padding = new Padding(10, 0, 10, 10); + tableFanCharts.Padding = new Padding(5, 0, 5, 5); tableFanCharts.RowCount = 2; tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F)); tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F)); tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F)); tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F)); - tableFanCharts.Size = new Size(806, 1128); + tableFanCharts.Size = new Size(403, 564); tableFanCharts.TabIndex = 36; // // chartGPU @@ -191,10 +191,10 @@ namespace GHelper chartArea1.Name = "ChartArea1"; chartGPU.ChartAreas.Add(chartArea1); chartGPU.Dock = DockStyle.Fill; - chartGPU.Location = new Point(12, 289); - chartGPU.Margin = new Padding(2, 10, 2, 10); + chartGPU.Location = new Point(6, 144); + chartGPU.Margin = new Padding(1, 5, 1, 5); chartGPU.Name = "chartGPU"; - chartGPU.Size = new Size(782, 259); + chartGPU.Size = new Size(391, 129); chartGPU.TabIndex = 17; chartGPU.Text = "chartGPU"; title1.Name = "Title1"; @@ -205,10 +205,10 @@ namespace GHelper chartArea2.Name = "ChartArea1"; chartCPU.ChartAreas.Add(chartArea2); chartCPU.Dock = DockStyle.Fill; - chartCPU.Location = new Point(12, 10); - chartCPU.Margin = new Padding(2, 10, 2, 10); + chartCPU.Location = new Point(6, 5); + chartCPU.Margin = new Padding(1, 5, 1, 5); chartCPU.Name = "chartCPU"; - chartCPU.Size = new Size(782, 259); + chartCPU.Size = new Size(391, 129); chartCPU.TabIndex = 14; chartCPU.Text = "chartCPU"; title2.Name = "Title1"; @@ -219,10 +219,10 @@ namespace GHelper chartArea3.Name = "ChartAreaXGM"; chartXGM.ChartAreas.Add(chartArea3); chartXGM.Dock = DockStyle.Fill; - chartXGM.Location = new Point(12, 847); - chartXGM.Margin = new Padding(2, 10, 2, 10); + chartXGM.Location = new Point(6, 422); + chartXGM.Margin = new Padding(1, 5, 1, 5); chartXGM.Name = "chartXGM"; - chartXGM.Size = new Size(782, 261); + chartXGM.Size = new Size(391, 132); chartXGM.TabIndex = 14; chartXGM.Text = "chartXGM"; title3.Name = "Title4"; @@ -234,10 +234,10 @@ namespace GHelper chartArea4.Name = "ChartArea3"; chartMid.ChartAreas.Add(chartArea4); chartMid.Dock = DockStyle.Fill; - chartMid.Location = new Point(12, 568); - chartMid.Margin = new Padding(2, 10, 2, 10); + chartMid.Location = new Point(6, 283); + chartMid.Margin = new Padding(1, 5, 1, 5); chartMid.Name = "chartMid"; - chartMid.Size = new Size(782, 259); + chartMid.Size = new Size(391, 129); chartMid.TabIndex = 14; chartMid.Text = "chartMid"; title4.Name = "Title3"; @@ -254,9 +254,9 @@ namespace GHelper panelTitleFans.Controls.Add(labelFans); panelTitleFans.Dock = DockStyle.Top; panelTitleFans.Location = new Point(0, 0); - panelTitleFans.Margin = new Padding(4); + panelTitleFans.Margin = new Padding(2, 2, 2, 2); panelTitleFans.Name = "panelTitleFans"; - panelTitleFans.Size = new Size(806, 66); + panelTitleFans.Size = new Size(403, 33); panelTitleFans.TabIndex = 42; // // buttonRename @@ -268,11 +268,11 @@ namespace GHelper buttonRename.BorderRadius = 2; buttonRename.FlatStyle = FlatStyle.Flat; buttonRename.Image = Properties.Resources.icons8_edit_32; - buttonRename.Location = new Point(376, 10); - buttonRename.Margin = new Padding(4, 2, 4, 2); + buttonRename.Location = new Point(188, 5); + buttonRename.Margin = new Padding(2, 1, 2, 1); buttonRename.Name = "buttonRename"; buttonRename.Secondary = true; - buttonRename.Size = new Size(52, 46); + buttonRename.Size = new Size(26, 23); buttonRename.TabIndex = 45; buttonRename.UseVisualStyleBackColor = false; // @@ -285,11 +285,11 @@ namespace GHelper buttonRemove.BorderRadius = 2; buttonRemove.FlatStyle = FlatStyle.Flat; buttonRemove.Image = Properties.Resources.icons8_remove_64; - buttonRemove.Location = new Point(322, 10); - buttonRemove.Margin = new Padding(4, 2, 4, 2); + buttonRemove.Location = new Point(161, 5); + buttonRemove.Margin = new Padding(2, 1, 2, 1); buttonRemove.Name = "buttonRemove"; buttonRemove.Secondary = true; - buttonRemove.Size = new Size(52, 46); + buttonRemove.Size = new Size(26, 23); buttonRemove.TabIndex = 44; buttonRemove.UseVisualStyleBackColor = false; // @@ -302,11 +302,11 @@ namespace GHelper buttonAdd.BorderRadius = 2; buttonAdd.FlatStyle = FlatStyle.Flat; buttonAdd.Image = Properties.Resources.icons8_add_64; - buttonAdd.Location = new Point(744, 10); - buttonAdd.Margin = new Padding(4, 2, 4, 2); + buttonAdd.Location = new Point(372, 5); + buttonAdd.Margin = new Padding(2, 1, 2, 1); buttonAdd.Name = "buttonAdd"; buttonAdd.Secondary = true; - buttonAdd.Size = new Size(52, 46); + buttonAdd.Size = new Size(26, 23); buttonAdd.TabIndex = 43; buttonAdd.UseVisualStyleBackColor = false; // @@ -317,10 +317,10 @@ namespace GHelper comboModes.ButtonColor = Color.FromArgb(255, 255, 255); comboModes.FlatStyle = FlatStyle.Flat; comboModes.FormattingEnabled = true; - comboModes.Location = new Point(436, 14); - comboModes.Margin = new Padding(4); + comboModes.Location = new Point(218, 7); + comboModes.Margin = new Padding(0); comboModes.Name = "comboModes"; - comboModes.Size = new Size(302, 40); + comboModes.Size = new Size(153, 23); comboModes.TabIndex = 42; // // picturePerf @@ -328,10 +328,10 @@ namespace GHelper picturePerf.BackgroundImage = Properties.Resources.icons8_fan_head_96; picturePerf.BackgroundImageLayout = ImageLayout.Zoom; picturePerf.InitialImage = null; - picturePerf.Location = new Point(18, 18); - picturePerf.Margin = new Padding(4, 2, 4, 2); + picturePerf.Location = new Point(9, 9); + picturePerf.Margin = new Padding(2, 1, 2, 1); picturePerf.Name = "picturePerf"; - picturePerf.Size = new Size(36, 38); + picturePerf.Size = new Size(18, 19); picturePerf.TabIndex = 41; picturePerf.TabStop = false; // @@ -339,10 +339,10 @@ namespace GHelper // labelFans.AutoSize = true; labelFans.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelFans.Location = new Point(52, 20); - labelFans.Margin = new Padding(4, 0, 4, 0); + labelFans.Location = new Point(26, 10); + labelFans.Margin = new Padding(2, 0, 2, 0); labelFans.Name = "labelFans"; - labelFans.Size = new Size(90, 32); + labelFans.Size = new Size(44, 15); labelFans.TabIndex = 40; labelFans.Text = "Profile"; // @@ -352,20 +352,20 @@ namespace GHelper panelApplyFans.Controls.Add(checkApplyFans); panelApplyFans.Controls.Add(buttonReset); panelApplyFans.Dock = DockStyle.Bottom; - panelApplyFans.Location = new Point(0, 1194); - panelApplyFans.Margin = new Padding(4); + panelApplyFans.Location = new Point(0, 597); + panelApplyFans.Margin = new Padding(2, 2, 2, 2); panelApplyFans.Name = "panelApplyFans"; - panelApplyFans.Size = new Size(806, 116); + panelApplyFans.Size = new Size(403, 58); panelApplyFans.TabIndex = 43; // // labelFansResult // labelFansResult.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; labelFansResult.ForeColor = Color.Red; - labelFansResult.Location = new Point(24, 4); - labelFansResult.Margin = new Padding(4, 0, 4, 0); + labelFansResult.Location = new Point(12, 2); + labelFansResult.Margin = new Padding(2, 0, 2, 0); labelFansResult.Name = "labelFansResult"; - labelFansResult.Size = new Size(762, 32); + labelFansResult.Size = new Size(381, 16); labelFansResult.TabIndex = 42; labelFansResult.TextAlign = ContentAlignment.TopRight; labelFansResult.Visible = false; @@ -375,11 +375,11 @@ namespace GHelper checkApplyFans.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; checkApplyFans.AutoSize = true; checkApplyFans.BackColor = SystemColors.ControlLight; - checkApplyFans.Location = new Point(453, 46); - checkApplyFans.Margin = new Padding(4, 2, 4, 2); + checkApplyFans.Location = new Point(223, 23); + checkApplyFans.Margin = new Padding(2, 1, 2, 1); checkApplyFans.Name = "checkApplyFans"; - checkApplyFans.Padding = new Padding(16, 4, 16, 4); - checkApplyFans.Size = new Size(341, 44); + checkApplyFans.Padding = new Padding(8, 2, 8, 2); + checkApplyFans.Size = new Size(174, 23); checkApplyFans.TabIndex = 19; checkApplyFans.Text = Properties.Strings.ApplyFanCurve; checkApplyFans.UseVisualStyleBackColor = false; @@ -392,21 +392,21 @@ namespace GHelper buttonReset.BorderColor = Color.Transparent; buttonReset.BorderRadius = 2; buttonReset.FlatStyle = FlatStyle.Flat; - buttonReset.Location = new Point(12, 38); - buttonReset.Margin = new Padding(4, 2, 4, 2); + buttonReset.Location = new Point(6, 19); + buttonReset.Margin = new Padding(2, 1, 2, 1); buttonReset.Name = "buttonReset"; buttonReset.Secondary = true; - buttonReset.Size = new Size(274, 54); + buttonReset.Size = new Size(137, 27); buttonReset.TabIndex = 18; buttonReset.Text = Properties.Strings.FactoryDefaults; buttonReset.UseVisualStyleBackColor = false; // // labelBoost // - labelBoost.Location = new Point(10, 10); - labelBoost.Margin = new Padding(4, 0, 4, 0); + labelBoost.Location = new Point(5, 5); + labelBoost.Margin = new Padding(2, 0, 2, 0); labelBoost.Name = "labelBoost"; - labelBoost.Size = new Size(200, 40); + labelBoost.Size = new Size(100, 20); labelBoost.TabIndex = 43; labelBoost.Text = "CPU Boost"; labelBoost.TextAlign = ContentAlignment.MiddleLeft; @@ -419,10 +419,10 @@ namespace GHelper comboBoost.DropDownStyle = ComboBoxStyle.DropDownList; comboBoost.FormattingEnabled = true; comboBoost.Items.AddRange(new object[] { "Disabled", "Enabled", "Aggressive", "Efficient Enabled", "Efficient Aggressive", "Aggressive at Guaranteed", "Efficient at Guaranteed" }); - comboBoost.Location = new Point(226, 10); - comboBoost.Margin = new Padding(4); + comboBoost.Location = new Point(113, 5); + comboBoost.Margin = new Padding(2, 2, 2, 2); comboBoost.Name = "comboBoost"; - comboBoost.Size = new Size(286, 40); + comboBoost.Size = new Size(145, 23); comboBoost.TabIndex = 42; // // panelSliders @@ -433,8 +433,8 @@ namespace GHelper panelSliders.Location = new Point(0, 0); panelSliders.Margin = new Padding(0); panelSliders.Name = "panelSliders"; - panelSliders.Padding = new Padding(10, 0, 0, 0); - panelSliders.Size = new Size(532, 1310); + panelSliders.Padding = new Padding(5, 0, 0, 0); + panelSliders.Size = new Size(266, 655); panelSliders.TabIndex = 13; // // panelPower @@ -449,21 +449,21 @@ namespace GHelper panelPower.Controls.Add(panelBoost); panelPower.Controls.Add(panelTitleCPU); panelPower.Dock = DockStyle.Fill; - panelPower.Location = new Point(10, 580); - panelPower.Margin = new Padding(4); + panelPower.Location = new Point(5, 290); + panelPower.Margin = new Padding(2, 2, 2, 2); panelPower.Name = "panelPower"; - panelPower.Size = new Size(522, 730); + panelPower.Size = new Size(261, 365); panelPower.TabIndex = 43; // // panelApplyPower // panelApplyPower.Controls.Add(checkApplyPower); panelApplyPower.Dock = DockStyle.Bottom; - panelApplyPower.Location = new Point(0, 640); - panelApplyPower.Margin = new Padding(4); + panelApplyPower.Location = new Point(0, 320); + panelApplyPower.Margin = new Padding(2, 2, 2, 2); panelApplyPower.Name = "panelApplyPower"; - panelApplyPower.Padding = new Padding(10); - panelApplyPower.Size = new Size(522, 90); + panelApplyPower.Padding = new Padding(5, 5, 5, 5); + panelApplyPower.Size = new Size(261, 45); panelApplyPower.TabIndex = 44; // // checkApplyPower @@ -471,11 +471,11 @@ namespace GHelper checkApplyPower.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; checkApplyPower.AutoSize = true; checkApplyPower.BackColor = SystemColors.ControlLight; - checkApplyPower.Location = new Point(18, 20); - checkApplyPower.Margin = new Padding(10); + checkApplyPower.Location = new Point(9, 9); + checkApplyPower.Margin = new Padding(5, 5, 5, 5); checkApplyPower.Name = "checkApplyPower"; - checkApplyPower.Padding = new Padding(16, 4, 16, 4); - checkApplyPower.Size = new Size(279, 44); + checkApplyPower.Padding = new Padding(8, 2, 8, 2); + checkApplyPower.Size = new Size(144, 23); checkApplyPower.TabIndex = 45; checkApplyPower.Text = Properties.Strings.ApplyPowerLimits; checkApplyPower.UseVisualStyleBackColor = false; @@ -483,11 +483,11 @@ namespace GHelper // labelInfo // labelInfo.Dock = DockStyle.Top; - labelInfo.Location = new Point(0, 502); - labelInfo.Margin = new Padding(4, 0, 4, 0); + labelInfo.Location = new Point(0, 251); + labelInfo.Margin = new Padding(2, 0, 2, 0); labelInfo.Name = "labelInfo"; - labelInfo.Padding = new Padding(4); - labelInfo.Size = new Size(522, 100); + labelInfo.Padding = new Padding(2, 2, 2, 2); + labelInfo.Size = new Size(261, 50); labelInfo.TabIndex = 43; labelInfo.Text = "Experimental Feature"; // @@ -499,20 +499,20 @@ namespace GHelper panelB0.Controls.Add(labelLeftB0); panelB0.Controls.Add(trackB0); panelB0.Dock = DockStyle.Top; - panelB0.Location = new Point(0, 378); - panelB0.Margin = new Padding(4); - panelB0.MaximumSize = new Size(0, 124); + panelB0.Location = new Point(0, 189); + panelB0.Margin = new Padding(2, 2, 2, 2); + panelB0.MaximumSize = new Size(0, 62); panelB0.Name = "panelB0"; - panelB0.Size = new Size(522, 124); + panelB0.Size = new Size(261, 62); panelB0.TabIndex = 41; // // labelB0 // labelB0.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelB0.Location = new Point(398, 8); - labelB0.Margin = new Padding(4, 0, 4, 0); + labelB0.Location = new Point(199, 4); + labelB0.Margin = new Padding(2, 0, 2, 0); labelB0.Name = "labelB0"; - labelB0.Size = new Size(116, 32); + labelB0.Size = new Size(58, 16); labelB0.TabIndex = 13; labelB0.Text = "CPU"; labelB0.TextAlign = ContentAlignment.TopRight; @@ -520,21 +520,21 @@ namespace GHelper // labelLeftB0 // labelLeftB0.AutoSize = true; - labelLeftB0.Location = new Point(10, 8); - labelLeftB0.Margin = new Padding(4, 0, 4, 0); + labelLeftB0.Location = new Point(5, 4); + labelLeftB0.Margin = new Padding(2, 0, 2, 0); labelLeftB0.Name = "labelLeftB0"; - labelLeftB0.Size = new Size(58, 32); + labelLeftB0.Size = new Size(30, 15); labelLeftB0.TabIndex = 12; labelLeftB0.Text = "CPU"; // // trackB0 // - trackB0.Location = new Point(6, 44); - trackB0.Margin = new Padding(4, 2, 4, 2); + trackB0.Location = new Point(3, 22); + trackB0.Margin = new Padding(2, 1, 2, 1); trackB0.Maximum = 85; trackB0.Minimum = 5; trackB0.Name = "trackB0"; - trackB0.Size = new Size(508, 90); + trackB0.Size = new Size(254, 45); trackB0.TabIndex = 11; trackB0.TickFrequency = 5; trackB0.TickStyle = TickStyle.TopLeft; @@ -548,20 +548,20 @@ namespace GHelper panelC1.Controls.Add(labelLeftC1); panelC1.Controls.Add(trackC1); panelC1.Dock = DockStyle.Top; - panelC1.Location = new Point(0, 254); - panelC1.Margin = new Padding(4); - panelC1.MaximumSize = new Size(0, 124); + panelC1.Location = new Point(0, 127); + panelC1.Margin = new Padding(2, 2, 2, 2); + panelC1.MaximumSize = new Size(0, 62); panelC1.Name = "panelC1"; - panelC1.Size = new Size(522, 124); + panelC1.Size = new Size(261, 62); panelC1.TabIndex = 45; // // labelC1 // labelC1.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelC1.Location = new Point(396, 8); - labelC1.Margin = new Padding(4, 0, 4, 0); + labelC1.Location = new Point(198, 4); + labelC1.Margin = new Padding(2, 0, 2, 0); labelC1.Name = "labelC1"; - labelC1.Size = new Size(114, 32); + labelC1.Size = new Size(57, 16); labelC1.TabIndex = 13; labelC1.Text = "C1"; labelC1.TextAlign = ContentAlignment.TopRight; @@ -569,21 +569,21 @@ namespace GHelper // labelLeftC1 // labelLeftC1.AutoSize = true; - labelLeftC1.Location = new Point(10, 8); - labelLeftC1.Margin = new Padding(4, 0, 4, 0); + labelLeftC1.Location = new Point(5, 4); + labelLeftC1.Margin = new Padding(2, 0, 2, 0); labelLeftC1.Name = "labelLeftC1"; - labelLeftC1.Size = new Size(42, 32); + labelLeftC1.Size = new Size(21, 15); labelLeftC1.TabIndex = 12; labelLeftC1.Text = "C1"; // // trackC1 // - trackC1.Location = new Point(6, 48); - trackC1.Margin = new Padding(4, 2, 4, 2); + trackC1.Location = new Point(3, 24); + trackC1.Margin = new Padding(2, 1, 2, 1); trackC1.Maximum = 85; trackC1.Minimum = 5; trackC1.Name = "trackC1"; - trackC1.Size = new Size(508, 90); + trackC1.Size = new Size(254, 45); trackC1.TabIndex = 11; trackC1.TickFrequency = 5; trackC1.TickStyle = TickStyle.TopLeft; @@ -597,20 +597,20 @@ namespace GHelper panelA0.Controls.Add(labelLeftA0); panelA0.Controls.Add(trackA0); panelA0.Dock = DockStyle.Top; - panelA0.Location = new Point(0, 130); - panelA0.Margin = new Padding(4); - panelA0.MaximumSize = new Size(0, 124); + panelA0.Location = new Point(0, 65); + panelA0.Margin = new Padding(2, 2, 2, 2); + panelA0.MaximumSize = new Size(0, 62); panelA0.Name = "panelA0"; - panelA0.Size = new Size(522, 124); + panelA0.Size = new Size(261, 62); panelA0.TabIndex = 40; // // labelA0 // labelA0.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelA0.Location = new Point(396, 10); - labelA0.Margin = new Padding(4, 0, 4, 0); + labelA0.Location = new Point(198, 5); + labelA0.Margin = new Padding(2, 0, 2, 0); labelA0.Name = "labelA0"; - labelA0.Size = new Size(116, 32); + labelA0.Size = new Size(58, 16); labelA0.TabIndex = 12; labelA0.Text = "Platform"; labelA0.TextAlign = ContentAlignment.TopRight; @@ -618,21 +618,21 @@ namespace GHelper // labelLeftA0 // labelLeftA0.AutoSize = true; - labelLeftA0.Location = new Point(10, 10); - labelLeftA0.Margin = new Padding(4, 0, 4, 0); + labelLeftA0.Location = new Point(5, 5); + labelLeftA0.Margin = new Padding(2, 0, 2, 0); labelLeftA0.Name = "labelLeftA0"; - labelLeftA0.Size = new Size(104, 32); + labelLeftA0.Size = new Size(53, 15); labelLeftA0.TabIndex = 11; labelLeftA0.Text = "Platform"; // // trackA0 // - trackA0.Location = new Point(6, 48); - trackA0.Margin = new Padding(4, 2, 4, 2); + trackA0.Location = new Point(3, 24); + trackA0.Margin = new Padding(2, 1, 2, 1); trackA0.Maximum = 180; trackA0.Minimum = 10; trackA0.Name = "trackA0"; - trackA0.Size = new Size(508, 90); + trackA0.Size = new Size(254, 45); trackA0.TabIndex = 10; trackA0.TickFrequency = 5; trackA0.TickStyle = TickStyle.TopLeft; @@ -643,10 +643,10 @@ namespace GHelper panelBoost.Controls.Add(comboBoost); panelBoost.Controls.Add(labelBoost); panelBoost.Dock = DockStyle.Top; - panelBoost.Location = new Point(0, 66); - panelBoost.Margin = new Padding(4); + panelBoost.Location = new Point(0, 33); + panelBoost.Margin = new Padding(2, 2, 2, 2); panelBoost.Name = "panelBoost"; - panelBoost.Size = new Size(522, 64); + panelBoost.Size = new Size(261, 32); panelBoost.TabIndex = 13; // // panelTitleCPU @@ -657,9 +657,9 @@ namespace GHelper panelTitleCPU.Controls.Add(labelPowerLimits); panelTitleCPU.Dock = DockStyle.Top; panelTitleCPU.Location = new Point(0, 0); - panelTitleCPU.Margin = new Padding(4); + panelTitleCPU.Margin = new Padding(2, 2, 2, 2); panelTitleCPU.Name = "panelTitleCPU"; - panelTitleCPU.Size = new Size(522, 66); + panelTitleCPU.Size = new Size(261, 33); panelTitleCPU.TabIndex = 42; // // pictureBox1 @@ -667,10 +667,10 @@ namespace GHelper pictureBox1.BackgroundImage = Properties.Resources.icons8_processor_96; pictureBox1.BackgroundImageLayout = ImageLayout.Zoom; pictureBox1.InitialImage = null; - pictureBox1.Location = new Point(10, 18); - pictureBox1.Margin = new Padding(4, 2, 4, 10); + pictureBox1.Location = new Point(5, 9); + pictureBox1.Margin = new Padding(2, 1, 2, 5); pictureBox1.Name = "pictureBox1"; - pictureBox1.Size = new Size(36, 38); + pictureBox1.Size = new Size(18, 19); pictureBox1.TabIndex = 40; pictureBox1.TabStop = false; // @@ -678,10 +678,10 @@ namespace GHelper // labelPowerLimits.AutoSize = true; labelPowerLimits.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelPowerLimits.Location = new Point(48, 20); - labelPowerLimits.Margin = new Padding(4, 0, 4, 0); + labelPowerLimits.Location = new Point(24, 10); + labelPowerLimits.Margin = new Padding(2, 0, 2, 0); labelPowerLimits.Name = "labelPowerLimits"; - labelPowerLimits.Size = new Size(160, 32); + labelPowerLimits.Size = new Size(79, 15); labelPowerLimits.TabIndex = 39; labelPowerLimits.Text = "Power Limits"; // @@ -694,11 +694,11 @@ namespace GHelper panelGPU.Controls.Add(panelGPUCore); panelGPU.Controls.Add(panelTitleGPU); panelGPU.Dock = DockStyle.Top; - panelGPU.Location = new Point(10, 0); - panelGPU.Margin = new Padding(4); + panelGPU.Location = new Point(5, 0); + panelGPU.Margin = new Padding(2, 2, 2, 2); panelGPU.Name = "panelGPU"; - panelGPU.Padding = new Padding(0, 0, 0, 18); - panelGPU.Size = new Size(522, 580); + panelGPU.Padding = new Padding(0, 0, 0, 9); + panelGPU.Size = new Size(261, 290); panelGPU.TabIndex = 44; // // panelGPUTemp @@ -709,20 +709,20 @@ namespace GHelper panelGPUTemp.Controls.Add(labelGPUTempTitle); panelGPUTemp.Controls.Add(trackGPUTemp); panelGPUTemp.Dock = DockStyle.Top; - panelGPUTemp.Location = new Point(0, 438); - panelGPUTemp.Margin = new Padding(4); - panelGPUTemp.MaximumSize = new Size(0, 124); + panelGPUTemp.Location = new Point(0, 219); + panelGPUTemp.Margin = new Padding(2, 2, 2, 2); + panelGPUTemp.MaximumSize = new Size(0, 62); panelGPUTemp.Name = "panelGPUTemp"; - panelGPUTemp.Size = new Size(522, 124); + panelGPUTemp.Size = new Size(261, 62); panelGPUTemp.TabIndex = 47; // // labelGPUTemp // labelGPUTemp.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelGPUTemp.Location = new Point(378, 14); - labelGPUTemp.Margin = new Padding(4, 0, 4, 0); + labelGPUTemp.Location = new Point(189, 7); + labelGPUTemp.Margin = new Padding(2, 0, 2, 0); labelGPUTemp.Name = "labelGPUTemp"; - labelGPUTemp.Size = new Size(124, 32); + labelGPUTemp.Size = new Size(62, 16); labelGPUTemp.TabIndex = 44; labelGPUTemp.Text = "87C"; labelGPUTemp.TextAlign = ContentAlignment.TopRight; @@ -730,21 +730,21 @@ namespace GHelper // labelGPUTempTitle // labelGPUTempTitle.AutoSize = true; - labelGPUTempTitle.Location = new Point(10, 14); - labelGPUTempTitle.Margin = new Padding(4, 0, 4, 0); + labelGPUTempTitle.Location = new Point(5, 7); + labelGPUTempTitle.Margin = new Padding(2, 0, 2, 0); labelGPUTempTitle.Name = "labelGPUTempTitle"; - labelGPUTempTitle.Size = new Size(173, 32); + labelGPUTempTitle.Size = new Size(85, 15); labelGPUTempTitle.TabIndex = 43; labelGPUTempTitle.Text = "Thermal Target"; // // trackGPUTemp // - trackGPUTemp.Location = new Point(6, 56); - trackGPUTemp.Margin = new Padding(4, 2, 4, 2); + trackGPUTemp.Location = new Point(3, 28); + trackGPUTemp.Margin = new Padding(2, 1, 2, 1); trackGPUTemp.Maximum = 87; trackGPUTemp.Minimum = 75; trackGPUTemp.Name = "trackGPUTemp"; - trackGPUTemp.Size = new Size(496, 90); + trackGPUTemp.Size = new Size(248, 45); trackGPUTemp.TabIndex = 42; trackGPUTemp.TickFrequency = 5; trackGPUTemp.TickStyle = TickStyle.TopLeft; @@ -758,20 +758,20 @@ namespace GHelper panelGPUBoost.Controls.Add(labelGPUBoostTitle); panelGPUBoost.Controls.Add(trackGPUBoost); panelGPUBoost.Dock = DockStyle.Top; - panelGPUBoost.Location = new Point(0, 314); - panelGPUBoost.Margin = new Padding(4); - panelGPUBoost.MaximumSize = new Size(0, 124); + panelGPUBoost.Location = new Point(0, 157); + panelGPUBoost.Margin = new Padding(2, 2, 2, 2); + panelGPUBoost.MaximumSize = new Size(0, 62); panelGPUBoost.Name = "panelGPUBoost"; - panelGPUBoost.Size = new Size(522, 124); + panelGPUBoost.Size = new Size(261, 62); panelGPUBoost.TabIndex = 46; // // labelGPUBoost // labelGPUBoost.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelGPUBoost.Location = new Point(374, 14); - labelGPUBoost.Margin = new Padding(4, 0, 4, 0); + labelGPUBoost.Location = new Point(187, 7); + labelGPUBoost.Margin = new Padding(2, 0, 2, 0); labelGPUBoost.Name = "labelGPUBoost"; - labelGPUBoost.Size = new Size(124, 32); + labelGPUBoost.Size = new Size(62, 16); labelGPUBoost.TabIndex = 44; labelGPUBoost.Text = "25W"; labelGPUBoost.TextAlign = ContentAlignment.TopRight; @@ -779,21 +779,21 @@ namespace GHelper // labelGPUBoostTitle // labelGPUBoostTitle.AutoSize = true; - labelGPUBoostTitle.Location = new Point(10, 14); - labelGPUBoostTitle.Margin = new Padding(4, 0, 4, 0); + labelGPUBoostTitle.Location = new Point(5, 7); + labelGPUBoostTitle.Margin = new Padding(2, 0, 2, 0); labelGPUBoostTitle.Name = "labelGPUBoostTitle"; - labelGPUBoostTitle.Size = new Size(174, 32); + labelGPUBoostTitle.Size = new Size(87, 15); labelGPUBoostTitle.TabIndex = 43; labelGPUBoostTitle.Text = "Dynamic Boost"; // // trackGPUBoost // - trackGPUBoost.Location = new Point(6, 48); - trackGPUBoost.Margin = new Padding(4, 2, 4, 2); + trackGPUBoost.Location = new Point(3, 24); + trackGPUBoost.Margin = new Padding(2, 1, 2, 1); trackGPUBoost.Maximum = 25; trackGPUBoost.Minimum = 5; trackGPUBoost.Name = "trackGPUBoost"; - trackGPUBoost.Size = new Size(496, 90); + trackGPUBoost.Size = new Size(248, 45); trackGPUBoost.TabIndex = 42; trackGPUBoost.TickFrequency = 5; trackGPUBoost.TickStyle = TickStyle.TopLeft; @@ -807,20 +807,20 @@ namespace GHelper panelGPUMemory.Controls.Add(labelGPUMemoryTitle); panelGPUMemory.Controls.Add(trackGPUMemory); panelGPUMemory.Dock = DockStyle.Top; - panelGPUMemory.Location = new Point(0, 190); - panelGPUMemory.Margin = new Padding(4); - panelGPUMemory.MaximumSize = new Size(0, 124); + panelGPUMemory.Location = new Point(0, 95); + panelGPUMemory.Margin = new Padding(2, 2, 2, 2); + panelGPUMemory.MaximumSize = new Size(0, 62); panelGPUMemory.Name = "panelGPUMemory"; - panelGPUMemory.Size = new Size(522, 124); + panelGPUMemory.Size = new Size(261, 62); panelGPUMemory.TabIndex = 45; // // labelGPUMemory // labelGPUMemory.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelGPUMemory.Location = new Point(344, 14); - labelGPUMemory.Margin = new Padding(4, 0, 4, 0); + labelGPUMemory.Location = new Point(172, 7); + labelGPUMemory.Margin = new Padding(2, 0, 2, 0); labelGPUMemory.Name = "labelGPUMemory"; - labelGPUMemory.Size = new Size(160, 32); + labelGPUMemory.Size = new Size(80, 16); labelGPUMemory.TabIndex = 44; labelGPUMemory.Text = "2000 MHz"; labelGPUMemory.TextAlign = ContentAlignment.TopRight; @@ -828,21 +828,21 @@ namespace GHelper // labelGPUMemoryTitle // labelGPUMemoryTitle.AutoSize = true; - labelGPUMemoryTitle.Location = new Point(10, 14); - labelGPUMemoryTitle.Margin = new Padding(4, 0, 4, 0); + labelGPUMemoryTitle.Location = new Point(5, 7); + labelGPUMemoryTitle.Margin = new Padding(2, 0, 2, 0); labelGPUMemoryTitle.Name = "labelGPUMemoryTitle"; - labelGPUMemoryTitle.Size = new Size(241, 32); + labelGPUMemoryTitle.Size = new Size(120, 15); labelGPUMemoryTitle.TabIndex = 43; labelGPUMemoryTitle.Text = "Memory Clock Offset"; // // trackGPUMemory // trackGPUMemory.LargeChange = 100; - trackGPUMemory.Location = new Point(6, 48); - trackGPUMemory.Margin = new Padding(4, 2, 4, 2); + trackGPUMemory.Location = new Point(3, 24); + trackGPUMemory.Margin = new Padding(2, 1, 2, 1); trackGPUMemory.Maximum = 300; trackGPUMemory.Name = "trackGPUMemory"; - trackGPUMemory.Size = new Size(496, 90); + trackGPUMemory.Size = new Size(248, 45); trackGPUMemory.SmallChange = 10; trackGPUMemory.TabIndex = 42; trackGPUMemory.TickFrequency = 50; @@ -856,20 +856,20 @@ namespace GHelper panelGPUCore.Controls.Add(trackGPUCore); panelGPUCore.Controls.Add(labelGPUCoreTitle); panelGPUCore.Dock = DockStyle.Top; - panelGPUCore.Location = new Point(0, 66); - panelGPUCore.Margin = new Padding(4); - panelGPUCore.MaximumSize = new Size(0, 124); + panelGPUCore.Location = new Point(0, 33); + panelGPUCore.Margin = new Padding(2, 2, 2, 2); + panelGPUCore.MaximumSize = new Size(0, 62); panelGPUCore.Name = "panelGPUCore"; - panelGPUCore.Size = new Size(522, 124); + panelGPUCore.Size = new Size(261, 62); panelGPUCore.TabIndex = 44; // // labelGPUCore // labelGPUCore.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelGPUCore.Location = new Point(326, 16); - labelGPUCore.Margin = new Padding(4, 0, 4, 0); + labelGPUCore.Location = new Point(163, 8); + labelGPUCore.Margin = new Padding(2, 0, 2, 0); labelGPUCore.Name = "labelGPUCore"; - labelGPUCore.Size = new Size(176, 32); + labelGPUCore.Size = new Size(88, 16); labelGPUCore.TabIndex = 29; labelGPUCore.Text = "1500 MHz"; labelGPUCore.TextAlign = ContentAlignment.TopRight; @@ -877,12 +877,12 @@ namespace GHelper // trackGPUCore // trackGPUCore.LargeChange = 100; - trackGPUCore.Location = new Point(6, 48); - trackGPUCore.Margin = new Padding(4, 2, 4, 2); + trackGPUCore.Location = new Point(3, 24); + trackGPUCore.Margin = new Padding(2, 1, 2, 1); trackGPUCore.Maximum = 300; trackGPUCore.Name = "trackGPUCore"; trackGPUCore.RightToLeft = RightToLeft.No; - trackGPUCore.Size = new Size(496, 90); + trackGPUCore.Size = new Size(248, 45); trackGPUCore.SmallChange = 10; trackGPUCore.TabIndex = 18; trackGPUCore.TickFrequency = 50; @@ -891,10 +891,10 @@ namespace GHelper // labelGPUCoreTitle // labelGPUCoreTitle.AutoSize = true; - labelGPUCoreTitle.Location = new Point(10, 16); - labelGPUCoreTitle.Margin = new Padding(4, 0, 4, 0); + labelGPUCoreTitle.Location = new Point(5, 8); + labelGPUCoreTitle.Margin = new Padding(2, 0, 2, 0); labelGPUCoreTitle.Name = "labelGPUCoreTitle"; - labelGPUCoreTitle.Size = new Size(201, 32); + labelGPUCoreTitle.Size = new Size(100, 15); labelGPUCoreTitle.TabIndex = 17; labelGPUCoreTitle.Text = "Core Clock Offset"; // @@ -906,9 +906,9 @@ namespace GHelper panelTitleGPU.Controls.Add(labelGPU); panelTitleGPU.Dock = DockStyle.Top; panelTitleGPU.Location = new Point(0, 0); - panelTitleGPU.Margin = new Padding(4); + panelTitleGPU.Margin = new Padding(2, 2, 2, 2); panelTitleGPU.Name = "panelTitleGPU"; - panelTitleGPU.Size = new Size(522, 66); + panelTitleGPU.Size = new Size(261, 33); panelTitleGPU.TabIndex = 43; // // pictureGPU @@ -917,10 +917,10 @@ namespace GHelper pictureGPU.BackgroundImageLayout = ImageLayout.Zoom; pictureGPU.ErrorImage = null; pictureGPU.InitialImage = null; - pictureGPU.Location = new Point(10, 18); - pictureGPU.Margin = new Padding(4, 2, 4, 10); + pictureGPU.Location = new Point(5, 9); + pictureGPU.Margin = new Padding(2, 1, 2, 5); pictureGPU.Name = "pictureGPU"; - pictureGPU.Size = new Size(36, 38); + pictureGPU.Size = new Size(18, 19); pictureGPU.TabIndex = 41; pictureGPU.TabStop = false; // @@ -928,26 +928,26 @@ namespace GHelper // labelGPU.AutoSize = true; labelGPU.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelGPU.Location = new Point(48, 20); - labelGPU.Margin = new Padding(4, 0, 4, 0); + labelGPU.Location = new Point(24, 10); + labelGPU.Margin = new Padding(2, 0, 2, 0); labelGPU.Name = "labelGPU"; - labelGPU.Size = new Size(162, 32); + labelGPU.Size = new Size(81, 15); labelGPU.TabIndex = 40; labelGPU.Text = "GPU Settings"; // // Fans // - AutoScaleDimensions = new SizeF(192F, 192F); + AutoScaleDimensions = new SizeF(96F, 96F); AutoScaleMode = AutoScaleMode.Dpi; AutoSize = true; AutoSizeMode = AutoSizeMode.GrowAndShrink; - ClientSize = new Size(1340, 1310); + ClientSize = new Size(670, 655); Controls.Add(panelFans); Controls.Add(panelSliders); - Margin = new Padding(4, 2, 4, 2); + Margin = new Padding(2, 1, 2, 1); MaximizeBox = false; MinimizeBox = false; - MinimumSize = new Size(26, 1167); + MinimumSize = new Size(22, 606); Name = "Fans"; ShowIcon = false; ShowInTaskbar = false; diff --git a/app/Fans.cs b/app/Fans.cs index 4818cc71..cf836994 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -31,6 +31,10 @@ namespace GHelper InitializeComponent(); + float dpi = ControlHelper.GetDpiScale(this).Value; + comboModes.Size = new Size((int)dpi*150, (int)dpi * 18); + comboModes.ClientSize = new Size((int)dpi * 150, (int)dpi * 18); + Text = Properties.Strings.FansAndPower; labelPowerLimits.Text = Properties.Strings.PowerLimits; labelInfo.Text = Properties.Strings.PPTExperimental;