Commit ea624626 authored by Alan Third's avatar Alan Third

Set tooltip text color (bug#33452)

; Do not merge into master

* src/nsmenu.m: ([EmacsTooltip init]): Set text color to black.
parent 094fcf62
Pipeline #140 passed with stage
in 26 minutes and 13 seconds
......@@ -1318,8 +1318,9 @@ @implementation EmacsTooltip
- (instancetype)init
{
NSColor *col = [NSColor colorWithCalibratedRed: 1.0 green: 1.0
NSColor *bgcol = [NSColor colorWithCalibratedRed: 1.0 green: 1.0
blue: 0.792 alpha: 0.95];
NSColor *fgcol = [NSColor blackColor];
NSFont *font = [NSFont toolTipsFontOfSize: 0];
NSFont *sfont = [font screenFont];
int height = [sfont ascender] - [sfont descender];
......@@ -1328,7 +1329,8 @@ - (instancetype)init
textField = [[NSTextField alloc] initWithFrame: r];
[textField setFont: font];
[textField setBackgroundColor: col];
[textField setTextColor: fgcol];
[textField setBackgroundColor: bgcol];
[textField setEditable: NO];
[textField setSelectable: NO];
......@@ -1345,7 +1347,7 @@ - (instancetype)init
[win setReleasedWhenClosed: NO];
[win setDelegate: self];
[[win contentView] addSubview: textField];
/* [win setBackgroundColor: col]; */
/* [win setBackgroundColor: bgcol]; */
[win setOpaque: NO];
return self;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment