Update picture box size label to support dark theme
This commit is contained in:
parent
2676eddbf7
commit
cb34b3bbe9
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -798,7 +798,7 @@ namespace ShareX
|
||||
flpCommunity.BackColor = SystemColors.Window;
|
||||
}
|
||||
|
||||
pbPreview.UpdateCheckers(true);
|
||||
pbPreview.UpdateTheme();
|
||||
ucTaskThumbnailView.UpdateTheme();
|
||||
ucNews.UpdateTheme();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user