]> icculus.org git repositories - mikachu/openbox.git/blob - otk/renderstyle.cc
part of a hardcoded style done
[mikachu/openbox.git] / otk / renderstyle.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 #ifdef    HAVE_CONFIG_H
4 #  include "../config.h"
5 #endif // HAVE_CONFIG_H
6
7 #include "renderstyle.hh"
8 #include "rendercolor.hh"
9 #include "rendertexture.hh"
10
11 namespace otk {
12
13 RenderStyle(int screen, const std::string &stylefile)
14   : _screen(screen),
15     _file(stylefile)
16 {
17   _text_focus_color = new RenderColor(_screen, 0x272a2f);
18   _text_unfocus_color = new RenderColor(_screen, 0x676869);
19
20   _frame_border_color = new RenderColor(_screen, 0x181f24);
21   _frame_border_width = 1;
22
23   _client_border_color_focus = new RenderColor(_screen, 0x858687);
24   _client_border_color_unfocus = new RenderColor(_screen, 0x555657);
25   _client_border_width = 1;
26
27   _titlebar_focus = new RenderTexture(false,
28                                       RenderTexture::Flat,
29                                       RenderTexture::Bevel1,
30                                       false,
31                                       RenderTexture::Vertical,
32                                       false,
33                                       0x858687,
34                                       0x373a3f,
35                                       0x0,
36                                       0x0,
37                                       0x0,
38                                       0x0);
39   _titlebar_unfocus = new RenderTexture(false,
40                                         RenderTexture::Flat,
41                                         RenderTexture::Bevel1,
42                                         false,
43                                         RenderTexture::Vertical,
44                                         false,
45                                         0x555657,
46                                         0x171a1f,
47                                         0x0,
48                                         0x0,
49                                         0x0,
50                                         0x0);
51
52   _label_focus = new RenderTexture(false,
53                                    RenderTexture::Flat,
54                                    RenderTexture::Bevel1,
55                                    true,
56                                    RenderTexture::Vertical,
57                                    false,
58                                    0x858687,
59                                    0x373a3f,
60                                    0x0,
61                                    0x0,
62                                    0x181f24,
63                                    0x0);
64   _label_unfocus = new RenderTexture(false,
65                                      RenderTexture::Sunken,
66                                      RenderTexture::Bevel1,
67                                      false,
68                                      RenderTexture::CrossDiagonal,
69                                      false,
70                                      0x555657,
71                                      0x272a2f,
72                                      //XXX,
73                                      //XXX,
74                                      0x0,
75                                      0x0);
76
77
78   _handle_focus = new RenderTexture(false,
79                                     RenderTexture::Flat,
80                                     RenderTexture::Bevel1,
81                                     true,
82                                     RenderTexture::Vertical,
83                                     false,
84                                     0x858687,
85                                     0x373a3f,
86                                     0x0,
87                                     0x0,
88                                     0x0,
89                                     0x0);
90   _handle_unfocus = new RenderTexture(false,
91                                       RenderTexture::Flat,
92                                       RenderTexture::Bevel1,
93                                       false,
94                                       RenderTexture::Vertical,
95                                       false,
96                                       0x555657,
97                                       0x171a1f,
98                                       0x0,
99                                       0x0,
100                                       0x0,
101                                       0x0);
102
103 }
104
105 virtual ~RenderStyle()
106 {
107 }
108
109 }