Code

Fixes to icon and font sizes
[inkscape.git] / packaging / macosx / Resources / themes / Clearlooks-Quicksilver-OSX / gtk-2.0 / pre_gtkrc
1 #
2 # GTK theme to be used on Mac OS X, to mimic the appearance of Tiger
3
4 # Heavily based on Clearlooks-Quicksilver
5 # Scrollbars from OSX-theme by Lauri Taimila (lauri@taimila.com)
6
7 # (c) 2007 JiHO <jo.irisson@gmail.com>. 
8 # GNU General Public License http://www.gnu.org/copyleft/gpl.html
9 #
11 style "clearlooks-default"
12 {
13         GtkButton               ::default_border         = { 0, 0, 0, 0 }
14         GtkRange                        ::trough_border  = 0
15         GtkPaned                        ::handle_size            = 6
16         GtkRange                        ::slider_width           = 15
17         GtkRange                        ::stepper_size           = 15
18         GtkScrollbar    ::min_slider_length = 30
19         GtkCheckButton  ::indicator_size         = 12
20         GtkMenuBar              ::internal-padding       = 0
21         GtkTreeView             ::expander_size  = 14
22         GtkExpander             ::expander_size  = 16
24         xthickness = 1
25         ythickness = 1
27         fg[NORMAL]                      = "#000000" # black
28         fg[PRELIGHT]            = "#000000" # black
29         fg[SELECTED]            = "#ffffff" # white 
30         fg[ACTIVE]                      = "#000000" # black
31         fg[INSENSITIVE] = {0.6, 0.6, 0.6} # dark gray
33         bg[NORMAL]                      = {0.95, 0.95, 0.95} # very light gray
34         bg[PRELIGHT]            = "#ffffff" # white
35         bg[SELECTED]            = OSX_MENU_COLOR_PLACEHOLDER    # menu color
36         bg[INSENSITIVE] = {0.9, 0.9, 0.9} # light gray
37         bg[ACTIVE]                      = {0.85, 0.85, 0.85} # gray
39         base[NORMAL]            = "#ffffff" # white 
40         base[PRELIGHT]          = OSX_MENU_COLOR_PLACEHOLDER # menu color
41         base[ACTIVE]            = {0.6, 0.6, 0.6} # dark gray
42         base[SELECTED]          = OSX_HILI_COLOR_PLACEHOLDER # highlight color
43         base[INSENSITIVE] = {0.9, 0.9, 0.9} # light gray
45         text[NORMAL]            = "#000000" # black
46         text[PRELIGHT]          = "#000000" # black
47         text[ACTIVE]            = "#ffffff" # white
48         text[SELECTED]          = "#ffffff" # white
49         text[INSENSITIVE]       = {0.6, 0.6, 0.6} # dark gray
51         engine "clearlooks" 
52         {
53         menubarstyle            = 1             # 0 = flat, 1 = sunken, 2 = flat gradient
54         menuitemstyle           = 0             # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
55         listviewitemstyle       = 0             # 0 = flat, 1 = 3d-ish (gradient)
56         progressbarstyle        = 0             # 0 = candy bar, 1 = flat
57         }
58 }
59         
61 style "clearlooks-wide" = "clearlooks-default"
62 {
63         xthickness = 2
64         ythickness = 2
65 }
67 style "clearlooks-button" = "clearlooks-default"
68 {
69         xthickness = 3
70         ythickness = 3
72         bg[NORMAL] = "#f0f1f2" # a hint of blue...
73 }
75 style "clearlooks-notebook" = "clearlooks-wide"
76 {
77         bg[NORMAL] = {0.93, 0.93, 0.93}
78         bg[INSENSITIVE] = {0.93, 0.93, 0.93}
79 }
81 style "clearlooks-tasklist" = "clearlooks-default"
82 {
83         xthickness = 5
84         ythickness = 3
85 }
87 style "clearlooks-menu" = "clearlooks-default"
88 {
89         xthickness = 2
90         ythickness = 1
91         bg[NORMAL] = "#ffffff"
92 }
94 style "clearlooks-menu-item" = "clearlooks-default"
95 {
96         xthickness = 2
97         ythickness = 3
98         fg[PRELIGHT] = "#ffffff"
99         text[PRELIGHT] = "#ffffff"
100         # We want PRELIGHT to be white for widgets, but coloured for the menu.
101         bg[PRELIGHT]            = OSX_MENU_COLOR_PLACEHOLDER
105 style "clearlooks-menu-itembar" = "clearlooks-default"
107         xthickness = 3
108         ythickness = 3
111 style "clearlooks-tree" = "clearlooks-default"
113         xthickness = 2
114         ythickness = 2
117 style "clearlooks-frame-title" = "clearlooks-default"
119         fg[NORMAL] = "#404040"
122 style "clearlooks-tooltips" = "clearlooks-default"
124         xthickness = 4
125         ythickness = 4
126         bg[NORMAL] = { 1.0,1.0,0.75 }
129 style "clearlooks-progressbar" = "clearlooks-default"
131         xthickness = 1
132         ythickness = 1
134         fg[PRELIGHT]    = "#ffffff"
137 style "clearlooks-combo" = "clearlooks-default"
139         xthickness = 2
140         ythickness = 3
143 # Added pixmaps for scollbars
144 style "scrollbar" = "default"
146         # The values I set here have to do with the relative size of three graphic elements
147         # I have used: the slider, the arrow box, and the trough. They all have the same width
148         # of 15 pixels, but gtk wants to put in some spacing between them. It seems like it
149         # places the sliders inside the trough with a default 1 pixel border on either side of the slider,
150         # so that the trough has its width stretched by an additional two pixels(?). Setting the
151         # trough border makes the arrow box sit on top of the trough squarely, by making sure that
152         # the trough stays the same width as the arrowbox(?). I could be totally wrong here.
153         GtkRange::trough_border = 0
154         GtkRange::slider_width = 15
156         # This sets the size of the steppers (arrow buttons on the end of the scrollbar). 
157         # The image I am using is 15x15 pixels, and if I dont set this a one pixel line 
158         # gets cut off of the top of the "up" stepper.
159         GtkRange::stepper_size = 15
161         # Set a minimum length for the slider. Since I set the border on the slider 
162         # image to 15 pixels on either end of the slider I want the min length to be 
163         # at least 30 pixels to avoid an ugly slider when gtk wants to make it smaller 
164         # than 30 pixels.
165         GtkScrollbar::min_slider_length = 30
167         engine "pixmap" 
168         {
169                 # Horizontal slider background
170                 image 
171                 {
172                         function                = BOX
173                         recolorable             = TRUE
174                         detail                  = "trough"
175                         file                    = "Scrollbars/trough-scrollbar-horiz.png"
176                         border                  = { 30, 30, 0, 0 }
177                         stretch                 = TRUE
178                         orientation             = HORIZONTAL
179                 }
180                 
181                 # Vertical slider background
182                 image 
183                 {
184                         function                = BOX
185                         recolorable             = TRUE
186                         detail                  = "trough"
187                         file                    = "Scrollbars/trough-scrollbar-vert.png"
188                         border                  = { 0, 0, 30, 30 }
189                         stretch                 = TRUE
190                         orientation             = VERTICAL
191                 }
193                 # Normal horizontal slider
194                 image 
195                 {
196                         function                = SLIDER
197                         recolorable             = TRUE
198                         state                   = NORMAL
199                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz.png"
200                         border                  = { 15, 15, 6, 6 }
201                         stretch                 = TRUE
202                         orientation             = HORIZONTAL
203                 }
204                 
205                 # Horizontal slider (active)
206                 image 
207                 {
208                         function                = SLIDER
209                         recolorable             = TRUE
210                         state                   = ACTIVE
211                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz-prelight.png"
212                         border                  = { 15, 15, 6, 6 }
213                         stretch                 = TRUE
214                         orientation             = HORIZONTAL
215                 }
217                 # Horizontal slider (mouse over)
218                 image 
219                 {
220                         function                = SLIDER 
221                         recolorable             = TRUE
222                         state                   = PRELIGHT
223                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz-prelight.png"
224                         border                  = { 15, 15, 6, 6 }
225                         stretch                 = TRUE
226                         orientation             = HORIZONTAL
227                 }
228                 
229                 # Horizontal slider (Insesitive)
230                 image 
231                 {
232                         function                = SLIDER 
233                         recolorable             = TRUE
234                         state                   = INSENSITIVE
235                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz.png"
236                         border                  = { 15, 15, 6, 6 }
237                         stretch                 = TRUE
238                         orientation             = HORIZONTAL
239                 }
241                 # Normal vertical slider
242                 image 
243                 {
244                         function                = SLIDER
245                         recolorable             = TRUE
246                         state                   = NORMAL
247                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert.png"
248                         border                  = { 6, 6, 15, 15 }
249                         stretch                 = TRUE
250                         orientation             = VERTICAL
251                 }
252                 
253                 # Vertical slider (Active)
254                 image 
255                 {
256                         function                = SLIDER
257                         recolorable             = TRUE
258                         state                   = ACTIVE
259                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert.png"
260                         border                  = { 6, 6, 15, 15 }
261                         stretch                 = TRUE
262                         orientation             = VERTICAL
263                 }
265                 # Vertical slider (mouse over)
266                 image 
267                 {
268                         function                = SLIDER 
269                         recolorable             = TRUE
270                         state                   = PRELIGHT
271                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert-prelight.png"
272                         border                  = { 6, 6, 15, 15 }
273                         stretch                 = TRUE
274                         orientation             = VERTICAL
275                 }
276                 
277                 # Vertical slider (Insesitive)
278                 image 
279                 {
280                         function                = SLIDER 
281                         recolorable             = TRUE
282                         state                   = INSENSITIVE
283                         file                    = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert-prelight.png"
284                         border                  = { 6, 6, 15, 15 }
285                         stretch                 = TRUE
286                         orientation             = VERTICAL
287                 }
289 ################################################################################
290 # SCROLLBAR STEPPERS
291 ################################################################################
293         # Up
294         image 
295         {
296                 function                        = STEPPER
297                 recolorable             = TRUE
298                 state                           = NORMAL
299                 file                            = "Scrollbars/stepper-up.png"
300                 #border                 = { 12, 2, 2, 9 }
301                 stretch                 = TRUE
302                 arrow_direction = UP
303         }
304         image 
305         {
306                 function                        = STEPPER
307                 recolorable             = TRUE
308                 state                           = PRELIGHT
309                 file                            = "Scrollbars/stepper-up.png"
310                 #border                 = { 12, 2, 2, 9 }
311                 stretch                 = TRUE
312                 arrow_direction = UP
313         }
314  image 
315         {
316                 function                        = STEPPER
317                 recolorable             = TRUE
318                 state                           = ACTIVE
319                 file                            = "Scrollbars/stepper-up.png"
320                 #border                 = { 12, 2, 2, 9 }
321                 stretch                 = TRUE
322                 arrow_direction = UP
323         }
324  image 
325         {
326                 function                        = STEPPER
327                 recolorable             = TRUE
328                 state                           = INSENSITIVE
329                 file                            = "Scrollbars/stepper-up.png"
330                 #border                 = { 12, 2, 2, 9 }
331                 stretch                 = TRUE
332                 arrow_direction = UP
333         }
335  ######### DOWN ############
338         image 
339         {
340                 function                        = STEPPER
341                 recolorable             = TRUE
342                 state                           = NORMAL
343                 file                            = "Scrollbars/stepper-down.png"
344                 #border                 = { 12, 2, 10, 2 }
345                 stretch                 = TRUE
346                 arrow_direction = DOWN
347         }
348  image 
349         {
350                 function                        = STEPPER
351                 recolorable             = TRUE
352                 state                           = PRELIGHT
353                 file                            = "Scrollbars/stepper-down.png"
354                 #border                 = { 12, 2, 10, 2 }
355                 stretch                 = TRUE
356                 arrow_direction = DOWN
357         }
358  image 
359         {
360                 function                        = STEPPER
361                 recolorable             = TRUE
362                 state                           = ACTIVE
363                 file                            = "Scrollbars/stepper-down.png"
364                 #border                 = { 12, 2, 10, 2 }
365                 stretch                 = TRUE
366                 arrow_direction = DOWN
367         }
368  image 
369         {
370                 function                        = STEPPER
371                 recolorable             = TRUE
372                 state                           = INSENSITIVE
373                 file                            = "Scrollbars/stepper-down.png"
374                 #border                 = { 12, 2, 10, 2 }
375                 stretch                 = TRUE
376                 arrow_direction = DOWN
377         }
379 ############ RIGHT ################
381         image 
382         {
383                 function                        = STEPPER
384                 recolorable             = TRUE
385                 state                           = NORMAL
386                 file                            = "Scrollbars/stepper-right.png"
387                 #border                 = { 2, 9, 2, 13 }
388                 stretch                 = TRUE
389                 arrow_direction = RIGHT
390         }
391  image 
392         {
393                 function                        = STEPPER
394                 recolorable             = TRUE
395                 state                           = PRELIGHT
396                 file                            = "Scrollbars/stepper-right.png"
397                 #border                 = { 2, 9, 2, 13 }
398                 stretch                 = TRUE
399                 arrow_direction = RIGHT
400         }
401  image 
402         {
403                 function                        = STEPPER
404                 recolorable             = TRUE
405                 state                           = ACTIVE
406                 file                            = "Scrollbars/stepper-right.png"
407                 #border                 = { 2, 9, 2, 13 }
408                 stretch                 = TRUE
409                 arrow_direction = RIGHT
410         }
411  image 
412         {
413                 function                        = STEPPER
414                 recolorable             = TRUE
415                 state                           = INSENSITIVE
416                 file                            = "Scrollbars/stepper-right.png"
417                 #border                 = { 2, 9, 2, 13 }
418                 stretch                 = TRUE
419                 arrow_direction = RIGHT
420         }
422 ############### LEFT ###################
425         image 
426         {
427                 function                        = STEPPER
428                 recolorable             = TRUE
429                 state                           = NORMAL
430                 file                            = "Scrollbars/stepper-left.png"
431                 #border                 = { 2, 9, 2, 13 }
432                 stretch                 = TRUE
433                 arrow_direction = LEFT
434         }
435         image 
436         {
437                 function                        = STEPPER
438                 recolorable             = TRUE
439                 state                           = PRELIGHT
440                 file                            = "Scrollbars/stepper-left.png"
441                 #border                 = { 2, 9, 2, 13 }
442                 stretch                 = TRUE
443                 arrow_direction = LEFT
444         }
445         image 
446         {
447                 function                        = STEPPER
448                 recolorable             = TRUE
449                 state                           = ACTIVE
450                 file                            = "Scrollbars/stepper-left.png"
451                 #border                 = { 2, 9, 2, 13 }
452                 stretch                 = TRUE
453                 arrow_direction = LEFT
454         }
455         image 
456         {
457                 function                        = STEPPER
458                 recolorable             = TRUE
459                 state                           = INSENSITIVE
460                 file                            = "Scrollbars/stepper-left.png"
461                 #border                 = { 2, 9, 2, 13 }
462                 stretch                 = TRUE
463                 arrow_direction = LEFT
464         }
465         }
468 # widget styles
469 class "GtkWidget" style "clearlooks-default"
470 class "GtkButton" style "clearlooks-button"
471 class "GtkCombo"        style "clearlooks-button"
472 class "GtkRange"        style "clearlooks-wide"
473 class "GtkFrame"        style "clearlooks-wide"
474 class "GtkMenu"         style "clearlooks-menu"
475 class "GtkEntry"        style "clearlooks-button"
476 class "GtkMenuItem"              style "clearlooks-menu-item"
477 class "GtkStatusbar"     style "clearlooks-wide"
478 class "GtkNotebook"              style "clearlooks-notebook"
479 class "GtkProgressBar" style "clearlooks-progressbar"
480 class "GtkScrollbar"     style "scrollbar"
482 widget_class "*MenuItem.*" style "clearlooks-menu-item"
484 # combobox stuff
485 widget_class "*.GtkComboBox.GtkButton" style "clearlooks-combo"
486 widget_class "*.GtkCombo.GtkButton"              style "clearlooks-combo"
488 # tooltips stuff
489 widget_class "*.tooltips.*.GtkToggleButton" style "clearlooks-tasklist"
490 widget "gtk-tooltips" style "clearlooks-tooltips"
492 # treeview stuff
493 widget_class "*.GtkTreeView.GtkButton" style "clearlooks-tree"
494 widget_class "*.GtkCTree.GtkButton" style "clearlooks-tree"
495 widget_class "*.GtkList.GtkButton" style "clearlooks-tree"
496 widget_class "*.GtkCList.GtkButton" style "clearlooks-tree"
497 widget_class "*.GtkFrame.GtkLabel" style "clearlooks-frame-title"
499 # notebook stuff
500 widget_class "*.GtkNotebook.*.GtkEventBox" style "clearlooks-notebook"
501 widget_class "*.GtkNotebook.*.GtkViewport" style "clearlooks-notebook"
503 # Not specifying the font size chooses 10
504 # OS X uses 11 but due to differences in font smoothing, 10 actually integrates better
505 gtk-font-name="Lucida Grande"
507 # icon sizes: 48, 32, 24 (tango=22), 16
509 # gtk-dialog            main icon in a dialog box: e.g. alert when file is not saved
510 # gtk-dnd                       icon showed while dragging and dropping (not used on OS X)
511 # gtk-button            buttons: OK/Cancel dialogs, usually 22 but 16 is more OS X-ish
512 # gtk-large-toolbar     large toolbar: toolbox
513 # gtk-small-toolbar     small toolbar: command bar, tools control, snap control
514 # gtk-menu                      menus in applications: File, Edit
515 # panel-menu            general Application/Places menu (not used on OS X)
517 # insckape-decoration   layers lock, "affect" icons, etc.
519 gtk-icon-sizes = "gtk-dialog=48,48:gtk-button=16,16:gtk-large-toolbar=22,22:gtk-small-toolbar=16,16:gtk-menu=16,16:inkscape-decoration=16,16"
521 # use OS X default pdf-viewer for print preview
522 gtk-print-preview-command="/usr/bin/open %f"