]> git.eshelyaron.com Git - emacs.git/commit
Add ability to change macOS WM theme (bug#27973)
authorAlan Third <alan@idiocy.org>
Sun, 20 Aug 2017 20:14:47 +0000 (21:14 +0100)
committerAlan Third <alan@idiocy.org>
Wed, 23 Aug 2017 18:57:00 +0000 (19:57 +0100)
commit7baa50eca28ff21497b058fa22656bbb4a447d87
tree248e7eae805b65b76f368f70928cdcfb1a54cb84
parent4309d1574ae86244751600171b605b2b2eca4697
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.
doc/lispref/frames.texi
src/frame.c
src/frame.h
src/nsfns.m
src/nsterm.h
src/nsterm.m