apps.rc
Unicode text, UTF-8 text
1
# vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et:
2
3
style "toplevel_hack" {
4
engine "adwaita" {}
5
}
6
7
# TODO: This could really look nicer
8
style "gimp_spin_scale" {
9
10
# Spin background
11
bg[NORMAL] = @base_color
12
13
engine "pixmap" {
14
15
image {
16
function = BOX
17
state = NORMAL
18
detail = "spinbutton_up"
19
overlay_file = "assets/pan-up-alt.png"
20
overlay_stretch = FALSE
21
}
22
23
image {
24
function = BOX
25
state = PRELIGHT
26
detail = "spinbutton_up"
27
overlay_file = "assets/pan-up.png"
28
overlay_stretch = FALSE
29
}
30
31
image {
32
function = BOX
33
state = ACTIVE
34
detail = "spinbutton_up"
35
overlay_file = "assets/pan-up.png"
36
overlay_stretch = FALSE
37
}
38
39
image {
40
function = BOX
41
state = INSENSITIVE
42
detail = "spinbutton_up"
43
overlay_file = "assets/pan-up-alt-insensitive.png"
44
overlay_stretch = FALSE
45
}
46
47
image {
48
function = BOX
49
state = NORMAL
50
detail = "spinbutton_down"
51
overlay_file = "assets/pan-down-alt.png"
52
overlay_stretch = FALSE
53
}
54
55
image {
56
function = BOX
57
state = PRELIGHT
58
detail = "spinbutton_down"
59
overlay_file = "assets/pan-down.png"
60
overlay_stretch = FALSE
61
}
62
63
image {
64
function = BOX
65
state = ACTIVE
66
detail = "spinbutton_down"
67
overlay_file = "assets/pan-down.png"
68
overlay_stretch = FALSE
69
}
70
71
image {
72
function = BOX
73
state = INSENSITIVE
74
detail = "spinbutton_down"
75
overlay_file = "assets/pan-down-alt-insensitive.png"
76
overlay_stretch = FALSE
77
}
78
79
}
80
81
}
82
83
style "chrome-gtk-frame" {
84
85
ChromeGtkFrame::frame-color = @headerbar_color
86
ChromeGtkFrame::inactive-frame-color = @headerbar_color
87
ChromeGtkFrame::incognito-frame-color = @headerbar_color
88
ChromeGtkFrame::incognito-inactive-frame-color = @headerbar_color
89
90
ChromeGtkFrame::frame-gradient-size = 0
91
92
}
93
94
style "chrome_entry" {
95
base[NORMAL] = @base_color
96
base[INSENSITIVE] = @base_color
97
}
98
99
# Disable spin button assets for GimpSpinScale
100
class "GimpSpinScale" style "gimp_spin_scale"
101
102
# Chromium lets us define some colours and settings for better integration
103
class "ChromeGtkFrame" style "chrome-gtk-frame"
104
# Chromium uses base as the fill colour of its own entries
105
# This would be fine but Gtk+ uses it to fill the surrounding space, so its set to bg
106
# That results in Chromium using it for the fill, so we need to handle that
107
widget_class "*Chrom*<GtkEntry>" style "chrome_entry"
108
109
# TODO: find out what does does exactly
110
# This uses the Adwaita engine for something, I'm not sure for what
111
# However disabling it glitches out some separators in Libreoffice
112
class "GtkWindow" style "toplevel_hack"
113