1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // TODO: these settings should probably be configurable from some central or
13 // per-user file, which can be edited using a Windows-control-panel clone.
14 // Also they should be documented better. Some are very MS Windows-ish.
17 #pragma implementation "settings.h"
20 #include "wx/settings.h"
21 #include "wx/gdicmn.h"
23 wxColour
wxSystemSettings::GetSystemColour(int index
)
27 case wxSYS_COLOUR_SCROLLBAR
:
28 // case wxSYS_COLOUR_DESKTOP: // Same as wxSYS_COLOUR_BACKGROUND
29 case wxSYS_COLOUR_BACKGROUND
:
30 case wxSYS_COLOUR_ACTIVECAPTION
:
31 case wxSYS_COLOUR_INACTIVECAPTION
:
32 case wxSYS_COLOUR_MENU
:
33 case wxSYS_COLOUR_WINDOW
:
34 case wxSYS_COLOUR_WINDOWFRAME
:
35 case wxSYS_COLOUR_ACTIVEBORDER
:
36 case wxSYS_COLOUR_INACTIVEBORDER
:
37 case wxSYS_COLOUR_BTNFACE
:
38 // case wxSYS_COLOUR_3DFACE: // Same as wxSYS_COLOUR_BTNFACE
39 case wxSYS_COLOUR_GRAYTEXT
:
41 return wxColour("LIGHT GREY");
43 case wxSYS_COLOUR_BTNSHADOW
:
44 // case wxSYS_COLOUR_3DSHADOW: // Same as wxSYS_COLOUR_BTNSHADOW
46 return wxColour("GREY");
48 case wxSYS_COLOUR_3DDKSHADOW
:
52 case wxSYS_COLOUR_HIGHLIGHT
:
53 case wxSYS_COLOUR_BTNHIGHLIGHT
:
54 // case wxSYS_COLOUR_3DHIGHLIGHT: // Same as wxSYS_COLOUR_BTNHIGHLIGHT
58 case wxSYS_COLOUR_3DLIGHT
:
60 return wxColour("LIGHT GREY");
62 case wxSYS_COLOUR_MENUTEXT
:
63 case wxSYS_COLOUR_WINDOWTEXT
:
64 case wxSYS_COLOUR_CAPTIONTEXT
:
65 case wxSYS_COLOUR_INACTIVECAPTIONTEXT
:
66 case wxSYS_COLOUR_INFOTEXT
:
70 case wxSYS_COLOUR_HIGHLIGHTTEXT
:
74 case wxSYS_COLOUR_INFOBK
:
75 case wxSYS_COLOUR_APPWORKSPACE
:
77 return wxColour("LIGHT GREY");
84 wxFont
wxSystemSettings::GetSystemFont(int index
)
88 case wxSYS_SYSTEM_FIXED_FONT
:
90 return wxFont(12, wxMODERN
, wxNORMAL
, wxNORMAL
, FALSE
);
93 case wxSYS_DEVICE_DEFAULT_FONT
:
94 case wxSYS_SYSTEM_FONT
:
95 case wxSYS_DEFAULT_GUI_FONT
:
98 return wxFont(12, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
);
106 // Get a system metric, e.g. scrollbar size
107 int wxSystemSettings::GetSystemMetric(int index
)
111 case wxSYS_MOUSE_BUTTONS
:
144 case wxSYS_HSCROLL_ARROW_X
:
147 case wxSYS_HSCROLL_ARROW_Y
:
159 case wxSYS_ICONSPACING_X
:
162 case wxSYS_ICONSPACING_Y
:
165 case wxSYS_WINDOWMIN_X
:
168 case wxSYS_WINDOWMIN_Y
:
177 case wxSYS_FRAMESIZE_X
:
180 case wxSYS_FRAMESIZE_Y
:
183 case wxSYS_SMALLICON_X
:
186 case wxSYS_SMALLICON_Y
:
189 case wxSYS_HSCROLL_Y
:
192 case wxSYS_VSCROLL_X
:
195 case wxSYS_VSCROLL_ARROW_X
:
198 case wxSYS_VSCROLL_ARROW_Y
:
204 case wxSYS_CAPTION_Y
:
210 case wxSYS_NETWORK_PRESENT
:
213 case wxSYS_PENWINDOWS_PRESENT
:
216 case wxSYS_SHOW_SOUNDS
:
219 case wxSYS_SWAP_BUTTONS
: