aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAlan Third2017-08-20 21:14:47 +0100
committerAlan Third2017-08-23 19:57:00 +0100
commit7baa50eca28ff21497b058fa22656bbb4a447d87 (patch)
tree248e7eae805b65b76f368f70928cdcfb1a54cb84 /doc
parent4309d1574ae86244751600171b605b2b2eca4697 (diff)
downloademacs-7baa50eca28ff21497b058fa22656bbb4a447d87.tar.gz
emacs-7baa50eca28ff21497b058fa22656bbb4a447d87.zip
Add ability to change macOS WM theme (bug#27973)
* src/frame.c (make_frame, frame_parms, syms_of_frame) [NS_IMPL_COCOA]: Add ns-appearance and ns-transparent-titlebar options. * src/frame.h (ns_appearance_type) [NS_IMPL_COCOA]: Add enum to represent NSAppearance options. (struct frame) [NS_IMPL_COCOA]: Add ns_appearance and ns_transparent_titlebar frame parameters. * src/nsfns.m (ns_frame_parm_handlers) [NS_IMPL_COCOA]: Add ns_set_appearance and ns_set_transparent_titlebar handlers. (Sx_create_frame): Handle ns-appearance and ns-transparent-titlebar frame parameters. (Qdark): Add new symbol for use with ns-appearance. * src/nsterm.h (ns_set_appearance, ns_set_transparent_titlebar) [NS_IMPL_COCOA]: Add prototypes. * src/nsterm.m (ns_set_appearance, ns_set_transparent_titlebar) [NS_IMPL_COCOA]: New functions. (initFrameFromEmacs) [NS_IMPL_COCOA]: Handle ns-appearance and ns-transparent-titlebar frame parameters. * doc/lispref/frames.texi (Window Management Parameters): Document ns-apperance and ns-transparent-titlebar.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/frames.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index b430f7c6fad..6431bbdedb9 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -2125,6 +2125,20 @@ Specifying this lets you create an Emacs window inside some other
2125application's window. (It is not certain this will be implemented; try 2125application's window. (It is not certain this will be implemented; try
2126it and see if it works.) 2126it and see if it works.)
2127@end ignore 2127@end ignore
2128
2129@vindex ns-appearance, a frame parameter
2130@item ns-appearance
2131Only available on macOS, if set to @code{dark} draw this frame's
2132window-system window using the ``vibrant dark'' theme, otherwise use
2133the system default. The ``vibrant dark'' theme can be used to set the
2134toolbar and scrollbars to a dark appearance when using an Emacs theme
2135with a dark background.
2136
2137@vindex ns-transparent-titlebar, a frame parameter
2138@item ns-transparent-titlebar
2139Only available on macOS, if non-@code{nil}, set the titlebar and
2140toolbar to be transparent. This effectively sets the background color
2141of both to match the Emacs background color.
2128@end table 2142@end table
2129 2143
2130 2144