Skip to content

Commit

Permalink
Reformat line spacing to pass linting test
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Goosen authored and Bouni committed Aug 25, 2023
1 parent 285d15c commit 1ea2de2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def loadBitmapScaled(filename, scale=1.0, static=False):
bmp = wx.Bitmap(path)
w, h = bmp.GetSize()
img = bmp.ConvertToImage()
if hasattr(wx.SystemSettings, "GetAppearance") and hasattr(wx.SystemSettings.GetAppearance, "IsUsingDarkBackground"):
if hasattr(wx.SystemSettings, "GetAppearance") and hasattr(
wx.SystemSettings.GetAppearance, "IsUsingDarkBackground"
):
if wx.SystemSettings.GetAppearance().IsUsingDarkBackground():
img.Replace(0, 0, 0, 255, 255, 255)
bmp = wx.Bitmap(img.Scale(int(w * scale), int(h * scale)))
Expand Down

0 comments on commit 1ea2de2

Please sign in to comment.