1 module glui.default_theme;
2 
3 import glui.style;
4 
5 immutable Theme gluiDefaultTheme;
6 
7 shared static this() {
8 
9     gluiDefaultTheme = cast(immutable) Theme.init.makeTheme!q{
10 
11         fontSize = 20;
12         lineHeight = 1.4;
13         charSpacing = 0.1;
14         wordSpacing = 0.5;
15 
16         textColor = Colors.BLACK;
17 
18         GluiFrame.styleAdd!q{
19 
20             backgroundColor = Colors.WHITE;
21 
22         };
23 
24         GluiButton!().styleAdd!q{
25 
26             backgroundColor = color!"#eee";
27             mouseCursor = MouseCursor.MOUSE_CURSOR_POINTING_HAND;
28 
29             margin.sideY = 2;
30             padding.sideX = 6;
31 
32             focusStyleAdd.backgroundColor = color!"#ddd";
33             hoverStyleAdd.backgroundColor = color!"#ccc";
34             pressStyleAdd.backgroundColor = color!"#aaa";
35             disabledStyleAdd!q{
36 
37                 textColor = color!"#000a";
38                 backgroundColor = color!"#eee5";
39 
40             };
41 
42         };
43 
44         GluiTextInput.styleAdd!q{
45 
46             backgroundColor = color!"#fffc";
47             mouseCursor = MouseCursor.MOUSE_CURSOR_IBEAM;
48 
49             margin.sideY = 2;
50             padding.sideX = 6;
51 
52             emptyStyleAdd.textColor = color!"#000a";
53             focusStyleAdd.backgroundColor = color!"#fff";
54             disabledStyleAdd!q{
55 
56                 textColor = color!"#000a";
57                 backgroundColor = color!"#fff5";
58 
59             };
60 
61         };
62 
63         GluiScrollBar.styleAdd!q{
64 
65             backgroundColor = color!"#aaa";
66 
67             backgroundStyleAdd.backgroundColor = color!"#eee";
68             hoverStyleAdd.backgroundColor = color!"#888";
69             focusStyleAdd.backgroundColor = color!"#777";
70             pressStyleAdd.backgroundColor = color!"#555";
71             disabledStyleAdd.backgroundColor = color!"#aaa5";
72 
73         };
74 
75         GluiFilePicker.selectedStyleAdd.backgroundColor = color!"#ff512f";
76 
77     };
78 
79 
80 }