1 /* 2 * Copyright © 2009, 2010 Christian Persch <chpe@src.gnome.org> 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program 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 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __AR_STYLE_PRIVATE_H__ 19 #define __AR_STYLE_PRIVATE_H__ 20 21 G_BEGIN_DECLS 22 23 static const GdkRGBA default_background_color = { 0. /* red */, 0.3125 /* green */, 0.0625 /* blue */, 1.0 /* alpha */ }; 24 static const GdkRGBA default_selection_color = { 0. /* red */, 0. /* green */, 0.6666 /* blue */, 0.5 /* alpha */ }; 25 26 #define DEFAULT_BACKGROUND_COLOR_STRING "rgb(0%,31%,6%)" 27 #define DEFAULT_SELECTION_COLOR_STRING "rgba(0%,0%,66%,0.5)" 28 29 /* The proportion of a slot dedicated to the card (horiz or vert). */ 30 #define DEFAULT_CARD_OVERHANG (0.0) 31 32 #define DEFAULT_CARD_SLOT_RATIO (0.95) 33 34 #define MIN_CARD_STEP (0.0) 35 #define MAX_CARD_STEP (1.0) /* FIXMEchpe: allow values > 1.0 here? */ 36 #define DEFAULT_CARD_STEP (0.2) 37 38 #define DEFAULT_SHOW_TOOLTIPS (FALSE) 39 #define DEFAULT_SHOW_STATUS_MESSAGES (FALSE) 40 41 struct _ArStylePrivate 42 { 43 ArCardTheme* card_theme; 44 45 GdkRGBA selection_color; 46 47 double card_slot_ratio; 48 double card_overhang; 49 double card_step; 50 51 int dnd_drag_threshold; 52 int double_click_time; 53 int focus_line_width; 54 int focus_padding; 55 56 guint enable_animations_gtk : 1; 57 guint enable_animations : 1; 58 guint enable_sound_gtk : 1; 59 guint enable_sound : 1; 60 guint enable_tooltips : 1; 61 guint enable_status_messages : 1; 62 guint touchscreen_mode : 1; 63 64 guint rtl : 1; 65 guint interior_focus : 1; 66 67 guint click_to_move : 1; 68 69 guint keynav_enabled : 1; 70 guint show_focus : 1; 71 guint show_highlight : 1; 72 guint show_seleccion : 1; 73 }; 74 75 G_END_DECLS 76 77 #endif /* __AR_STYLE_PRIVATE_H__ */ 78