Mercurial > projects > dynamin
annotate dynamin/gui/office_theme.d @ 113:4636a64afabc default tip
Add reverse() function.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Sat, 19 Jan 2013 21:08:52 -0600 |
parents | 73060bc3f004 |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
103
73060bc3f004
Change license to Boost 1.0 and MPL 2.0.
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
3 * Copyright Jordan Miner |
0 | 4 * |
103
73060bc3f004
Change license to Boost 1.0 and MPL 2.0.
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
5 * This Source Code Form is subject to the terms of the Mozilla Public |
73060bc3f004
Change license to Boost 1.0 and MPL 2.0.
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
6 * License, v. 2.0. If a copy of the MPL was not distributed with this |
73060bc3f004
Change license to Boost 1.0 and MPL 2.0.
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
0 | 8 * |
9 */ | |
10 | |
11 module dynamin.gui.office_theme; | |
12 | |
13 static this() { | |
14 addTheme(new OfficeTheme()); | |
15 } | |
16 | |
17 enum OfficeStyle { | |
18 //Office2000 = 1 | |
19 OfficeXP = 2, Office2003 | |
20 } | |
21 // this theme paints its tool bars and menus as Office XP or Office 2003 | |
22 // It paints other controls exactly as the WindowsTheme does, as it is derived | |
23 // from it. | |
24 class OfficeTheme : WindowsTheme { | |
25 OfficeStyle _style = OfficeStyle.Office2003; | |
26 void officeStyle(OfficeStyle s) { _style = s; } | |
27 OfficeStyle officeStyle() { return _style; } | |
28 } | |
29 |