Skip to content

Commit 6842d2c

Browse files
committed
Make the colors configurable.
1 parent 6dab10d commit 6842d2c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Lib/defconAppKit/windows/popUpWindow.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616

1717
class DefconAppKitInformationPopUpWindowContentView(NSView):
1818

19+
windowColor = HUDWindowColor
20+
windowLineColor = HUDWindowLineColor
21+
1922
def drawRect_(self, rect):
2023
rect = self.bounds()
2124
rect = NSInsetRect(rect, .5, .5)
2225
path = roundedRectBezierPath(rect, 7)
23-
HUDWindowColor.set()
26+
self.windowColor.set()
2427
path.fill()
25-
HUDWindowLineColor.set()
28+
self.windowLineColor.set()
2629
path.stroke()
2730

2831

@@ -164,10 +167,12 @@ def canBecomeKeyWindow(self):
164167

165168
class DefconAppKitInteractivePopUpWindowContentView(NSView):
166169

170+
windowColor = interactiveWindowColor
171+
167172
def drawRect_(self, rect):
168173
rect = self.bounds()
169174
path = roundedRectBezierPath(rect, 5)
170-
interactiveWindowColor.set()
175+
self.windowColor.set()
171176
path.fill()
172177

173178

0 commit comments

Comments
 (0)