mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Image viewer bug fixes
This commit is contained in:
parent
d1a7d82b4f
commit
374e707427
2 changed files with 2 additions and 6 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue