|
58 | 58 |
|
59 | 59 | CATALOG = 'lang' |
60 | 60 |
|
61 | | -isDark = False |
62 | | -try: |
63 | | - isDark = wx.SystemAppearance().IsDark() |
64 | | -except (KeyboardInterrupt, SystemExit): |
65 | | - raise |
66 | | -except: |
67 | | - pass |
68 | | - |
69 | | - |
70 | | -if isDark: |
71 | | - slotColourMap = { |
72 | | - FittingSlot.LOW: wx.Colour(44, 36, 19), # yellow = low slots 24/13 |
73 | | - FittingSlot.MED: wx.Colour(28, 39, 51), # blue = mid slots 8.1/9.5 |
74 | | - FittingSlot.HIGH: wx.Colour(53, 31, 34), # red = high slots 6.5/11.5 |
75 | | - FittingSlot.RIG: '', |
76 | | - FittingSlot.SUBSYSTEM: ''} |
77 | | - errColor = wx.Colour(70, 20, 20) |
78 | | -else: |
79 | | - slotColourMap = { |
80 | | - FittingSlot.LOW: wx.Colour(250, 235, 204), # yellow = low slots |
81 | | - FittingSlot.MED: wx.Colour(188, 215, 241), # blue = mid slots |
82 | | - FittingSlot.HIGH: wx.Colour(235, 204, 209), # red = high slots |
83 | | - FittingSlot.RIG: '', |
84 | | - FittingSlot.SUBSYSTEM: ''} |
85 | | - errColor = wx.Colour(204, 51, 51) |
| 61 | + |
| 62 | +slotColourMapDark = { |
| 63 | + FittingSlot.LOW: wx.Colour(44, 36, 19), # yellow = low slots 24/13 |
| 64 | + FittingSlot.MED: wx.Colour(28, 39, 51), # blue = mid slots 8.1/9.5 |
| 65 | + FittingSlot.HIGH: wx.Colour(53, 31, 34), # red = high slots 6.5/11.5 |
| 66 | + FittingSlot.RIG: '', |
| 67 | + FittingSlot.SUBSYSTEM: ''} |
| 68 | +errColorDark = wx.Colour(70, 20, 20) |
| 69 | +slotColourMap = { |
| 70 | + FittingSlot.LOW: wx.Colour(250, 235, 204), # yellow = low slots |
| 71 | + FittingSlot.MED: wx.Colour(188, 215, 241), # blue = mid slots |
| 72 | + FittingSlot.HIGH: wx.Colour(235, 204, 209), # red = high slots |
| 73 | + FittingSlot.RIG: '', |
| 74 | + FittingSlot.SUBSYSTEM: ''} |
| 75 | +errColor = wx.Colour(204, 51, 51) |
86 | 76 |
|
87 | 77 |
|
88 | 78 | def getClientSecret(): |
|
0 commit comments