Rename lxappearance2 back to lxappearance.
[lxde/lxappearance.git] / src / lxappearance.h
1 /*
2 * lxappearance.h
3 *
4 * Copyright 2010 PCMan <pcman.tw@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 */
21
22 #ifndef _LXAPPEARANCE_H_
23 #define _LXAPPEARANCE_H_
24
25 #include <gtk/gtk.h>
26
27 typedef struct _LXAppearance LXAppearance;
28 struct _LXAppearance
29 {
30 GtkWidget* dlg;
31 GtkWidget* notebook;
32
33 /* gtk theme */
34 GtkWidget* widget_theme_view;
35 GtkListStore* widget_theme_store;
36 GtkWidget* default_font_btn;
37
38 /* color scheme */
39 GtkWidget* color_table;
40 GtkWidget* custom_colors;
41 GtkWidget* no_custom_colors;
42 GHashTable* color_scheme_hash; /* the custom color scheme set by the user */
43 GHashTable* default_color_scheme_hash; /* default colors of current gtk theme */
44 gboolean color_scheme_supported; /* if color scheme is supported by current gtk theme */
45 /* color buttons in color scheme page. */
46 GtkWidget* color_btns[8]; /* FIXME: this value might be changed in the future */
47
48 /* icon theme */
49 GtkWidget* icon_theme_view;
50 GtkListStore* icon_theme_store;
51 GtkWidget* icon_theme_remove_btn;
52
53 /* cursor theme */
54 GtkWidget* cursor_theme_view;
55 GtkWidget* cursor_demo_view;
56 GtkListStore* cursor_theme_store;
57 GtkWidget* cursor_size_range;
58 GtkWidget* cursor_theme_remove_btn;
59
60 GSList* icon_themes; /* a list of IconTheme struct representing all icon and cursor themes */
61
62 /* toolbar style and icon size */
63 GtkWidget* tb_style_combo;
64 GtkWidget* tb_icon_size_combo;
65
66 GtkWidget* button_images_check;
67 GtkWidget* menu_images_check;
68
69 char* widget_theme;
70 char* default_font;
71 char* icon_theme;
72 char* cursor_theme;
73 int cursor_theme_size;
74 char* color_scheme;
75 int toolbar_style;
76 int toolbar_icon_size;
77
78 gboolean button_images;
79 gboolean menu_images;
80
81 #if GTK_CHECK_VERSION(2, 14, 0)
82 GtkWidget* event_sound_check;
83 GtkWidget* input_feedback_check;
84 gboolean enable_event_sound;
85 gboolean enable_input_feedback;
86 #endif
87
88 gboolean changed;
89 gboolean use_lxsession;
90 };
91
92 extern LXAppearance app;
93
94 void lxappearance_changed();
95
96 #endif