]> git.draconx.ca Git - fvwmconf.git/blob - gtk2rc
xaspect: Add copyright notice.
[fvwmconf.git] / gtk2rc
1 gtk-font-name = "DejaVu Sans 10"
2
3 # Set GtkSettings color scheme property.
4 # This can be overriden (via an xsetting) with eg. the gnome-appearance-properties.
5 gtk_color_scheme = "fg_color:#101010\nbg_color:#EDE9E3\nbase_color:#fff\ntext_color:#000\nselected_bg_color:#5598d7\nselected_fg_color:#fff\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
6
7 style "clearlooks-default"
8 {
9         ########
10         # Style Properties
11         ########
12         GtkButton      ::child-displacement-x = 1
13         GtkButton      ::child-displacement-y = 1
14         GtkButton      ::default-border       = { 0, 0, 0, 0 }
15         GtkCheckButton ::indicator-size       = 14
16
17         GtkPaned       ::handle-size          = 6
18
19         GtkRange       ::trough-border        = 0
20         GtkRange       ::slider-width         = 15
21         GtkRange       ::stepper-size         = 15
22
23         GtkScale       ::slider-length        = 23
24         GtkScale       ::trough-side-details  = 1
25         GtkScrollbar   ::min-slider-length    = 30
26
27         GtkMenuBar     ::internal-padding     = 0
28         GtkExpander    ::expander-size        = 16
29         GtkToolbar     ::internal-padding     = 1
30         GtkTreeView    ::expander-size        = 14
31         GtkTreeView    ::vertical-separator   = 1
32
33         GtkMenu        ::horizontal-padding   = 0
34         GtkMenu        ::vertical-padding     = 0
35
36         # Glow the tasklist by changing the color instead of overlaying it
37         # with a rectangle
38         WnckTasklist   ::fade-overlay-rect    = 0
39
40         xthickness = 1
41         ythickness = 1
42
43         fg[NORMAL]        = "#101010" # black
44         fg[PRELIGHT]      = "#101010" # black
45         fg[SELECTED]      = "#ffffff" # white 
46         fg[ACTIVE]        = "#000000" # black
47         fg[INSENSITIVE]   = "#b5b3ac" # dark beige
48
49         bg[NORMAL]        = "#efebe7"
50         bg[PRELIGHT]      = "#f5f3f0" # very light beige
51         bg[SELECTED]        = "#628cb2" # deepsky
52         bg[INSENSITIVE]   = "#efebe7" # beige
53         bg[ACTIVE]        = "#d4cfca" #"#d7d3ca" # dark beige
54
55         base[NORMAL]      = "#ffffff" # white 
56         base[PRELIGHT]    = "#628cb2" # dark beige
57         base[ACTIVE]      = "#a28e7e" # darker deepsky
58         base[SELECTED]    = "#628cb2" # deepsky
59         base[INSENSITIVE] = "#efebe7" # beige
60
61         text[NORMAL]      = "#000000" # black
62         text[PRELIGHT]    = "#000000" # black
63         text[ACTIVE]      = "#ffffff" # white
64         text[SELECTED]    = "#ffffff" # white
65         text[INSENSITIVE] = "#b5b3ac" # dark beige
66
67         engine "clearlooks" 
68         {
69                 colorize_scrollbar = FALSE
70                 menubarstyle      = 2      # 0 = flat, 1 = sunken, 2 = flat gradient
71                 toolbarstyle      = 1      # 0 = flat, 1 = enable effects
72                 animation         = FALSE
73                 style             = CLASSIC
74         }
75 }
76
77 style "clearlooks-wide"
78 {
79         xthickness = 2
80         ythickness = 2
81 }
82
83 style "clearlooks-wider"
84 {
85         xthickness = 3
86         ythickness = 3
87 }
88
89 style "clearlooks-button"
90 {
91         xthickness   = 3
92         ythickness   = 3
93
94         bg[NORMAL]        = "#f6f4f1"
95         bg[INSENSITIVE]   = "#f2efeb"
96         bg[PRELIGHT]      = "#faf9f8"
97 }
98
99 style "clearlooks-notebook"
100 {
101         xthickness = 2
102         ythickness = 2
103
104         bg[NORMAL]      = "#eae4df"
105         bg[INSENSITIVE] = "#eae4df"
106 }
107
108 style "clearlooks-tasklist"
109 {
110         xthickness = 5
111         ythickness = 3
112 }
113
114 style "clearlooks-menu"
115 {
116         xthickness = 0
117         ythickness = 0
118
119         bg[NORMAL] = "#f8f5f2"
120
121         # Radius of the menu items (inside menus)
122         engine "clearlooks" {
123                 radius = 0.0
124         }
125 }
126
127 style "clearlooks-menu-item"
128 {
129         xthickness = 2
130         ythickness = 3
131
132         fg[PRELIGHT]   = "#ffffff"
133         text[PRELIGHT] = "#ffffff"
134
135         # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
136         text[NORMAL]       = @fg_color
137         text[PRELIGHT]     = @selected_fg_color
138         text[SELECTED]     = @selected_fg_color
139         text[ACTIVE]       = @fg_color
140         text[INSENSITIVE]  = darker (@bg_color)
141 }
142
143 style "clearlooks-separator-menu-item"
144 {
145         GtkSeparatorMenuItem::horizontal-padding = 0
146         # We are setting the desired height by using wide-separators
147         # There is no other way to get the odd height ...
148         GtkWidget::wide-separators = 1
149         GtkWidget::separator-width = 1
150         GtkWidget::separator-height = 5
151         xthickness = 1
152         ythickness = 0
153 }
154
155 # Based on the default style so that the colors from the button
156 # style are overriden again.
157 style "clearlooks-treeview-header" = "clearlooks-default"
158 {
159         xthickness = 2
160         ythickness = 1
161 }
162
163 style "clearlooks-frame-title"
164 {
165         fg[NORMAL] = lighter (@fg_color)
166 }
167
168 style "clearlooks-tooltips"
169 {
170         xthickness = 4
171         ythickness = 4
172
173         bg[NORMAL] = @tooltip_bg_color
174         fg[NORMAL] = @tooltip_fg_color
175 }
176
177 style "clearlooks-progressbar"
178 {
179         xthickness = 1
180         ythickness = 1
181
182         fg[PRELIGHT] = @selected_fg_color
183
184         engine "clearlooks" {
185                 # Explicitly set the radius, for progress
186                 # bars inside menuitems
187                 radius = 3.0
188         }
189 }
190
191 style "clearlooks-nautilus-location" {
192         bg[NORMAL] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
193 }
194
195
196 #########################################
197 # Matches
198 #########################################
199
200 # Clearlooks default style is applied to every widget
201 class "GtkWidget"    style "clearlooks-default"
202
203 # Increase the x/ythickness in some widgets
204 class "GtkToolbar"   style "clearlooks-default" 
205 class "GtkRange"     style "clearlooks-wide"
206 class "GtkFrame"     style "clearlooks-wide"
207 class "GtkSeparator" style "clearlooks-wide"
208 class "GtkEntry"     style "clearlooks-wider"
209
210 # General matching following, the order is choosen so that the right styles override each other
211 # eg. progressbar needs to be more important then the menu match.
212
213 widget_class "*<GtkMenu>*"              style "clearlooks-menu"
214 widget_class "*<GtkMenuItem>*"          style "clearlooks-menu-item"
215 widget_class "*<GtkSeparatorMenuItem>*" style "clearlooks-separator-menu-item"
216
217 widget_class "*<GtkButton>"      style "clearlooks-button"
218 widget_class "*<GtkNotebook>"    style "clearlooks-notebook"
219 widget_class "*<GtkProgressBar>" style "clearlooks-progressbar"
220
221 widget_class "*.<GtkFrame>.<GtkLabel>" style "clearlooks-frame-title"
222
223 # Treeview header
224 widget_class "*.<GtkTreeView>.<GtkButton>" style "clearlooks-treeview-header"
225 widget_class "*.<GtkCTree>.<GtkButton>"    style "clearlooks-treeview-header"
226 widget_class "*.<GtkList>.<GtkButton>"     style "clearlooks-treeview-header"
227 widget_class "*.<GtkCList>.<GtkButton>"    style "clearlooks-treeview-header"
228
229 # The window of the tooltip is called "gtk-tooltip"
230 ################################
231 # FIXME:
232 # This will not work if one embeds eg. a button into the tooltip.
233 # As far as I can tell right now we will need to rework the theme
234 # quite a bit to get this working correctly.
235 # (It will involve setting different priorities, etc.)
236 ################################
237 widget "gtk-tooltip*" style "clearlooks-tooltips"
238
239
240
241 ###################################################
242 # Special cases and work arounds
243 ###################################################
244
245 # Special case the nautilus-extra-view-widget
246 # ToDo: A more generic approach for all applications that have a widget like this.
247 widget "*.nautilus-extra-view-widget" style : highest "clearlooks-nautilus-location"
248
249 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
250 # Note that the work around assumes that the combobox is _not_ in
251 # appears-as-list mode.
252 # Similar hack also in the menuitem style.
253 # This style does not affect GtkComboBoxEntry, it does have an effect
254 # on comboboxes in appears-as-list mode though.
255 style "clearlooks-combobox-text-color-workaround"
256 {
257         text[NORMAL]      = @fg_color
258         text[PRELIGHT]    = @fg_color
259         text[SELECTED]    = @selected_fg_color
260         text[ACTIVE]      = @fg_color
261         text[INSENSITIVE] = darker (@bg_color)
262 }
263 widget_class "*.<GtkComboBox>.<GtkCellView>"   style "clearlooks-combobox-text-color-workaround"
264
265
266 # Work around the evolution "New" button bug by making the toolbar flat.
267 # http://bugzilla.gnome.org/show_bug.cgi?id=446953
268 # Maybe remove this workaround in unstable releases.
269 style "clearlooks-evo-new-button-workaround"
270 {
271         engine "clearlooks" {
272                 toolbarstyle = 0
273         }
274 }
275 widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "clearlooks-evo-new-button-workaround"