2 * Copyright (C) 2005 Richard Stellingwerff.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 * Written by Owen Taylor <otaylor@redhat.com>
20 * and by Alexander Larsson <alexl@redhat.com>
21 * Modified by Richard Stellingwerff <remenic@gmail.com>
23 #include <gtk/gtkstyle.h>
25 #include "clearlooks_draw.h"
27 typedef struct _ClearlooksStyle ClearlooksStyle;
28 typedef struct _ClearlooksStyleClass ClearlooksStyleClass;
30 extern GType clearlooks_type_style;
32 #define CLEARLOOKS_TYPE_STYLE clearlooks_type_style
33 #define CLEARLOOKS_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), CLEARLOOKS_TYPE_STYLE, ClearlooksStyle))
34 #define CLEARLOOKS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLEARLOOKS_TYPE_STYLE, ClearlooksStyleClass))
35 #define CLEARLOOKS_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), CLEARLOOKS_TYPE_STYLE))
36 #define CLEARLOOKS_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLEARLOOKS_TYPE_STYLE))
37 #define CLEARLOOKS_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLEARLOOKS_TYPE_STYLE, ClearlooksStyleClass))
43 CL_BORDER_UPPER_ACTIVE,
44 CL_BORDER_LOWER_ACTIVE,
50 CL_SCROLLBUTTON_BEGIN = 0,
55 struct _ClearlooksStyle
57 GtkStyle parent_instance;
66 GdkColor border[CL_BORDER_COUNT];
68 /* from light to dark */
70 GdkGC *border_gc[CL_BORDER_COUNT];
76 GdkColor inset_light[5];
77 GdkColor inset_dark[5];
79 GdkColor button_g1[5];
80 GdkColor button_g2[5];
81 GdkColor button_g3[5];
82 GdkColor button_g4[5];
84 GdkColor listview_bg[5];
86 GdkPixmap *radio_pixmap_nonactive[5];
87 GdkPixmap *radio_pixmap_active[5];
88 GdkPixmap *radio_pixmap_inconsistent[5];
89 GdkBitmap *radio_pixmap_mask; /* All masks are the same */
91 GdkPixmap *check_pixmap_nonactive[5];
92 GdkPixmap *check_pixmap_active[5];
93 GdkPixmap *check_pixmap_inconsistent[5];
95 gboolean sunkenmenubar:1;
97 guint8 progressbarstyle;
100 guint8 listviewitemstyle;
103 struct _ClearlooksStyleClass
105 GtkStyleClass parent_class;
108 void clearlooks_style_register_type (GTypeModule *module);