mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-01 06:45:12 +00:00
Fixed the tree view row height on Linux.
This commit is contained in:
@@ -90,8 +90,7 @@ namespace OpenHardwareMonitor.GUI {
|
||||
|
||||
this.Font = SystemFonts.MessageBoxFont;
|
||||
treeView.Font = SystemFonts.MessageBoxFont;
|
||||
plotPanel.Font = SystemFonts.MessageBoxFont;
|
||||
treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17);
|
||||
plotPanel.Font = SystemFonts.MessageBoxFont;
|
||||
|
||||
nodeCheckBox.IsVisibleValueNeeded += nodeCheckBox_IsVisibleValueNeeded;
|
||||
nodeCheckBox.CheckStateChanged += UpdatePlotSelection;
|
||||
@@ -121,6 +120,7 @@ namespace OpenHardwareMonitor.GUI {
|
||||
|
||||
int p = (int)Environment.OSVersion.Platform;
|
||||
if ((p == 4) || (p == 128)) { // Unix
|
||||
treeView.RowHeight = Math.Max(treeView.RowHeight, 17);
|
||||
splitContainer.BorderStyle = BorderStyle.None;
|
||||
splitContainer.Border3DStyle = Border3DStyle.Adjust;
|
||||
splitContainer.SplitterWidth = 4;
|
||||
@@ -129,6 +129,8 @@ namespace OpenHardwareMonitor.GUI {
|
||||
gadgetMenuItem.Visible = false;
|
||||
minCloseMenuItem.Visible = false;
|
||||
} else { // Windows
|
||||
treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17);
|
||||
|
||||
gadget = new SensorGadget(computer, settings, unitManager);
|
||||
gadget.HideShowCommand += hideShowClick;
|
||||
|
||||
|
Reference in New Issue
Block a user