mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/NSMenu.m: Make the background color of NSMenuPanel clear
* Source/GSThemeDrawing.m: in drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:, when not using tiles, fill the background of the menu with the window background color. Now themes can draw semitransparent menus, and they work properly. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29600 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5342495663
commit
13b071dd72
3 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
2010-02-12 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSMenu.m: Make the background color of NSMenuPanel clear
|
||||
* Source/GSThemeDrawing.m:
|
||||
in drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:,
|
||||
when not using tiles, fill the background of the menu with
|
||||
the window background color.
|
||||
Now themes can draw semitransparent menus, and they work properly.
|
||||
|
||||
2010-02-12 19:44-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSBrowser.m: Make sure that the matrix used in the
|
||||
|
|
|
@ -778,6 +778,10 @@
|
|||
{
|
||||
NSRectEdge sides[2];
|
||||
float grays[] = {NSDarkGray, NSDarkGray};
|
||||
|
||||
[[NSColor windowBackgroundColor] set];
|
||||
NSRectFill(NSIntersectionRect(bounds, dirtyRect));
|
||||
|
||||
if (horizontal == YES)
|
||||
{
|
||||
sides[0] = NSMinYEdge;
|
||||
|
|
|
@ -205,6 +205,7 @@ static BOOL menuBarVisible = YES;
|
|||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreBuffered
|
||||
defer: YES];
|
||||
[win setBackgroundColor: [NSColor clearColor]];
|
||||
[win setLevel: NSSubmenuWindowLevel];
|
||||
[win setWorksWhenModal: NO];
|
||||
[win setBecomesKeyOnlyIfNeeded: YES];
|
||||
|
|
Loading…
Reference in a new issue