tangled
alpha
login
or
join now
rockorager.dev
/
comlink
2
fork
atom
an experimental irc client
2
fork
atom
overview
issues
pulls
pipelines
ui: handle color_scheme updates
rockorager.dev
1 year ago
ac0f11e8
4d450587
verified
This commit was signed with the committer's
known signature
.
rockorager.dev
SSH Key Fingerprint:
SHA256:qn/Fjy7CpbcogGEPB14Y53hLnQleZNFY9lkQnuudFLs=
+13
-2
2 changed files
expand all
collapse all
unified
split
build.zig.zon
src
app.zig
+6
-2
build.zig.zon
···
8
8
.hash = "ziglua-0.1.0-AAAAAMDKBADubTbfjHhHI0_1IS63_IV9KEsNLsy0fLm6",
9
9
},
10
10
.vaxis = .{
11
11
-
.url = "git+https://github.com/rockorager/libvaxis#49fcd338121e6e750c3093807fae3539232066e0",
12
12
-
.hash = "vaxis-0.1.0-BWNV_OHxCAAQonfy3m999V2NDOd5HFEXuDrdQu1J0keS",
11
11
+
.url = "../libvaxis",
12
12
+
.hash = "vaxis-0.1.0-BWNV_BzyCADK2dn8dd4IAD2HjdgAFw34iRiNMX00-14g",
13
13
},
14
14
.zeit = .{
15
15
.url = "git+https://github.com/rockorager/zeit#44bebf856693332b168d8ba2c45b9d1ec15511de",
···
22
22
.zzdoc = .{
23
23
.url = "git+https://github.com/rockorager/zzdoc#57e86eb4e621bc4a96fbe0dd89ad0986db6d0483",
24
24
.hash = "zzdoc-0.0.0-tzT1PuPZAACr1jIJxjTrdOsLbfXS6idWFGfTq0gwxJiv",
25
25
+
},
26
26
+
.comlink = .{
27
27
+
.url = "git+https://github.com/rockorager/comlink#4d450587f041aa9c34d05524473ad1d58afc9b40",
28
28
+
.hash = "comlink-0.0.0-o-Z0cKj0BwAdCT3mDm2838WTxxH8eu5ZI4-vicqTyJFt",
25
29
},
26
30
},
27
31
.paths = .{""},
+7
src/app.zig
···
210
210
// callbacks
211
211
self.ctx = ctx;
212
212
switch (event) {
213
213
+
.color_scheme => {
214
214
+
// On a color scheme event, we request the colors again
215
215
+
try ctx.queryColor(.fg);
216
216
+
try ctx.queryColor(.bg);
217
217
+
try ctx.queryColor(.{ .index = 3 });
218
218
+
},
213
219
.color_report => |color| {
214
220
switch (color.kind) {
215
221
.fg => self.fg = color.value,
···
229
235
}
230
236
}
231
237
}
238
238
+
ctx.redraw = true;
232
239
},
233
240
.key_press => |key| {
234
241
if (self.state.paste.pasting) {