mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
Made Mac OS X menu windows very slightly transparent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-1
@@ -1847,7 +1847,6 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* go ahead, create that (sub)window
|
* go ahead, create that (sub)window
|
||||||
* \todo we should make menu windows slightly transparent for the new Mac look
|
|
||||||
*/
|
*/
|
||||||
void Fl_X::make(Fl_Window* w)
|
void Fl_X::make(Fl_Window* w)
|
||||||
{
|
{
|
||||||
@@ -1994,6 +1993,9 @@ void Fl_X::make(Fl_Window* w)
|
|||||||
delta = [cw cascadeTopLeftFromPoint:delta];
|
delta = [cw cascadeTopLeftFromPoint:delta];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(w->menu_window()) { // make menu windows slightly transparent
|
||||||
|
[cw setAlphaValue:0.97];
|
||||||
|
}
|
||||||
x->w = w; w->i = x;
|
x->w = w; w->i = x;
|
||||||
x->wait_for_expose = 1;
|
x->wait_for_expose = 1;
|
||||||
x->next = Fl_X::first;
|
x->next = Fl_X::first;
|
||||||
|
|||||||
Reference in New Issue
Block a user