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
:
83 wxFont
wxSystemSettings::GetSystemFont(int index
)
87 case wxSYS_SYSTEM_FIXED_FONT
:
89 return wxFont(12, wxMODERN
, wxNORMAL
, wxNORMAL
, FALSE
);
92 case wxSYS_DEVICE_DEFAULT_FONT
:
93 case wxSYS_SYSTEM_FONT
:
94 case wxSYS_DEFAULT_GUI_FONT
:
97 return wxFont(12, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
);
105 // Get a system metric, e.g. scrollbar size
106 int wxSystemSettings::GetSystemMetric(int index
)
110 case wxSYS_MOUSE_BUTTONS
:
143 case wxSYS_HSCROLL_ARROW_X
:
146 case wxSYS_HSCROLL_ARROW_Y
:
158 case wxSYS_ICONSPACING_X
:
161 case wxSYS_ICONSPACING_Y
:
164 case wxSYS_WINDOWMIN_X
:
167 case wxSYS_WINDOWMIN_Y
:
176 case wxSYS_FRAMESIZE_X
:
179 case wxSYS_FRAMESIZE_Y
:
182 case wxSYS_SMALLICON_X
:
185 case wxSYS_SMALLICON_Y
:
188 case wxSYS_HSCROLL_Y
:
191 case wxSYS_VSCROLL_X
:
194 case wxSYS_VSCROLL_ARROW_X
:
197 case wxSYS_VSCROLL_ARROW_Y
:
203 case wxSYS_CAPTION_Y
:
209 case wxSYS_NETWORK_PRESENT
:
212 case wxSYS_PENWINDOWS_PRESENT
:
215 case wxSYS_SHOW_SOUNDS
:
218 case wxSYS_SWAP_BUTTONS
: