Debian Codegraph @

pynicotine/gtkgui/css/style_gtk4_darwin.css

raw
1 /* Tweaks (GTK 4+ on macOS) */
2
3 window {
4 /* Remove GTK's window border, since macOS provides one */
5 border: none;
6 border-radius: 0;
7 box-shadow: none;
8 }
9
10 /* macOS-style window controls */
11
12 windowcontrols {
13 border-spacing: 0;
14 margin: 4px;
15 }
16
17 windowcontrols button {
18 background: none;
19 border: none;
20 margin: 0;
21 min-width: 12px;
22 min-height: 12px;
23 padding: 4px;
24 }
25
26 windowcontrols button image {
27 -gtk-icon-size: 10px;
28 border-radius: 50%;
29 color: transparent;
30 margin: 0;
31 padding: 0;
32 }
33
34 windowcontrols button:hover image {
35 color: rgba(0, 0, 0, 0.5);
36 }
37
38 windowcontrols button:active image {
39 filter: brightness(75%);
40 }
41
42 windowcontrols button.close image {
43 border: 1px solid #E0373B;
44 background-color: #FD5858;
45 }
46
47 windowcontrols button.minimize image {
48 border: 1px solid #DF9F16;
49 background-color: #FDBD30;
50 }
51
52 windowcontrols button.maximize image {
53 border: 1px solid #25AD24;
54 background-color: #36CC40;
55 }
56