Update picture box size label to support dark theme

This commit is contained in:
Jaex 2019-07-06 04:42:41 +03:00
parent 2676eddbf7
commit cb34b3bbe9
2 changed files with 10 additions and 2 deletions

View File

@ -197,6 +197,14 @@ namespace ShareX.HelpersLib
AutoSetSizeMode();
}
public void UpdateTheme()
{
UpdateCheckers(true);
lblImageSize.BackColor = ShareXResources.BackgroundColor;
lblImageSize.ForeColor = ShareXResources.TextColor;
}
public void UpdateCheckers(bool forceUpdate = false)
{
if (DrawCheckeredBackground)
@ -369,7 +377,7 @@ namespace ShareX.HelpersLib
private void MyPictureBox_Resize(object sender, EventArgs e)
{
lblImageSize.Location = new Point((Width - lblImageSize.Width) / 2, Height - lblImageSize.Height);
lblImageSize.Location = new Point((Width - lblImageSize.Width) / 2, Height - lblImageSize.Height + 1);
}
}
}

View File

@ -798,7 +798,7 @@ namespace ShareX
flpCommunity.BackColor = SystemColors.Window;
}
pbPreview.UpdateCheckers(true);
pbPreview.UpdateTheme();
ucTaskThumbnailView.UpdateTheme();
ucNews.UpdateTheme();
}