Skip to content

Commit 38d563e

Browse files
authored
Merge pull request #27 from luckymarmot/fix-no-window-textures
Fix no window theming on Demo project (Mojave)
2 parents 8f9b2f2 + d45c014 commit 38d563e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Demo/Demo/WindowController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class WindowController: NSWindowController {
7373
private var titlebarView: NSView? {
7474
if let themeFrame = self.window?.contentView?.superview {
7575
for subview in themeFrame.subviews where subview.className == "NSTitlebarContainerView" {
76-
return subview.subviews.first
76+
return subview.subviews.first { $0.className == "NSTitlebarView" }
7777
}
7878
}
7979
return nil

0 commit comments

Comments
 (0)