libyui-ncurses  2.44.1
 All Classes Functions Variables
NCstyle.rxvt.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: NCstyle.rxvt.h
20 
21  Author: Generated by class NCstyle
22 
23 /-*/
24 
25 #ifndef NCstyle_rxvt_h
26 #define NCstyle_rxvt_h
27 
28 #include "NCstyle.h"
29 
30 inline void NCstyleInit_rxvt( std::vector<NCstyle::Style> & styleSet )
31 {
32  //=================================================================
33  // init global attributes
34  //=================================================================
35  NCattrset * attrset( &styleSet[NCstyle::DefaultStyle].getAttrGlobal() );
36  attrset->setAttr( NCstyle::AppTitle, 7936 );
37  attrset->setAttr( NCstyle::AppText, 1024 );
38  //=================================================================
39  // init local attributes
40  //=================================================================
41  // DefaultStyle
42  attrset = &styleSet[NCstyle::DefaultStyle].getAttrLocal();
43  attrset->setAttr( NCstyle::DialogBorder, 1024 );
44  attrset->setAttr( NCstyle::DialogTitle, 1024 );
45  attrset->setAttr( NCstyle::DialogActiveBorder, 1024 | A_BOLD );
46  attrset->setAttr( NCstyle::DialogActiveTitle, 1024 | A_BOLD );
47  attrset->setAttr( NCstyle::DialogText, 1024 );
48  attrset->setAttr( NCstyle::DialogHeadline, 1536 | A_BOLD );
49  attrset->setAttr( NCstyle::DialogDisabled, 0 );
50  attrset->setAttr( NCstyle::DialogPlain, 1024 );
51  attrset->setAttr( NCstyle::DialogLabel, 1024 );
52  attrset->setAttr( NCstyle::DialogData, 1536 | A_BOLD );
53  attrset->setAttr( NCstyle::DialogHint, 1536 | A_BOLD );
54  attrset->setAttr( NCstyle::DialogScrl, 1536 | A_BOLD );
55  attrset->setAttr( NCstyle::DialogActivePlain, 7936 );
56  attrset->setAttr( NCstyle::DialogActiveLabel, 7936 );
57  attrset->setAttr( NCstyle::DialogActiveData, 7936 );
58  attrset->setAttr( NCstyle::DialogActiveHint, 7168 | A_BOLD );
59  attrset->setAttr( NCstyle::DialogActiveScrl, 7168 | A_BOLD );
60  attrset->setAttr( NCstyle::DialogFramePlain, 1024 );
61  attrset->setAttr( NCstyle::DialogFrameLabel, 1024 );
62  attrset->setAttr( NCstyle::DialogFrameData, 1024 );
63  attrset->setAttr( NCstyle::DialogFrameHint, 1536 | A_BOLD );
64  attrset->setAttr( NCstyle::DialogFrameScrl, 1024 );
65  attrset->setAttr( NCstyle::DialogActiveFramePlain, 1024 | A_BOLD );
66  attrset->setAttr( NCstyle::DialogActiveFrameLabel, 7936 );
67  attrset->setAttr( NCstyle::DialogActiveFrameData, 1024 );
68  attrset->setAttr( NCstyle::DialogActiveFrameHint, 7168 | A_BOLD );
69  attrset->setAttr( NCstyle::DialogActiveFrameScrl, 1536 | A_BOLD );
70  attrset->setAttr( NCstyle::ListTitle, 1024 );
71  attrset->setAttr( NCstyle::ListPlain, 1024 );
72  attrset->setAttr( NCstyle::ListLabel, 1024 );
73  attrset->setAttr( NCstyle::ListData, 1536 | A_BOLD );
74  attrset->setAttr( NCstyle::ListHint, 1536 | A_BOLD );
75  attrset->setAttr( NCstyle::ListSelPlain, 1024 );
76  attrset->setAttr( NCstyle::ListSelLabel, 1024 );
77  attrset->setAttr( NCstyle::ListSelData, 1536 | A_BOLD );
78  attrset->setAttr( NCstyle::ListSelHint, 1536 | A_BOLD );
79  attrset->setAttr( NCstyle::ListActiveTitle, 1024 );
80  attrset->setAttr( NCstyle::ListActivePlain, 1024 );
81  attrset->setAttr( NCstyle::ListActiveLabel, 1024 );
82  attrset->setAttr( NCstyle::ListActiveData, 7168 | A_BOLD );
83  attrset->setAttr( NCstyle::ListActiveHint, 1536 | A_BOLD );
84  attrset->setAttr( NCstyle::ListActiveSelPlain, 7936 );
85  attrset->setAttr( NCstyle::ListActiveSelLabel, 7936 );
86  attrset->setAttr( NCstyle::ListActiveSelData, 7936 | A_BOLD );
87  attrset->setAttr( NCstyle::ListActiveSelHint, 6144 | A_BOLD );
88  attrset->setAttr( NCstyle::RichTextPlain, 1792 );
89  //Need to set foreground color explicitely, otherwise urxvt will display
90  //black font on black background. This solution sucks, but cannot find
91  //any better (#336060)
92  attrset->setFg( NCstyle::RichTextPlain, 7 );
93  attrset->setAttr( NCstyle::RichTextTitle, 512 );
94  attrset->setAttr( NCstyle::RichTextLink, 768 );
95  attrset->setAttr( NCstyle::RichTextArmedlink, 768 | A_BOLD );
96  attrset->setAttr( NCstyle::RichTextActiveArmedlink, 1024 | A_BOLD );
97  attrset->setAttr( NCstyle::RichTextVisitedLink, 3 );
98  attrset->setAttr( NCstyle::RichTextB, 0 | A_BOLD );
99  attrset->setAttr( NCstyle::RichTextI, 0 | A_BOLD );
100  attrset->setAttr( NCstyle::RichTextT, 256 | A_BOLD );
101  attrset->setAttr( NCstyle::RichTextBI, 512 | A_BOLD );
102  attrset->setAttr( NCstyle::RichTextBT, 256 | A_BOLD );
103  attrset->setAttr( NCstyle::RichTextIT, 512 );
104  attrset->setAttr( NCstyle::RichTextBIT, 14848 );
105  attrset->setAttr( NCstyle::ProgbarCh, 7168 | A_BOLD );
106  attrset->setAttr( NCstyle::ProgbarBgch, 32 | A_BOLD );
107  attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK );
108  // InfoStyle
109  attrset = &styleSet[NCstyle::InfoStyle].getAttrLocal();
110  attrset->setAttr( NCstyle::DialogBorder, 5888 );
111  attrset->setAttr( NCstyle::DialogTitle, 5888 );
112  attrset->setAttr( NCstyle::DialogActiveBorder, 4096 | A_BOLD );
113  attrset->setAttr( NCstyle::DialogActiveTitle, 4096 | A_BOLD );
114  attrset->setAttr( NCstyle::DialogText, 5888 );
115  attrset->setAttr( NCstyle::DialogHeadline, 4096 | A_BOLD );
116  attrset->setAttr( NCstyle::DialogDisabled, 5376 | A_BOLD );
117  attrset->setAttr( NCstyle::DialogPlain, 4096 | A_BOLD );
118  attrset->setAttr( NCstyle::DialogLabel, 5888 );
119  attrset->setAttr( NCstyle::DialogData, 4096 | A_BOLD );
120  attrset->setAttr( NCstyle::DialogHint, 4096 | A_BOLD );
121  attrset->setAttr( NCstyle::DialogScrl, 0 | A_BOLD );
122  attrset->setAttr( NCstyle::DialogActivePlain, 0 );
123  attrset->setAttr( NCstyle::DialogActiveLabel, 0 );
124  attrset->setAttr( NCstyle::DialogActiveData, 0 | A_BOLD );
125  attrset->setAttr( NCstyle::DialogActiveHint, 0 | A_BOLD );
126  attrset->setAttr( NCstyle::DialogActiveScrl, 0 );
127  attrset->setAttr( NCstyle::DialogFramePlain, 5888 );
128  attrset->setAttr( NCstyle::DialogFrameLabel, 5888 );
129  attrset->setAttr( NCstyle::DialogFrameData, 5888 );
130  attrset->setAttr( NCstyle::DialogFrameHint, 4096 | A_BOLD );
131  attrset->setAttr( NCstyle::DialogFrameScrl, 4096 );
132  attrset->setAttr( NCstyle::DialogActiveFramePlain, 4096 | A_BOLD );
133  attrset->setAttr( NCstyle::DialogActiveFrameLabel, 0 );
134  attrset->setAttr( NCstyle::DialogActiveFrameData, 5888 );
135  attrset->setAttr( NCstyle::DialogActiveFrameHint, 0 | A_BOLD );
136  attrset->setAttr( NCstyle::DialogActiveFrameScrl, 5376 | A_BOLD );
137  attrset->setAttr( NCstyle::ListTitle, 5888 );
138  attrset->setAttr( NCstyle::ListPlain, 5888 );
139  attrset->setAttr( NCstyle::ListLabel, 5888 );
140  attrset->setAttr( NCstyle::ListData, 4096 | A_BOLD );
141  attrset->setAttr( NCstyle::ListHint, 4096 | A_BOLD );
142  attrset->setAttr( NCstyle::ListSelPlain, 5888 );
143  attrset->setAttr( NCstyle::ListSelLabel, 5888 );
144  attrset->setAttr( NCstyle::ListSelData, 4096 | A_BOLD );
145  attrset->setAttr( NCstyle::ListSelHint, 4096 | A_BOLD );
146  attrset->setAttr( NCstyle::ListActiveTitle, 5888 );
147  attrset->setAttr( NCstyle::ListActivePlain, 5888 );
148  attrset->setAttr( NCstyle::ListActiveLabel, 5888 );
149  attrset->setAttr( NCstyle::ListActiveData, 4096 | A_BOLD );
150  attrset->setAttr( NCstyle::ListActiveHint, 4096 | A_BOLD );
151  attrset->setAttr( NCstyle::ListActiveSelPlain, 0 );
152  attrset->setAttr( NCstyle::ListActiveSelLabel, 0 );
153  attrset->setAttr( NCstyle::ListActiveSelData, 0 | A_BOLD );
154  attrset->setAttr( NCstyle::ListActiveSelHint, 0 | A_BOLD );
155  attrset->setAttr( NCstyle::RichTextPlain, 0 );
156  attrset->setFg( NCstyle::RichTextPlain, 7 );
157  attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD );
158  attrset->setAttr( NCstyle::RichTextLink, 768 );
159  attrset->setAttr( NCstyle::RichTextArmedlink, 768 | A_BOLD );
160  attrset->setAttr( NCstyle::RichTextActiveArmedlink, 1024 | A_BOLD );
161  attrset->setAttr( NCstyle::RichTextVisitedLink, 3 );
162  attrset->setAttr( NCstyle::RichTextB, 0 | A_BOLD );
163  attrset->setAttr( NCstyle::RichTextI, 0 | A_BOLD );
164  attrset->setAttr( NCstyle::RichTextT, 256 );
165  attrset->setAttr( NCstyle::RichTextBI, 512 | A_BOLD );
166  attrset->setAttr( NCstyle::RichTextBT, 256 | A_BOLD );
167  attrset->setAttr( NCstyle::RichTextIT, 256 );
168  attrset->setAttr( NCstyle::RichTextBIT, 256 | A_BOLD );
169  attrset->setAttr( NCstyle::ProgbarCh, 0x1720 );
170  attrset->setAttr( NCstyle::ProgbarBgch, 16160 );
171  attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK );
172  // WarnStyle
173  attrset = &styleSet[NCstyle::WarnStyle].getAttrLocal();
174  attrset->setAttr( NCstyle::DialogBorder, 3840 );
175  attrset->setAttr( NCstyle::DialogTitle, 3840 );
176  attrset->setAttr( NCstyle::DialogActiveBorder, 2048 | A_BOLD );
177  attrset->setAttr( NCstyle::DialogActiveTitle, 2048 | A_BOLD );
178  attrset->setAttr( NCstyle::DialogText, 3840 );
179  attrset->setAttr( NCstyle::DialogHeadline, 2048 | A_BOLD );
180  attrset->setAttr( NCstyle::DialogDisabled, 3584 | A_BOLD );
181  attrset->setAttr( NCstyle::DialogPlain, 3840 );
182  attrset->setAttr( NCstyle::DialogLabel, 3840 );
183  attrset->setAttr( NCstyle::DialogData, 2048 | A_BOLD );
184  attrset->setAttr( NCstyle::DialogHint, 2048 | A_BOLD );
185  attrset->setAttr( NCstyle::DialogScrl, 0 | A_BOLD );
186  attrset->setAttr( NCstyle::DialogActivePlain, 1536 | A_BOLD );
187  attrset->setAttr( NCstyle::DialogActiveLabel, 1536 | A_BOLD );
188  attrset->setAttr( NCstyle::DialogActiveData, 0 | A_BOLD );
189  attrset->setAttr( NCstyle::DialogActiveHint, 0 | A_BOLD );
190  attrset->setAttr( NCstyle::DialogActiveScrl, 0 | A_BOLD );
191  attrset->setAttr( NCstyle::DialogFramePlain, 3840 );
192  attrset->setAttr( NCstyle::DialogFrameLabel, 3840 );
193  attrset->setAttr( NCstyle::DialogFrameData, 3840 );
194  attrset->setAttr( NCstyle::DialogFrameHint, 2048 | A_BOLD );
195  attrset->setAttr( NCstyle::DialogFrameScrl, 3584 | A_BOLD );
196  attrset->setAttr( NCstyle::DialogActiveFramePlain, 2048 | A_BOLD );
197  attrset->setAttr( NCstyle::DialogActiveFrameLabel, 1536 | A_BOLD );
198  attrset->setAttr( NCstyle::DialogActiveFrameData, 3840 );
199  attrset->setAttr( NCstyle::DialogActiveFrameHint, 0 | A_BOLD );
200  attrset->setAttr( NCstyle::DialogActiveFrameScrl, 3584 | A_BOLD );
201  attrset->setAttr( NCstyle::ListTitle, 3840 );
202  attrset->setAttr( NCstyle::ListPlain, 3840 );
203  attrset->setAttr( NCstyle::ListLabel, 3840 );
204  attrset->setAttr( NCstyle::ListData, 2048 | A_BOLD );
205  attrset->setAttr( NCstyle::ListHint, 2048 | A_BOLD );
206  attrset->setAttr( NCstyle::ListSelPlain, 3840 );
207  attrset->setAttr( NCstyle::ListSelLabel, 3840 );
208  attrset->setAttr( NCstyle::ListSelData, 2048 | A_BOLD );
209  attrset->setAttr( NCstyle::ListSelHint, 2048 | A_BOLD );
210  attrset->setAttr( NCstyle::ListActiveTitle, 3840 );
211  attrset->setAttr( NCstyle::ListActivePlain, 3840 );
212  attrset->setAttr( NCstyle::ListActiveLabel, 3840 );
213  attrset->setAttr( NCstyle::ListActiveData, 2048 | A_BOLD );
214  attrset->setAttr( NCstyle::ListActiveHint, 2048 | A_BOLD );
215  attrset->setAttr( NCstyle::ListActiveSelPlain, 1536 | A_BOLD );
216  attrset->setAttr( NCstyle::ListActiveSelLabel, 1536 | A_BOLD );
217  attrset->setAttr( NCstyle::ListActiveSelData, 0 | A_BOLD );
218  attrset->setAttr( NCstyle::ListActiveSelHint, 0 | A_BOLD );
219  attrset->setAttr( NCstyle::RichTextPlain, 0 );
220  attrset->setFg( NCstyle::RichTextPlain, 7 );
221  attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD );
222  attrset->setAttr( NCstyle::RichTextLink, 768 );
223  attrset->setAttr( NCstyle::RichTextArmedlink, 768 | A_BOLD );
224  attrset->setAttr( NCstyle::RichTextActiveArmedlink, 1024 | A_BOLD );
225  attrset->setAttr( NCstyle::RichTextVisitedLink, 3 );
226  attrset->setAttr( NCstyle::RichTextB, 0 | A_BOLD );
227  attrset->setAttr( NCstyle::RichTextI, 0 | A_BOLD );
228  attrset->setAttr( NCstyle::RichTextT, 256 );
229  attrset->setAttr( NCstyle::RichTextBI, 512 | A_BOLD );
230  attrset->setAttr( NCstyle::RichTextBT, 256 | A_BOLD );
231  attrset->setAttr( NCstyle::RichTextIT, 256 );
232  attrset->setAttr( NCstyle::RichTextBIT, 256 | A_BOLD );
233  attrset->setAttr( NCstyle::ProgbarCh, 0x1720 );
234  attrset->setAttr( NCstyle::ProgbarBgch, 16160 );
235  attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK );
236  // PopupStyle
237  attrset = &styleSet[NCstyle::PopupStyle].getAttrLocal();
238  attrset->setAttr( NCstyle::DialogBorder, 7936 );
239  attrset->setAttr( NCstyle::DialogTitle, 7936 );
240  attrset->setAttr( NCstyle::DialogActiveBorder, 6144 | A_BOLD );
241  attrset->setAttr( NCstyle::DialogActiveTitle, 6144 | A_BOLD );
242  attrset->setAttr( NCstyle::DialogText, 7936 );
243  attrset->setAttr( NCstyle::DialogHeadline, 7168 | A_BOLD );
244  attrset->setAttr( NCstyle::DialogDisabled, 7936 | A_BOLD );
245  attrset->setAttr( NCstyle::DialogPlain, 7936 );
246  attrset->setAttr( NCstyle::DialogLabel, 7936 );
247  attrset->setAttr( NCstyle::DialogData, 7168 | A_BOLD );
248  attrset->setAttr( NCstyle::DialogHint, 7168 | A_BOLD );
249  attrset->setAttr( NCstyle::DialogScrl, 1024 | A_BOLD );
250  attrset->setAttr( NCstyle::DialogActivePlain, 1024 );
251  attrset->setAttr( NCstyle::DialogActiveLabel, 1024 );
252  attrset->setAttr( NCstyle::DialogActiveData, 1536 | A_BOLD );
253  attrset->setAttr( NCstyle::DialogActiveHint, 1536 | A_BOLD );
254  attrset->setAttr( NCstyle::DialogActiveScrl, 1024 | A_BOLD );
255  attrset->setAttr( NCstyle::DialogFramePlain, 7936 );
256  attrset->setAttr( NCstyle::DialogFrameLabel, 7936 );
257  attrset->setAttr( NCstyle::DialogFrameData, 13056 );
258  attrset->setAttr( NCstyle::DialogFrameHint, 7168 | A_BOLD );
259  attrset->setAttr( NCstyle::DialogFrameScrl, 7936 );
260  attrset->setAttr( NCstyle::DialogActiveFramePlain, 6144 | A_BOLD );
261  attrset->setAttr( NCstyle::DialogActiveFrameLabel, 1024 );
262  attrset->setAttr( NCstyle::DialogActiveFrameData, 7936 );
263  attrset->setAttr( NCstyle::DialogActiveFrameHint, 1536 | A_BOLD );
264  attrset->setAttr( NCstyle::DialogActiveFrameScrl, 7168 | A_BOLD );
265  attrset->setAttr( NCstyle::ListTitle, 7936 );
266  attrset->setAttr( NCstyle::ListPlain, 7936 );
267  attrset->setAttr( NCstyle::ListLabel, 7936 );
268  attrset->setAttr( NCstyle::ListData, 7168 | A_BOLD );
269  attrset->setAttr( NCstyle::ListHint, 7168 | A_BOLD );
270  attrset->setAttr( NCstyle::ListSelPlain, 6912 );
271  attrset->setAttr( NCstyle::ListSelLabel, 6912 );
272  attrset->setAttr( NCstyle::ListSelData, 7168 | A_BOLD );
273  attrset->setAttr( NCstyle::ListSelHint, 7168 | A_BOLD );
274  attrset->setAttr( NCstyle::ListActiveTitle, 7936 );
275  attrset->setAttr( NCstyle::ListActivePlain, 7936 );
276  attrset->setAttr( NCstyle::ListActiveLabel, 7936 );
277  attrset->setAttr( NCstyle::ListActiveData, 7168 | A_BOLD );
278  attrset->setAttr( NCstyle::ListActiveHint, 7168 | A_BOLD );
279  attrset->setAttr( NCstyle::ListActiveSelPlain, 1024 );
280  attrset->setAttr( NCstyle::ListActiveSelLabel, 1024 );
281  attrset->setAttr( NCstyle::ListActiveSelData, 1536 | A_BOLD );
282  attrset->setAttr( NCstyle::ListActiveSelHint, 1536 | A_BOLD );
283  attrset->setAttr( NCstyle::RichTextPlain, 0 );
284  attrset->setFg( NCstyle::RichTextPlain, 7 );
285  attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD );
286  attrset->setAttr( NCstyle::RichTextLink, 768 );
287  attrset->setAttr( NCstyle::RichTextArmedlink, 768 | A_BOLD );
288  attrset->setAttr( NCstyle::RichTextActiveArmedlink, 1024 | A_BOLD );
289  attrset->setAttr( NCstyle::RichTextVisitedLink, 3 );
290  attrset->setAttr( NCstyle::RichTextB, 0 | A_BOLD );
291  attrset->setAttr( NCstyle::RichTextI, 0 | A_BOLD );
292  attrset->setAttr( NCstyle::RichTextT, 256 );
293  attrset->setAttr( NCstyle::RichTextBI, 512 | A_BOLD );
294  attrset->setAttr( NCstyle::RichTextBT, 256 | A_BOLD );
295  attrset->setAttr( NCstyle::RichTextIT, 256 );
296  attrset->setAttr( NCstyle::RichTextBIT, 256 | A_BOLD );
297  attrset->setAttr( NCstyle::ProgbarCh, 0x1720 );
298  attrset->setAttr( NCstyle::ProgbarBgch, 16160 );
299  attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK );
300 }
301 
302 #endif // NCstyle_rxvt_h