mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-04 08:15:09 +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;
|
this.Font = SystemFonts.MessageBoxFont;
|
||||||
treeView.Font = SystemFonts.MessageBoxFont;
|
treeView.Font = SystemFonts.MessageBoxFont;
|
||||||
plotPanel.Font = SystemFonts.MessageBoxFont;
|
plotPanel.Font = SystemFonts.MessageBoxFont;
|
||||||
treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17);
|
|
||||||
|
|
||||||
nodeCheckBox.IsVisibleValueNeeded += nodeCheckBox_IsVisibleValueNeeded;
|
nodeCheckBox.IsVisibleValueNeeded += nodeCheckBox_IsVisibleValueNeeded;
|
||||||
nodeCheckBox.CheckStateChanged += UpdatePlotSelection;
|
nodeCheckBox.CheckStateChanged += UpdatePlotSelection;
|
||||||
@@ -121,6 +120,7 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
|
|
||||||
int p = (int)Environment.OSVersion.Platform;
|
int p = (int)Environment.OSVersion.Platform;
|
||||||
if ((p == 4) || (p == 128)) { // Unix
|
if ((p == 4) || (p == 128)) { // Unix
|
||||||
|
treeView.RowHeight = Math.Max(treeView.RowHeight, 17);
|
||||||
splitContainer.BorderStyle = BorderStyle.None;
|
splitContainer.BorderStyle = BorderStyle.None;
|
||||||
splitContainer.Border3DStyle = Border3DStyle.Adjust;
|
splitContainer.Border3DStyle = Border3DStyle.Adjust;
|
||||||
splitContainer.SplitterWidth = 4;
|
splitContainer.SplitterWidth = 4;
|
||||||
@@ -129,6 +129,8 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
gadgetMenuItem.Visible = false;
|
gadgetMenuItem.Visible = false;
|
||||||
minCloseMenuItem.Visible = false;
|
minCloseMenuItem.Visible = false;
|
||||||
} else { // Windows
|
} else { // Windows
|
||||||
|
treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17);
|
||||||
|
|
||||||
gadget = new SensorGadget(computer, settings, unitManager);
|
gadget = new SensorGadget(computer, settings, unitManager);
|
||||||
gadget.HideShowCommand += hideShowClick;
|
gadget.HideShowCommand += hideShowClick;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user