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_WINDOW
:
31 case wxSYS_COLOUR_SCROLLBAR
:
32 // case wxSYS_COLOUR_DESKTOP: // Same as wxSYS_COLOUR_BACKGROUND
33 case wxSYS_COLOUR_BACKGROUND
:
34 case wxSYS_COLOUR_ACTIVECAPTION
:
35 case wxSYS_COLOUR_INACTIVECAPTION
:
36 case wxSYS_COLOUR_MENU
:
37 case wxSYS_COLOUR_WINDOWFRAME
:
38 case wxSYS_COLOUR_ACTIVEBORDER
:
39 case wxSYS_COLOUR_INACTIVEBORDER
:
40 case wxSYS_COLOUR_BTNFACE
:
41 // case wxSYS_COLOUR_3DFACE: // Same as wxSYS_COLOUR_BTNFACE
42 case wxSYS_COLOUR_GRAYTEXT
:
44 return wxColour("LIGHT GREY");
46 case wxSYS_COLOUR_BTNSHADOW
:
47 // case wxSYS_COLOUR_3DSHADOW: // Same as wxSYS_COLOUR_BTNSHADOW
49 return wxColour("GREY");
51 case wxSYS_COLOUR_3DDKSHADOW
:
55 case wxSYS_COLOUR_HIGHLIGHT
:
59 case wxSYS_COLOUR_BTNHIGHLIGHT
:
60 case wxSYS_COLOUR_LISTBOX
:
61 // case wxSYS_COLOUR_3DHIGHLIGHT: // Same as wxSYS_COLOUR_BTNHIGHLIGHT
65 case wxSYS_COLOUR_3DLIGHT
:
67 return wxColour("LIGHT GREY");
69 case wxSYS_COLOUR_MENUTEXT
:
70 case wxSYS_COLOUR_WINDOWTEXT
:
71 case wxSYS_COLOUR_CAPTIONTEXT
:
72 case wxSYS_COLOUR_INACTIVECAPTIONTEXT
:
73 case wxSYS_COLOUR_INFOTEXT
:
77 case wxSYS_COLOUR_HIGHLIGHTTEXT
:
81 case wxSYS_COLOUR_INFOBK
:
82 case wxSYS_COLOUR_APPWORKSPACE
:
84 return wxColour("LIGHT GREY");
91 wxFont
wxSystemSettings::GetSystemFont(int index
)
95 case wxSYS_SYSTEM_FIXED_FONT
:
97 return wxFont(12, wxMODERN
, wxNORMAL
, wxNORMAL
, FALSE
);
100 case wxSYS_DEVICE_DEFAULT_FONT
:
101 case wxSYS_SYSTEM_FONT
:
102 case wxSYS_DEFAULT_GUI_FONT
:
105 return wxFont(12, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
);
113 // Get a system metric, e.g. scrollbar size
114 int wxSystemSettings::GetSystemMetric(int index
)
118 case wxSYS_MOUSE_BUTTONS
:
151 case wxSYS_HSCROLL_ARROW_X
:
154 case wxSYS_HSCROLL_ARROW_Y
:
166 case wxSYS_ICONSPACING_X
:
169 case wxSYS_ICONSPACING_Y
:
172 case wxSYS_WINDOWMIN_X
:
175 case wxSYS_WINDOWMIN_Y
:
184 case wxSYS_FRAMESIZE_X
:
187 case wxSYS_FRAMESIZE_Y
:
190 case wxSYS_SMALLICON_X
:
193 case wxSYS_SMALLICON_Y
:
196 case wxSYS_HSCROLL_Y
:
199 case wxSYS_VSCROLL_X
:
202 case wxSYS_VSCROLL_ARROW_X
:
205 case wxSYS_VSCROLL_ARROW_Y
:
211 case wxSYS_CAPTION_Y
:
217 case wxSYS_NETWORK_PRESENT
:
220 case wxSYS_PENWINDOWS_PRESENT
:
223 case wxSYS_SHOW_SOUNDS
:
226 case wxSYS_SWAP_BUTTONS
: