Skip to content

Commit

Permalink
Make the colors configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
typesupply committed May 14, 2019
1 parent 6dab10d commit 6842d2c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Lib/defconAppKit/windows/popUpWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

class DefconAppKitInformationPopUpWindowContentView(NSView):

windowColor = HUDWindowColor
windowLineColor = HUDWindowLineColor

def drawRect_(self, rect):
rect = self.bounds()
rect = NSInsetRect(rect, .5, .5)
path = roundedRectBezierPath(rect, 7)
HUDWindowColor.set()
self.windowColor.set()
path.fill()
HUDWindowLineColor.set()
self.windowLineColor.set()
path.stroke()


Expand Down Expand Up @@ -164,10 +167,12 @@ def canBecomeKeyWindow(self):

class DefconAppKitInteractivePopUpWindowContentView(NSView):

windowColor = interactiveWindowColor

def drawRect_(self, rect):
rect = self.bounds()
path = roundedRectBezierPath(rect, 5)
interactiveWindowColor.set()
self.windowColor.set()
path.fill()


Expand Down

0 comments on commit 6842d2c

Please sign in to comment.