Skip to content

Commit

Permalink
Add alternate colors for fitting pane (for dark mode on macos)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Feb 20, 2024
1 parent 494b635 commit 768c417
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,32 @@

CATALOG = 'lang'

slotColourMap = {
FittingSlot.LOW: wx.Colour(250, 235, 204), # yellow = low slots
FittingSlot.MED: wx.Colour(188, 215, 241), # blue = mid slots
FittingSlot.HIGH: wx.Colour(235, 204, 209), # red = high slots
FittingSlot.RIG: '',
FittingSlot.SUBSYSTEM: ''
}
isDark = False
try:
isDark = wx.SystemAppearance().IsDark()
except (KeyboardInterrupt, SystemExit):
raise
except:
pass


if isDark:
slotColourMap = {
FittingSlot.LOW: wx.Colour(44, 36, 19), # yellow = low slots 24/13
FittingSlot.MED: wx.Colour(28, 39, 51), # blue = mid slots 8.1/9.5
FittingSlot.HIGH: wx.Colour(53, 31, 34), # red = high slots 6.5/11.5
FittingSlot.RIG: '',
FittingSlot.SUBSYSTEM: ''}
errColor = wx.Colour(70, 20, 20)
else:
slotColourMap = {
FittingSlot.LOW: wx.Colour(250, 235, 204), # yellow = low slots
FittingSlot.MED: wx.Colour(188, 215, 241), # blue = mid slots
FittingSlot.HIGH: wx.Colour(235, 204, 209), # red = high slots
FittingSlot.RIG: '',
FittingSlot.SUBSYSTEM: ''}
errColor = wx.Colour(204, 51, 51)


def getClientSecret():
return clientHash
Expand Down

0 comments on commit 768c417

Please sign in to comment.