From e725760b24f2fb6c09b37be87dd865798105e37b Mon Sep 17 00:00:00 2001 From: seerge Date: Mon, 13 Mar 2023 23:07:28 +0100 Subject: [PATCH] UI Tweaks --- Fans.Designer.cs | 12 ++++++------ HardwareMonitor.cs | 2 +- Settings.Designer.cs | 20 +++++++++++++------- app.manifest | 2 +- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/Fans.Designer.cs b/Fans.Designer.cs index cdf6b2bc..149b7e6d 100644 --- a/Fans.Designer.cs +++ b/Fans.Designer.cs @@ -92,7 +92,7 @@ // labelBoost // labelBoost.AutoSize = true; - labelBoost.Location = new Point(396, 18); + labelBoost.Location = new Point(397, 19); labelBoost.Name = "labelBoost"; labelBoost.Size = new Size(125, 32); labelBoost.TabIndex = 39; @@ -128,7 +128,7 @@ tableFanCharts.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); tableFanCharts.Controls.Add(chartGPU, 0, 1); tableFanCharts.Controls.Add(chartCPU, 0, 0); - tableFanCharts.Location = new Point(28, 68); + tableFanCharts.Location = new Point(28, 64); tableFanCharts.Margin = new Padding(6); tableFanCharts.Name = "tableFanCharts"; tableFanCharts.RowCount = 2; @@ -136,7 +136,7 @@ tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F)); tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F)); - tableFanCharts.Size = new Size(764, 988); + tableFanCharts.Size = new Size(764, 992); tableFanCharts.TabIndex = 36; // // chartGPU @@ -144,10 +144,10 @@ chartArea1.Name = "ChartArea1"; chartGPU.ChartAreas.Add(chartArea1); chartGPU.Dock = DockStyle.Fill; - chartGPU.Location = new Point(2, 504); + chartGPU.Location = new Point(2, 506); chartGPU.Margin = new Padding(2, 10, 2, 10); chartGPU.Name = "chartGPU"; - chartGPU.Size = new Size(760, 474); + chartGPU.Size = new Size(760, 476); chartGPU.TabIndex = 17; chartGPU.Text = "chart1"; // @@ -159,7 +159,7 @@ chartCPU.Location = new Point(2, 10); chartCPU.Margin = new Padding(2, 10, 2, 10); chartCPU.Name = "chartCPU"; - chartCPU.Size = new Size(760, 474); + chartCPU.Size = new Size(760, 476); chartCPU.TabIndex = 14; chartCPU.Text = "chartCPU"; // diff --git a/HardwareMonitor.cs b/HardwareMonitor.cs index e6c4f9f0..1fe1a508 100644 --- a/HardwareMonitor.cs +++ b/HardwareMonitor.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using GHelper.Gpu; -public class HardwareMonitor +public static class HardwareMonitor { private static IGpuTemperatureProvider? GpuTemperatureProvider; diff --git a/Settings.Designer.cs b/Settings.Designer.cs index b90bfd01..63b62049 100644 --- a/Settings.Designer.cs +++ b/Settings.Designer.cs @@ -112,7 +112,7 @@ panelMatrix.Controls.Add(pictureMatrix); panelMatrix.Controls.Add(labelMatrix); panelMatrix.Dock = DockStyle.Top; - panelMatrix.Location = new Point(16, 814); + panelMatrix.Location = new Point(16, 806); panelMatrix.Margin = new Padding(4); panelMatrix.Name = "panelMatrix"; panelMatrix.Size = new Size(722, 180); @@ -219,7 +219,7 @@ panelBattery.Controls.Add(labelBatteryTitle); panelBattery.Controls.Add(trackBattery); panelBattery.Dock = DockStyle.Top; - panelBattery.Location = new Point(16, 994); + panelBattery.Location = new Point(16, 986); panelBattery.Margin = new Padding(4); panelBattery.Name = "panelBattery"; panelBattery.Size = new Size(722, 148); @@ -290,7 +290,7 @@ panelFooter.Controls.Add(buttonQuit); panelFooter.Controls.Add(checkStartup); panelFooter.Dock = DockStyle.Top; - panelFooter.Location = new Point(16, 1142); + panelFooter.Location = new Point(16, 1134); panelFooter.Margin = new Padding(4); panelFooter.Name = "panelFooter"; panelFooter.Size = new Size(722, 64); @@ -330,7 +330,7 @@ panelPerformance.Location = new Point(16, 16); panelPerformance.Margin = new Padding(0); panelPerformance.Name = "panelPerformance"; - panelPerformance.Size = new Size(722, 228); + panelPerformance.Size = new Size(722, 220); panelPerformance.TabIndex = 36; // // buttonFans @@ -383,6 +383,8 @@ // tablePerf // tablePerf.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + tablePerf.AutoScroll = true; + tablePerf.AutoSizeMode = AutoSizeMode.GrowAndShrink; tablePerf.ColumnCount = 3; tablePerf.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F)); tablePerf.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F)); @@ -452,7 +454,7 @@ panelGPU.Controls.Add(labelGPUFan); panelGPU.Controls.Add(tableGPU); panelGPU.Dock = DockStyle.Top; - panelGPU.Location = new Point(16, 244); + panelGPU.Location = new Point(16, 236); panelGPU.Margin = new Padding(4); panelGPU.Name = "panelGPU"; panelGPU.Size = new Size(722, 216); @@ -506,6 +508,8 @@ // tableGPU // tableGPU.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + tableGPU.AutoSize = true; + tableGPU.AutoSizeMode = AutoSizeMode.GrowAndShrink; tableGPU.ColumnCount = 3; tableGPU.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F)); tableGPU.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F)); @@ -571,7 +575,7 @@ panelScreen.Controls.Add(pictureScreen); panelScreen.Controls.Add(labelSreen); panelScreen.Dock = DockStyle.Top; - panelScreen.Location = new Point(16, 460); + panelScreen.Location = new Point(16, 452); panelScreen.Margin = new Padding(4); panelScreen.Name = "panelScreen"; panelScreen.Size = new Size(722, 200); @@ -592,6 +596,8 @@ // tableScreen // tableScreen.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + tableScreen.AutoSize = true; + tableScreen.AutoSizeMode = AutoSizeMode.GrowAndShrink; tableScreen.ColumnCount = 3; tableScreen.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F)); tableScreen.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F)); @@ -666,7 +672,7 @@ panelKeyboard.Controls.Add(pictureKeyboard); panelKeyboard.Controls.Add(label1); panelKeyboard.Dock = DockStyle.Top; - panelKeyboard.Location = new Point(16, 660); + panelKeyboard.Location = new Point(16, 652); panelKeyboard.Margin = new Padding(4); panelKeyboard.Name = "panelKeyboard"; panelKeyboard.Size = new Size(722, 154); diff --git a/app.manifest b/app.manifest index fd7c117d..52900f78 100644 --- a/app.manifest +++ b/app.manifest @@ -55,7 +55,7 @@ true - PerMonitorV2, PerMonitor, System + System