From 5bd78bbc2bb34dbe1f18b649bb888ab27aae9935 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 7 Mar 2005 21:50:11 +0000 Subject: [PATCH] Added wxFRAME_EX_METAL, wxDIALOG_EX_METAL for Mac metal appearance (saves #ifdefing) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 4 ++++ src/mac/carbon/toplevel.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/include/wx/defs.h b/include/wx/defs.h index f773f1c6c1..dc12e2af95 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1359,6 +1359,10 @@ enum wxBorder #define wxFRAME_EX_CONTEXTHELP 0x00000004 #define wxDIALOG_EX_CONTEXTHELP 0x00000004 +/* Draw the window in a metal theme on Mac */ +#define wxFRAME_EX_METAL 0x00000040 +#define wxDIALOG_EX_METAL 0x00000040 + /* Create a window which is attachable to another top level window */ #define wxFRAME_DRAWER 0x0020 diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 7f7bc298af..618ef034b7 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -925,6 +925,9 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent, MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); + + if (GetExtraStyle() & wxFRAME_EX_METAL) + MacSetMetalAppearance(true); wxTopLevelWindows.Append(this); -- 2.45.2