summaryrefslogtreecommitdiff
path: root/src/nsmenu.m
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2017-12-23 11:00:35 +0000
committerAlan Third <alan@idiocy.org>2018-01-06 22:50:35 +0000
commit15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a (patch)
treefca8d2460b73c843ac270c6ce9c0194ec59ca326 /src/nsmenu.m
parent5fd229735384a5fa479466124a181bf7d4ea8dab (diff)
downloademacs-15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a.tar.gz
Allow setting tooltip colors in NS port
* src/nsfns.m (Fx_show_tip): Get face colors and apply them to the tooltip. * src/nsmenu.m (EmacsTooltip::setBackgroundColor): (EmacsTooltip::setForegroundColor): New functions. * src/nsterm.h (EmacsTooltip::setBackgroundColor): (EmacsTooltip::setForegroundColor): New function prototypes.
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r--src/nsmenu.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 20b4e58b479..5748b20ce81 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1364,6 +1364,16 @@ update_frame_tool_bar (struct frame *f)
[textField setFrame: r];
}
+- (void) setBackgroundColor: (NSColor *)col
+{
+ [textField setBackgroundColor: col];
+}
+
+- (void) setForegroundColor: (NSColor *)col
+{
+ [textField setTextColor: col];
+}
+
- (void) showAtX: (int)x Y: (int)y for: (int)seconds
{
NSRect wr = [win frame];