mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Update tooltips so that they display properly no matter what the theme is set to
This commit is contained in:
parent
cfd16f5afe
commit
79374c6670
1 changed files with 4 additions and 0 deletions
|
@ -156,7 +156,10 @@
|
|||
NSRect frame = [self frame];
|
||||
NSRect textRect = NSInsetRect(frame, 2, 2);
|
||||
|
||||
[[NSColor whiteColor] set];
|
||||
NSRectFill(bounds);
|
||||
NSDrawColorTiledRects(bounds, bounds, sides, colors, 4);
|
||||
[[NSColor blackColor] set];
|
||||
[_text drawInRect: textRect];
|
||||
}
|
||||
}
|
||||
|
@ -182,6 +185,7 @@
|
|||
defer: flag];
|
||||
if (self)
|
||||
{
|
||||
[self setBackgroundColor: [NSColor whiteColor]];
|
||||
[self setContentView: [[[GSTTView alloc] initWithFrame: contentRect] autorelease]];
|
||||
}
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue