aboutsummaryrefslogtreecommitdiff
path: root/themes/Mint-X-Pink/gtk-2.0/gtkrc
blob: ca91851d6f0457695eabaa3852bd9b717d415d9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
# These are the defined colors for the theme, you can change them in GNOME's appearance preferences.

gtk_color_scheme = "bg_color:#d6d6d6\nselected_bg_color:#c76199\nbase_color:#F7F7F7" # Background, base.
gtk_color_scheme = "fg_color:#212121\nselected_fg_color:#f5f5f5\ntext_color:#212121" # Foreground, text.
gtk_color_scheme = "tooltip_bg_color:#fbeaa0\ntooltip_fg_color:#212121" # Tooltips.
gtk_color_scheme = "link_color:#08c" # Hyperlinks

## Misc ##

#gtk-icon-sizes = "gtk-button=16,16" # This makes button icons smaller.
#gtk-button-images = 0 # Enables icons in buttons
gtk-auto-mnemonics = 1 # Disables ugly lines under menu items

## Default Style ##

style "default" {
    GtkButton::child-displacement-x = 0
    GtkButton::child-displacement-y	= 0
    GtkButton::default-border = { 1, 1, 1, 1 }
    GtkButtonBox::child-min-height = 26
    
    GtkCheckButton::indicator-size = 16
    
    # The following line hints to gecko (and possibly other appliations)
    # that the entry should be drawn transparently on the canvas.
    # Without this, gecko will fill in the background of the entry.
    #GtkEntry::honors-transparent-bg-hint = 1
    GtkEntry::state-hint = 0
    #GtkEntry::progress-border = { 2, 2, 2, 2 }
    
    GtkExpander::expander-size = 11
    
    GnomeHRef::link_color = @link_color		
    GtkHTML	::link-color = @link_color
    GtkIMHtmlr::hyperlink-color	= @link_color
    GtkIMHtml::hyperlink-color = @link_color
    GtkWidget::link-color = @link_color
    GtkWidget::visited-link-color = @link_color
    
    GtkImage::x-ayatana-indicator-dynamic = 1
    
    GtkMenu::horizontal-padding	= 0
    GtkMenu::vertical-padding = 1
    GtkMenuBar::internal-padding = 0
    GtkMenuBar::window-dragging = 1
    GtkMenuItem::horizontal-padding	= 0
    
    GtkNotebook::tab-overlap = 0
    
    GtkPaned::handle-size = 6
    
    GtkProgressBar::min-horizontal-bar-height = 16
    GtkProgressBar::min-vertical-bar-width = 16
    
    GtkRange::trough-border = 0
    GtkRange::slider-width = 11
    GtkRange::stepper-size = 0
    GtkRange::stepper_spacing = 0
    GtkRange::trough-under-steppers	= 0
    
    GtkScale::slider-length	= 16
    GtkScale::slider-width = 16
    GtkScale::trough-side-details = 1
    
    GtkScrollbar::has-backward-stepper = 0  
    GtkScrollbar::has-forward-stepper = 0
    GtkScrollbar::min-slider-length	= 30
    GtkScrollbar::slider-width = 14
    GtkScrollbar::trough-border	= 0
    GtkScrollbar::activate-slider = 1
    
    GtkScrolledWindow::scrollbar-spacing = 0
    GtkScrolledWindow::scrollbars-within-bevel = 1
    
    GtkStatusbar::shadow_type = GTK_SHADOW_NONE
    
    GtkToolbar::internal-padding = 1
    GtkToolbar::window-dragging	= 1
    
    GtkTreeView::allow-rules = 1
    GtkTreeView::expander-size = 11
    GtkTreeView::horizontal-separator = 2
    GtkTreeView::row-ending-details = 0
    GtkTreeView::vertical-separator	= 2
    
    GtkWidget::new-tooltip-style = 1
    #GtkWidget::tooltip-alpha = 235
    #GtkWidget::tooltip-radius = 3
    GtkWidget::focus-line-width	= 1
    GtkWidget::focus-padding = 0 # Keeping this at 0 prevents the Firefox tabs from jumping a few pixels when you create a new tab. Set the value locally if needed.
    
    GtkWindow::resize-grip-height = 0
    GtkWindow::resize-grip-width = 0
    
    WnckTasklist::fade-overlay-rect	= 0
    
    xthickness = 1
    ythickness = 1
    
    ## Color Definitions ##
    
    fg[NORMAL] = @fg_color
    fg[PRELIGHT] = @fg_color
    fg[SELECTED] = @selected_fg_color
    fg[ACTIVE] = @fg_color
    fg[INSENSITIVE] = darker (@bg_color)
    
    bg[NORMAL] = @bg_color
    bg[PRELIGHT] = @bg_color
    bg[SELECTED] = @selected_bg_color
    bg[INSENSITIVE] = @bg_color
    bg[ACTIVE] = shade (1.04, @bg_color)
    
    base[NORMAL] = @base_color
    base[PRELIGHT] = shade (0.95, @bg_color)
    base[ACTIVE] = shade (0.92, @selected_bg_color)
    base[SELECTED] = shade (0.93, @selected_bg_color)
    base[INSENSITIVE] = @bg_color
    
    text[NORMAL] = @text_color
    text[PRELIGHT] = @text_color
    text[ACTIVE] = @selected_fg_color
    text[SELECTED] = @selected_fg_color
    text[INSENSITIVE] = darker (@bg_color)
    
    engine "pixmap" 
    {
        # Arrows
        
        image 
        {
            function = ARROW
            state = NORMAL
            overlay_file = "images/arrows/small-arrow-up.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image 
        {
            function = ARROW
            state = PRELIGHT
            overlay_file = "images/arrows/small-arrow-up.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image 
        {
            function = ARROW
            state = ACTIVE
            overlay_file = "images/arrows/small-arrow-up.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image 
        {
            function = ARROW
            state = INSENSITIVE
            overlay_file = "images/arrows/small-arrow-up-insensitive.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image 
        {
            function = ARROW
            state = NORMAL
            overlay_file = "images/arrows/small-arrow-down.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image 
        {
            function = ARROW
            state = PRELIGHT
            overlay_file = "images/arrows/small-arrow-down.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image 
        {
            function = ARROW
            state = ACTIVE
            overlay_file = "images/arrows/small-arrow-down.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image 
        {
            function = ARROW
            state = INSENSITIVE
            overlay_file = "images/arrows/small-arrow-down-insensitive.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image 
        {
            function = ARROW
            state = NORMAL
            overlay_file = "images/arrows/arrow-left.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image 
        {
            function = ARROW
            state = PRELIGHT
            overlay_file = "images/arrows/arrow-left.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image 
        {
            function = ARROW
            state = ACTIVE
            overlay_file = "images/arrows/arrow-left.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image 
        {
            function = ARROW
            state = INSENSITIVE
            overlay_file = "images/arrows/arrow-left-insensitive.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image 
        {
            function = ARROW
            state = NORMAL
            overlay_file = "images/arrows/arrow-right.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image 
        {
            function = ARROW
            state = PRELIGHT
            overlay_file = "images/arrows/arrow-right.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image 
        {
            function = ARROW
            state = ACTIVE
            overlay_file = "images/arrows/arrow-right.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image 
        {
            function = ARROW
            state = INSENSITIVE
            overlay_file = "images/arrows/arrow-right-insensitive.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image 
        {
            function = TAB
            state = INSENSITIVE
            overlay_file = "images/arrows/small-arrow-down-insensitive.svg"
            overlay_stretch = FALSE
        }
        image 
        {
            function = TAB
            state = NORMAL
            overlay_file = "images/arrows/small-arrow-down.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
        }
        image 
        {
            function = TAB
            state = PRELIGHT
            overlay_file = "images/arrows/small-arrow-down.svg"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
        }
        
        # Expanders
        
        image 
        {
            function = EXPANDER
            expander_style = COLLAPSED
            file = "images/expanders/closed.svg"
        }
        image 
        {
            function = EXPANDER
            expander_style = EXPANDED
            file = "images/expanders/open.svg"
        }
        image 
        {
            function = EXPANDER
            expander_style = SEMI_EXPANDED
            file = "images/expanders/open.svg"
        }
        image 
        {
            function = EXPANDER
            expander_style = SEMI_COLLAPSED
            file = "images/expanders/closed.svg"
        }
        
        # Lines
        
        image
        {
            function = VLINE
            file = "images/other/null.png"
            border = {0, 0, 0, 0}
            stretch = TRUE
        }
        image
        {
            function = HLINE
            file = "images/other/null.png"
            border = {0, 0, 0, 0}
            stretch = TRUE
        }
        
        # Handles
        
        image
        {
            function = HANDLE
            overlay_file = "images/handles/pane-separator-grip.svg"
            overlay_stretch = FALSE
            orientation = HORIZONTAL
        }
        image
        {
            function = HANDLE
            overlay_file = "images/handles/pane-separator-grip-vertical.svg"
            overlay_stretch = FALSE
            orientation = VERTICAL
        }
        
        # Shadows
        
        image
        {
            function = SHADOW_GAP
            file = "images/other/null.png"
            border = {4, 4, 4, 4}
            stretch = TRUE
        }
        image
        {
            function = SHADOW
            shadow = IN
            recolorable = FALSE
            file = "images/frames/frame.svg"
            border = {1, 1, 1, 1}
            stretch = TRUE
        }
        
        image
        {
            function = SHADOW
            shadow = OUT
            recolorable = TRUE
            file = "images/other/null.png"
            border = {4, 4, 4, 4}
            stretch = TRUE
        }
        image
        {
            function = SHADOW
            shadow = ETCHED_IN
            recolorable = TRUE
            file = "images/frames/frame.svg"
            border = {1, 1, 1, 1}
            stretch = TRUE
        }
        image
        {
            function = SHADOW
            shadow = ETCHED_OUT
            recolorable = TRUE
            file = "images/other/null.png"
            border = {4, 4, 4, 4}
            stretch = TRUE
        }
        
        # Resize Grip
        
        image 
        {
            function = RESIZE_GRIP
            state = NORMAL
            detail = "statusbar"
            overlay_file = "images/other/null.png"
            overlay_border = {0, 0, 0, 0}
            overlay_stretch = FALSE
        }
        
        # Focus Lines
        
        image
        {
            function = FOCUS
            file = "images/other/null.png"
            border = {1, 1, 1, 1}
            stretch = TRUE
        }
    }
}

## Widget Styles ##

style "tooltips"
{
    xthickness = 3
    ythickness = 3
    
    bg[NORMAL] = @tooltip_bg_color
    fg[NORMAL] = @tooltip_fg_color
    bg[SELECTED] = @tooltip_bg_color
    
    engine "murrine" 
    {
        roundness = 4
    }
}

style "xfwm-tabwin"
{
	Xfwm4TabwinWidget::border-width = 1
        Xfwm4TabwinWidget::border-alpha = 0.9
	Xfwm4TabwinWidget::icon-size = 64
	Xfwm4TabwinWidget::listview-icon-size = 16
        Xfwm4TabwinWidget::preview-size = 512
        Xfwm4TabwinWidget::alpha = 0.8
        Xfwm4TabwinWidget::border-radius = 10

	bg[NORMAL]	= shade (0.15, @bg_color)
	bg[ACTIVE]	= shade (0.65, @selected_bg_color)
	bg[PRELIGHT]	= shade (0.85, @selected_bg_color)
	bg[SELECTED]	= shade (0.45, @bg_color)
	
	fg[NORMAL]	= shade (0.8, @base_color)
	fg[ACTIVE]	= @base_color
	fg[PRELIGHT]	= @base_color
	
	engine "murrine" {
		roundness	    = 6
		contrast            = 0.8
		highlight_shade     = 1.00
		lightborder_shade   = 1.0
		gradient_shades     = {1.0,1.2,1.2,1.4}
		border_shades       = { 1.5, 1.5 }
		reliefstyle         = 0
		shadow_shades	    = { 1.3, 1.7 }
		textstyle = 1
		text_shade = 0.25
	}
}

style "xfwm-tabwin-button"
{
	font_name = "bold"
}

style "xfsm-logout"
{
	bg[NORMAL]      = @bg_color
	bg[SELECTED]	= @selected_bg_color # Highlighting selection
	fg[NORMAL]      = @fg_color
	
	engine "murrine" {
		border_shades       = { 1.1, 0.98 }      # gradient to draw on border
		contrast            = 0.8
		focusstyle	    = 3
		glowstyle           = 4                 # 0,1,2,3,4
		gradient_shades     = {1.12,1.10,1.1,1.02}
		highlight_shade     = 1.0
		roundness	    = 3
	}
}

## Import external style files ##

include "styles/bars.rc"
include "styles/buttons.rc"
include "styles/check-radio.rc"
include "styles/entry.rc"
include "styles/frames.rc"
include "styles/handlebox.rc"
include "styles/label-icon.rc"
include "styles/menus.rc"
include "styles/notebook.rc"
include "styles/scrolled-window.rc"
include "styles/separators.rc"
include "styles/sliders.rc"
include "styles/views.rc"

## Apply the styles to the appropriate widgets ##

class "GtkWidget" style "default"
class "GtkScrollbar" style "scrollbar"
class "GtkButton" style "button"
class "GtkEntry" style "entry"
class "GtkOldEditable" style "entry"
class "GtkSpinButton" style "spinbutton"
class "GtkNotebook" style "notebook"
class "GtkRange" style "scale"
class "GtkProgressBar" style "progressbar"
class "GtkScrolledWindow" style "scrolled-window"
class "GtkFrame" style "frame"

widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook-fill"
widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook"
widget_class "*<GtkNotebook>*<GtkViewport>" style "notebook"
widget_class "*<GtkNotebook>*<GtkLabel>" style "notebook"

widget_class "*<GtkStatusbar>*" style "statusbar"

class "GtkTreeView" style "treeview"
class "GtkToolbar" style "toolbar"

widget_class "*<GtkCheckButton>*" style "check"
widget_class "*<GtkRadioButton>*" style "check"

widget_class "*<GtkMenuBar>*" style "menubar"
widget_class "*<GtkMenu>*" style "menu"
widget_class "*<GtkMenuItem>*" style "menu-item"
widget_class "*<GtkSeparatorMenuItem>*" style "menu-item-separator"
widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "menubar-menuitem"

widget_class "*<GtkComboBox>" style "button"

widget_class "*HandleBox" style "handlebox"

widget_class "*GtkIconView" style "iconview"

widget_class "*<GtkTreeView>*<GtkButton>*" style "treeview-header"

widget_class "*<GtkFileChooserDefault>*<GtkToolbar>" style "inline-toolbar"
widget_class "*<GtkFileChooserDefault>*<GtkToolbar>*<GtkButton>" style:highest "tool-button"

widget_class "*<GtkNotebook>*<GtkToolbar>" style "notebook-toolbar"
widget_class "*<GtkNotebook>*<GtkScrolledWindow>*<GtkViewport>"  style "notebook-fill"

widget_class "*<GtkNotebook>*" style "notebook-close"

widget_class "*GtkToolbar*GtkButton" style "tool-button"

widget_class "*<GtkStatusbar>.<GtkFrame>" style:highest "statusbar-frame-fix"

widget_class "*GtkSeparator" style "separator"
widget_class "*GtkHSeparator" style "separator"
widget_class "*GtkVSeparator" style "separator"
widget_class "*GtkSeparatorToolItem" style "toolbar-separator"
widget_class "*<GtkComboBox>*<GtkSeparator>" style "combobox-separator"

widget "gtk-tooltip*" style "tooltips"

widget "xfwm4-tabwin*"			style "xfwm-tabwin"
widget "xfwm4-tabwin*GtkButton*"		style "xfwm-tabwin-button"
widget_class "*XfsmLogoutDialog*"	style "xfsm-logout"

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
style "combobox-text-color-workaround"
{
    text[NORMAL] = @fg_color
    text[PRELIGHT] = @fg_color
    text[SELECTED] = @selected_fg_color
    text[ACTIVE] = @fg_color
    text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>" style "combobox-text-color-workaround"

style "menuitem-text-is-fg-color-workaround"
{
    text[NORMAL] = @fg_color
    text[PRELIGHT] = @selected_fg_color
    text[SELECTED] = @selected_fg_color
    text[ACTIVE] = @fg_color
    text[INSENSITIVE] = darker (@bg_color)
}

widget "*.gtk-combobox-popup-menu.*" style "menuitem-text-is-fg-color-workaround"

# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "fg-is-text-color-workaround"
{
    fg[NORMAL] = @text_color
    fg[PRELIGHT] = @text_color
    fg[ACTIVE] = @selected_fg_color
    fg[SELECTED] = @selected_fg_color
    fg[INSENSITIVE] = darker (@bg_color)
}

widget_class "*<GtkListItem>*" style "fg-is-text-color-workaround"
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"

widget_class "*<GtkImage>*" style "text"
widget_class "*.<GtkLabel>" style:highest "text"
widget_class "*.<GtkMenuItem>.*" style:highest "text"
widget_class "*<GtkMenuBar>*<GtkLabel>*" style:highest "inset-text"
widget_class "*<GtkToolbar>*<GtkButton>*<GtkLabel>*" style:highest "inset-text"
widget_class "*<GtkToolbar>*<GtkLabel>*" style:highest "inset-text"
#widget_class "*<GtkButton>*<GtkLabel>*" style:highest "text"
#widget_class "*<GtkButton>*<GtkImage>*" style:highest "text"

# Application Styles

include "styles/chrome.rc"
include "styles/file-manager.rc"
include "styles/inkscape.rc"
include "styles/mintmenu.rc"
include "styles/panel.rc"
include "styles/synaptic.rc"
include "styles/terminal.rc"
include "styles/text-editor.rc"