summaryrefslogtreecommitdiffstats
path: root/usecases/desktop/graphical/swaync.css
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2024-08-04 17:49:07 +0200
committerMinijackson <minijackson@riseup.net>2024-08-04 17:49:07 +0200
commit782e61ea00fb81092cd05b949d6db885b30506dc (patch)
tree6ff0bf7151e42669de1d842249883a080cd461fd /usecases/desktop/graphical/swaync.css
parent7696351112686b77158a096d569c8272a0f4bb23 (diff)
downloadnixos-config-reborn-782e61ea00fb81092cd05b949d6db885b30506dc.tar.gz
nixos-config-reborn-782e61ea00fb81092cd05b949d6db885b30506dc.zip
usecases/sway: move from mako to swaync for notifications
And adapt waybar for it
Diffstat (limited to 'usecases/desktop/graphical/swaync.css')
-rw-r--r--usecases/desktop/graphical/swaync.css257
1 files changed, 257 insertions, 0 deletions
diff --git a/usecases/desktop/graphical/swaync.css b/usecases/desktop/graphical/swaync.css
new file mode 100644
index 0000000..d3e103a
--- /dev/null
+++ b/usecases/desktop/graphical/swaync.css
@@ -0,0 +1,257 @@
1/* Adapted from: https://pastebin.com/xycT4nrk */
2
3@define-color cc-bg @softBackground@;
4@define-color noti-border-color @cc-bg;
5@define-color noti-bg @background2@;
6@define-color noti-bg-darker @background2@;
7@define-color noti-bg-hover rgb(27, 27, 43);
8@define-color noti-bg-focus rgba(27, 27, 27, 0.6);
9@define-color text-color @foreground@;
10@define-color text-color-disabled @foreground3@;
11@define-color dominant @dominant@;
12@define-color dimDominant @dimDominant@;
13@define-color bg-selected @dominant;
14@define-color border-color @background5@;
15@define-color darker-bg @background1@;
16
17* {
18 font-family: mono;
19 font-weight: bold;
20 font-size: 14px;
21 outline: none;
22 transition: all .1s ease-in-out;
23}
24
25/* Buttons */
26
27.close-button,
28.notification-action,
29.widget-buttons-grid>flowbox>flowboxchild>button,
30.widget-menubar button,
31.widget-title>button {
32 color: @text-color;
33 background-color: @cc-bg;
34 border: 1px solid @darker-bg;
35 border-radius: 5px;
36 box-shadow: none;
37 text-shadow: none;
38}
39
40.close-button:hover,
41.notification-action:hover,
42.widget-buttons-grid>flowbox>flowboxchild>button:hover,
43.widget-menubar button:hover,
44.widget-title>button:hover {
45 background-color: @dominant;
46 box-shadow: none;
47 text-shadow: none;
48}
49
50.control-center .notification-row:focus,
51.control-center .notification-row:hover {
52 opacity: 1;
53 background: @noti-bg-darker
54}
55
56.notification-row {
57 outline: none;
58 margin: 5px;
59 padding: 0;
60}
61
62.notification {
63 background: @noti-bg;
64 margin: 0px;
65 border-radius: 5px;
66 border: 2px solid @border-color;
67 box-shadow: none;
68}
69
70.floating-notifications .notification {
71 border-color: @dominant;
72}
73
74.close-button {
75 border: none;
76 background: @dimDominant;
77 color: @cc-bg;
78 padding: 0;
79 margin: 5px 3px;
80}
81
82.close-button:hover {
83 box-shadow: none;
84 text-shadow: none;
85}
86
87.notification-content {
88 background: @cc-bg;
89 border-radius: 5px 5px 0 0;
90 padding: 7px;
91 margin: 0;
92}
93
94.notification-default-action:last-child .notification-content {
95 border-bottom-left-radius: 5px;
96 border-bottom-right-radius: 5px;
97}
98
99.notification-content .summary {
100 padding: 3px 1em;
101 font-size: 13px;
102 /*color: @text-color;*/
103}
104
105.notification-content .body {
106 padding: 1em;
107 font-size: 12px;
108 font-weight: normal;
109}
110
111.notification-content .time {
112 font-size: 11px;
113 color: @dominant;
114 margin: 3px 3em;
115}
116
117.notification-action {
118 background-color: @noti-bg-darker;
119 border-radius: 0;
120 border: none;
121 border-top: 2px solid @border-color;
122 border-left: 1px solid @border-color;
123 border-right: 1px solid @border-color;
124}
125
126.notification-action:first-child {
127 border-left: none;
128 border-bottom-left-radius: 5px;
129}
130
131.notification-action:last-child {
132 border-right: none;
133 border-bottom-right-radius: 5px;
134}
135
136.notification-default-action:hover,
137.notification-action:hover {
138 background: @dominant;
139 text-shadow: none;
140}
141
142.control-center {
143 background: @cc-bg;
144 border: 2px solid @dominant;
145 border-radius: 0px;
146}
147
148.control-center-list {
149 background: transparent
150}
151
152.control-center-list-placeholder {
153 opacity: .5
154}
155
156.floating-notifications {
157 background: transparent
158}
159
160.blank-window {
161 background: alpha(black, 0.1)
162}
163
164.widget-backlight,
165.widget-buttons-grid,
166.widget-dnd,
167.widget-inhibitors,
168.widget-label,
169.widget-menubar,
170.widget-mpris,
171.widget-notifications,
172.widget-title,
173.widget-volume {
174 color: @text-color;
175 background: @noti-bg-darker;
176 border: 2px solid @border-color;
177 border-radius: 5px;
178 padding: 5px 10px;
179 margin: 10px;
180}
181
182.widget-title {
183 font-size: 1.5rem;
184}
185
186.widget-dnd {
187 font-size: large;
188 color: @text-color;
189}
190
191.widget-dnd>switch {
192 /*border-radius: 4px;*/
193 background: @darker-bg;
194}
195
196.widget-dnd>switch:checked {
197 background: @dominant;
198}
199
200.widget-dnd>switch slider {
201 /*margin: 3px;*/
202 background: @border-color;
203 /*border: 1px solid black;*/
204 /*border-radius: 5px*/
205}
206
207.widget-dnd>switch:checked slider {
208 /*border-radius: 5px;*/
209}
210
211.widget-label>label {
212 font-size: 1rem;
213 color: @text-color;
214}
215
216.widget-mpris > box > button {
217 border-radius: 5px;
218}
219
220.widget-mpris-player {
221 padding: 10px 20px;
222 margin: 22px;
223 box-shadow: none;
224}
225
226.widget-mpris-title {
227 font-weight: 700;
228 font-size: 1.25rem
229}
230
231.widget-mpris-subtitle {
232 font-size: 1.1rem
233}
234
235.widget-buttons-grid button label {
236 font-size: 1.5em;
237}
238
239.widget-buttons-grid>flowbox>flowboxchild>button {
240 margin: 3px;
241}
242
243.widget-menubar>box>.menu-button-bar>button {
244 border: none;
245 background: transparent;
246 box-shadow: none;
247 text-shadow: none;
248}
249
250.topbar-buttons>button {
251 border: none;
252 background: transparent
253}
254
255scale trough highlight {
256 background-color: @dominant;
257}