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
|
.titlebar .right .titlebutton:nth-last-child(3),
.titlebar .right:dir(rtl) .titlebutton:nth-child(3),
.titlebar .left .titlebutton:nth-child(3),
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3),
.titlebar .right .titlebutton:nth-last-child(2),
.titlebar .right:dir(rtl) .titlebutton:nth-child(2),
.titlebar .left .titlebutton:nth-child(2),
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2),
.titlebar .right .titlebutton:last-child,
.titlebar .right:dir(rtl) .titlebutton:first-child,
.titlebar .left .titlebutton:first-child,
.titlebar .left:dir(rtl) .titlebutton:last-child {
color: transparent;
background-position: center;
background-repeat: no-repeat;
background-size: 19px 19px;
}
/* Set correct layout with
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DecorationLayout': <':minimize,maximize,close'>}" for
buttons on the right or
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DecorationLayout': <'close,maximize,minimize:'>}"
for buttons on the left */
/* minimize */
.titlebar .right .titlebutton:nth-last-child(3),
.titlebar .right:dir(rtl) .titlebutton:nth-child(3),
.titlebar .left .titlebutton:nth-child(3),
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3) {
background-image: url('window-controls/minimize_focused_normal.png');
}
.titlebar .right .titlebutton:nth-last-child(3):hover,
.titlebar .right:dir(rtl) .titlebutton:nth-child(3):hover,
.titlebar .left .titlebutton:nth-child(3):hover,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):hover {
background-image: url('window-controls/minimize_focused_prelight.png');
}
.titlebar .right .titlebutton:nth-last-child(3):active,
.titlebar .right:dir(rtl) .titlebutton:nth-child(3):active,
.titlebar .left .titlebutton:nth-child(3):active,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):active {
background-image: url('window-controls/minimize_focused_pressed.png');
}
.titlebar .right .titlebutton:nth-last-child(3):backdrop,
.titlebar .right:dir(rtl) .titlebutton:nth-child(3):backdrop,
.titlebar .left .titlebutton:nth-child(3):backdrop,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):backdrop {
background-image: url('window-controls/minimize_unfocused.png');
}
.titlebar .right .titlebutton:nth-last-child(3):backdrop:hover,
.titlebar .right:dir(rtl) .titlebutton:nth-child(3):backdrop:hover,
.titlebar .left .titlebutton:nth-child(3):backdrop:hover,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):backdrop:hover {
background-image: url('window-controls/minimize_unfocused_prelight.png');
}
/* maximize */
.titlebar .right .titlebutton:nth-last-child(2),
.titlebar .right:dir(rtl) .titlebutton:nth-child(2),
.titlebar .left .titlebutton:nth-child(2),
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2) {
background-image: url('window-controls/maximize_focused_normal.png');
}
.titlebar .right .titlebutton:nth-last-child(2):hover,
.titlebar .right:dir(rtl) .titlebutton:nth-child(2):hover,
.titlebar .left .titlebutton:nth-child(2):hover,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):hover {
background-image: url('window-controls/maximize_focused_prelight.png');
}
.titlebar .right .titlebutton:nth-last-child(2):active,
.titlebar .right:dir(rtl) .titlebutton:nth-child(2):active,
.titlebar .left .titlebutton:nth-child(2):active,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):active {
background-image: url('window-controls/maximize_focused_pressed.png');
}
.titlebar .right .titlebutton:nth-last-child(2):backdrop,
.titlebar .right:dir(rtl) .titlebutton:nth-child(2):backdrop,
.titlebar .left .titlebutton:nth-child(2):backdrop,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):backdrop {
background-image: url('window-controls/maximize_unfocused.png');
}
.titlebar .right .titlebutton:nth-last-child(2):backdrop:hover,
.titlebar .right:dir(rtl) .titlebutton:nth-child(2):backdrop:hover,
.titlebar .left .titlebutton:nth-child(2):backdrop:hover,
.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):backdrop:hover {
background-image: url('window-controls/maximize_unfocused_prelight.png');
}
/* close */
.titlebar .right .titlebutton:last-child,
.titlebar .right:dir(rtl) .titlebutton:first-child,
.titlebar .left .titlebutton:first-child,
.titlebar .left:dir(rtl) .titlebutton:last-child {
background-image: url('window-controls/close_focused_normal.png');
/*padding: 2px 6px 3px 3px;*/ /* FIXME: Uncomment this shit when using the Faenza icon theme and maybe some other icon themes */
}
.titlebar .right .titlebutton:last-child:hover,
.titlebar .right:dir(rtl) .titlebutton:first-child:hover,
.titlebar .left .titlebutton:first-child:hover,
.titlebar .left:dir(rtl) .titlebutton:last-child:hover {
background-image: url('window-controls/close_focused_prelight.png');
}
.titlebar .right .titlebutton:last-child:active,
.titlebar .right:dir(rtl) .titlebutton:first-child:active,
.titlebar .left .titlebutton:first-child:active,
.titlebar .left:dir(rtl) .titlebutton:last-child:active {
background-image: url('window-controls/close_focused_pressed.png');
}
.titlebar .right .titlebutton:last-child:backdrop,
.titlebar .right:dir(rtl) .titlebutton:first-child:backdrop,
.titlebar .left .titlebutton:first-child:backdrop,
.titlebar .left:dir(rtl) .titlebutton:last-child:backdrop {
background-image: url('window-controls/close_unfocused.png');
}
.titlebar .right .titlebutton:last-child:backdrop:hover,
.titlebar .right:dir(rtl) .titlebutton:first-child:backdrop:hover,
.titlebar .left .titlebutton:first-child:backdrop:hover,
.titlebar .left:dir(rtl) .titlebutton:last-child:backdrop:hover {
background-image: url('window-controls/close_unfocused_prelight.png');
}
/* Menu button when fallback kicks in (XFCE, Cinnamon etc.) */
.titlebar .button.menu-button.titlebutton {
background-image: url('window-controls/menu.png');
}
.titlebar .button.menu-button.titlebutton:hover {
background-image: url('window-controls/menu_prelight.png');
}
.titlebar .button.menu-button.titlebutton:active {
background-image: url('window-controls/menu.png');
}
|