switched to appearance savvy gui/system fonts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8a2c82c1eb
commit
99fd0d71f7
@ -59,6 +59,9 @@
|
|||||||
#include "X11/Xlib.h"
|
#include "X11/Xlib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
#include "wx/mac/private.h"
|
||||||
|
#endif
|
||||||
IMPLEMENT_CLASS(wxColourDatabase, wxList)
|
IMPLEMENT_CLASS(wxColourDatabase, wxList)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxFontList, wxList)
|
IMPLEMENT_DYNAMIC_CLASS(wxFontList, wxList)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxPenList, wxList)
|
IMPLEMENT_DYNAMIC_CLASS(wxPenList, wxList)
|
||||||
@ -450,8 +453,17 @@ void wxInitializeStockObjects ()
|
|||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
#if defined(__WXMAC__)
|
#if defined(__WXMAC__)
|
||||||
static const int sizeFont = 12;
|
int sizeFont = 12;
|
||||||
wxNORMAL_FONT = new wxFont (sizeFont, wxMODERN, wxNORMAL, wxNORMAL);
|
|
||||||
|
FontFamilyID fontId ;
|
||||||
|
Str255 fontName ;
|
||||||
|
SInt16 fontSize ;
|
||||||
|
Style fontStyle ;
|
||||||
|
|
||||||
|
GetThemeFont(kThemeSystemFont , GetApplicationScript() , fontName , &fontSize , &fontStyle ) ;
|
||||||
|
sizeFont = fontSize ;
|
||||||
|
p2cstrcpy( (char*) fontName , fontName ) ;
|
||||||
|
wxSWISS_FONT = new wxFont (fontSize, wxSWISS, wxNORMAL, wxNORMAL , false , fontName );
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
static const int sizeFont = 12;
|
static const int sizeFont = 12;
|
||||||
#else
|
#else
|
||||||
@ -469,9 +481,11 @@ void wxInitializeStockObjects ()
|
|||||||
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
|
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
|
||||||
wxSWISS_FONT = new wxFont (sizeFont, wxSWISS, wxNORMAL, wxNORMAL); /* Helv */
|
wxSWISS_FONT = new wxFont (sizeFont, wxSWISS, wxNORMAL, wxNORMAL); /* Helv */
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
wxSMALL_FONT = new wxFont (sizeFont - 2, wxSWISS, wxNORMAL, wxNORMAL);
|
wxNORMAL_FONT = new wxFont (sizeFont, wxMODERN, wxNORMAL, wxNORMAL);
|
||||||
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
|
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
|
||||||
wxSWISS_FONT = new wxFont (sizeFont - 2, wxSWISS, wxNORMAL, wxNORMAL);
|
GetThemeFont(kThemeSmallSystemFont , GetApplicationScript() , fontName , &fontSize , &fontStyle ) ;
|
||||||
|
p2cstrcpy( (char*) fontName , fontName ) ;
|
||||||
|
wxSMALL_FONT = new wxFont (fontSize, wxSWISS, wxNORMAL, wxNORMAL , false , fontName );
|
||||||
#else
|
#else
|
||||||
wxSMALL_FONT = new wxFont (sizeFont - 2, wxSWISS, wxNORMAL, wxNORMAL);
|
wxSMALL_FONT = new wxFont (sizeFont - 2, wxSWISS, wxNORMAL, wxNORMAL);
|
||||||
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
|
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user