This commit is contained in:
Serge
2024-03-27 11:05:27 +01:00
parent 084a200020
commit 0ef78c7174
2 changed files with 8 additions and 14 deletions

View File

@@ -1705,7 +1705,6 @@ namespace GHelper
//
// labelVisual
//
labelVisual.Dock = DockStyle.Top;
labelVisual.ForeColor = SystemColors.GrayText;
labelVisual.Location = new Point(20, 170);
labelVisual.Margin = new Padding(4, 0, 4, 0);
@@ -1875,7 +1874,7 @@ namespace GHelper
AutoScaleMode = AutoScaleMode.Dpi;
AutoSize = true;
AutoSizeMode = AutoSizeMode.GrowAndShrink;
ClientSize = new Size(849, 2001);
ClientSize = new Size(849, 1559);
Controls.Add(panelFooter);
Controls.Add(panelVersion);
Controls.Add(panelBattery);

View File

@@ -1205,25 +1205,20 @@ namespace GHelper
buttonMiniled.Visible = false;
}
SuspendLayout();
if (hdr) labelVisual.Text = Properties.Strings.VisualModesHDR;
if (!screenEnabled) labelVisual.Text = Properties.Strings.VisualModesScreen;
if (!screenEnabled)
if (!screenEnabled || hdr)
{
labelVisual.Text = Properties.Strings.VisualModesScreen;
labelVisual.Location = tableVisual.Location;
labelVisual.Width = tableVisual.Width;
labelVisual.Height = tableVisual.Height;
labelVisual.Visible = true;
tableVisual.Visible = false;
} else if (hdr)
} else
{
labelVisual.Text = Properties.Strings.VisualModesHDR;
labelVisual.Visible = true;
tableVisual.Visible = false;
} else
{
tableVisual.Visible = true;
labelVisual.Visible = false;
}
ResumeLayout();
}