mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:20:38 +00:00
* Header* Headers/AppKit/NSColor.h,
+ * Source/NSColor.m: Add tool tip named colours. + * Source/GSToolTips.m (+initialize, -_timedOut:): Get colours from NSColor.
This commit is contained in:
parent
9657270757
commit
1e05899a0f
4 changed files with 31 additions and 4 deletions
|
@ -236,8 +236,7 @@ static BOOL restoreMouseMoved;
|
|||
backing: NSBackingStoreRetained
|
||||
defer: YES];
|
||||
|
||||
[window setBackgroundColor:
|
||||
[NSColor colorWithDeviceRed: 1.0 green: 1.0 blue: 0.90 alpha: 1.0]];
|
||||
[window setBackgroundColor: [NSColor toolTipColor]];
|
||||
[window setReleasedWhenClosed: NO];
|
||||
[window setExcludedFromWindowsMenu: YES];
|
||||
[window setLevel: NSPopUpMenuWindowLevel];
|
||||
|
@ -638,6 +637,8 @@ static BOOL restoreMouseMoved;
|
|||
attributes = [NSMutableDictionary dictionary];
|
||||
[attributes setObject: [NSFont toolTipsFontOfSize: size]
|
||||
forKey: NSFontAttributeName];
|
||||
[attributes setObject: [NSColor toolTipTextColor]
|
||||
forKey: NSForegroundColorAttributeName];
|
||||
toolTipText =
|
||||
[[NSAttributedString alloc] initWithString: toolTipString
|
||||
attributes: attributes];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue