Skip to content

Instantly share code, notes, and snippets.

@jwintz
Last active March 31, 2017 10:29
Show Gist options
  • Save jwintz/853f0075cf46770f5ab4f1dbf380ab11 to your computer and use it in GitHub Desktop.
Save jwintz/853f0075cf46770f5ab4f1dbf380ab11 to your computer and use it in GitHub Desktop.
Build emacs with a dark title bar on mac
diff --git a/src/nsterm.m b/src/nsterm.m
index b03ad52621..edc77adfc0 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6744,6 +6744,9 @@ - (BOOL)isOpaque
[win setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
#endif
+ win.titlebarAppearsTransparent = true;
+ win.appearance = [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark];
+
wr = [win frame];
bwidth = f->border_width = wr.size.width - r.size.width;
tibar_height = FRAME_NS_TITLEBAR_HEIGHT (f) = wr.size.height - r.size.height;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment