Image viewer bug fixes

This commit is contained in:
Jaex 2022-03-27 13:17:29 +03:00
parent d1a7d82b4f
commit 374e707427
2 changed files with 2 additions and 6 deletions

View file

@ -188,14 +188,9 @@ private void UpdateImageSizeLabel()
{
if (IsValidImage)
{
lblImageSize.Visible = true;
lblImageSize.Text = $"{Image.Width} x {Image.Height}";
lblImageSize.Location = new Point((ClientSize.Width - lblImageSize.Width) / 2, ClientSize.Height - lblImageSize.Height + 1);
}
else
{
lblImageSize.Visible = false;
}
}
public void UpdateTheme()

View file

@ -225,6 +225,7 @@ private void lblLeft_MouseDown(object sender, MouseEventArgs e)
if (e.Button == MouseButtons.Left)
{
NavigateImage(-1);
lblLeft.Visible = CanNavigateLeft;
}
}
@ -233,6 +234,7 @@ private void lblRight_MouseDown(object sender, MouseEventArgs e)
if (e.Button == MouseButtons.Left)
{
NavigateImage(1);
lblRight.Visible = CanNavigateRight;
}
}
@ -320,7 +322,6 @@ private void InitializeComponent()
BackColor = SystemColors.Window;
Bounds = CaptureHelpers.GetActiveScreenBounds();
Cursor = Cursors.Hand;
DoubleBuffered = true;
FormBorderStyle = FormBorderStyle.None;
// TODO: Translate