Add alternate colors for fitting pane (for dark mode on macos)
This commit is contained in:
33
config.py
33
config.py
@@ -58,13 +58,32 @@ LOGLEVEL_MAP = {
|
|||||||
|
|
||||||
CATALOG = 'lang'
|
CATALOG = 'lang'
|
||||||
|
|
||||||
slotColourMap = {
|
isDark = False
|
||||||
FittingSlot.LOW: wx.Colour(250, 235, 204), # yellow = low slots
|
try:
|
||||||
FittingSlot.MED: wx.Colour(188, 215, 241), # blue = mid slots
|
isDark = wx.SystemAppearance().IsDark()
|
||||||
FittingSlot.HIGH: wx.Colour(235, 204, 209), # red = high slots
|
except (KeyboardInterrupt, SystemExit):
|
||||||
FittingSlot.RIG: '',
|
raise
|
||||||
FittingSlot.SUBSYSTEM: ''
|
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():
|
def getClientSecret():
|
||||||
return clientHash
|
return clientHash
|
||||||
|
|||||||
Reference in New Issue
Block a user