| 1 |
// ---------------------------------------------------------------------------- |
| 2 |
// |
| 3 |
// Copyright (C) 2003-2013 Fons Adriaensen <[email protected]> |
| 4 |
// |
| 5 |
// This program is free software; you can redistribute it and/or modify |
| 6 |
// it under the terms of the GNU General Public License as published by |
| 7 |
// the Free Software Foundation; either version 3 of the License, or |
| 8 |
// (at your option) any later version. |
| 9 |
// |
| 10 |
// This program is distributed in the hope that it will be useful, |
| 11 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
// GNU General Public License for more details. |
| 14 |
// |
| 15 |
// You should have received a copy of the GNU General Public License |
| 16 |
// along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
// |
| 18 |
// ---------------------------------------------------------------------------- |
| 19 |
|
| 20 |
|
| 21 |
#ifndef __STYLES_H |
| 22 |
#define __STYLES_H |
| 23 |
|
| 24 |
|
| 25 |
#include "clxclient.h" |
| 26 |
|
| 27 |
|
| 28 |
struct colors |
| 29 |
{ |
| 30 |
unsigned long white; |
| 31 |
unsigned long black; |
| 32 |
unsigned long main_ds; |
| 33 |
unsigned long main_ls; |
| 34 |
unsigned long text_bg; |
| 35 |
unsigned long text_hl; |
| 36 |
unsigned long text_mk; |
| 37 |
unsigned long spla_bg; |
| 38 |
unsigned long spla_bd; |
| 39 |
unsigned long plot_bg; |
| 40 |
unsigned long plot_gr; |
| 41 |
unsigned long plot_da [2]; |
| 42 |
unsigned long plot_mk [2]; |
| 43 |
unsigned long meter_bg; |
| 44 |
unsigned long meter_ds; |
| 45 |
unsigned long meter_ls; |
| 46 |
unsigned long meter_offc0; |
| 47 |
unsigned long meter_offc1; |
| 48 |
unsigned long meter_offmk; |
| 49 |
unsigned long meter_actc0; |
| 50 |
unsigned long meter_actc1; |
| 51 |
unsigned long meter_actmk; |
| 52 |
}; |
| 53 |
|
| 54 |
|
| 55 |
struct fonts |
| 56 |
{ |
| 57 |
}; |
| 58 |
|
| 59 |
|
| 60 |
struct xft_colors |
| 61 |
{ |
| 62 |
XftColor *white; |
| 63 |
XftColor *black; |
| 64 |
XftColor *main_bg; |
| 65 |
XftColor *main_fg; |
| 66 |
XftColor *meter_fg; |
| 67 |
XftColor *tick0; |
| 68 |
XftColor *tick1; |
| 69 |
XftColor *spla_fg; |
| 70 |
XftColor *text_fg; |
| 71 |
XftColor *spect_fg; |
| 72 |
XftColor *spect_sc; |
| 73 |
XftColor *butt_bg [4]; |
| 74 |
XftColor *butt_fg [4]; |
| 75 |
XftColor *menu_bg; |
| 76 |
XftColor *menu_fg [4]; |
| 77 |
XftColor *menu_mm; |
| 78 |
XftColor *mark_fg; |
| 79 |
XftColor *plot_sc; |
| 80 |
}; |
| 81 |
|
| 82 |
|
| 83 |
struct xft_fonts |
| 84 |
{ |
| 85 |
XftFont *spla1; |
| 86 |
XftFont *spla2; |
| 87 |
XftFont *button; |
| 88 |
XftFont *labels; |
| 89 |
XftFont *scales; |
| 90 |
XftFont *files; |
| 91 |
XftFont *menus; |
| 92 |
}; |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
extern struct colors Colors; |
| 97 |
extern struct fonts Fonts; |
| 98 |
extern struct xft_colors XftColors; |
| 99 |
extern struct xft_fonts XftFonts; |
| 100 |
extern X_button_style Bst0, Bst1, Bst2; |
| 101 |
extern X_textln_style Tst0, Tst1; |
| 102 |
extern X_menuwin_style Mst1, Mst2; |
| 103 |
extern X_mclist_style Lst0; |
| 104 |
extern X_scale_style Slevel, Sprogr; |
| 105 |
extern X_meter_style Mlevel, Mprogr; |
| 106 |
|
| 107 |
|
| 108 |
extern void init_styles (X_display *disp, X_resman *xrm); |
| 109 |
|
| 110 |
|
| 111 |
#define PROGNAME "Aliki" |
| 112 |
|
| 113 |
|
| 114 |
#endif |