Compare commits

...

2 commits

3 changed files with 11 additions and 1 deletions

View file

@ -22,7 +22,7 @@
.hash = "thespian-0.0.1-owFOjtseBgA9KTb5dsA3KMcKj6sbXskYs3hxjHs4z3ub",
},
.themes = .{
.url = "https://github.com/neurocyte/flow-themes/releases/download/master-f1074c46d934ec171e44b1c3a1fdfc1ef38e2667/flow-themes.tar.gz",
.url = "https://github.com/neurocyte/flow-themes/releases/download/master-3d26d97bed7e603f3c3846cf5328e3e845df727c/flow-themes.tar.gz",
.hash = "N-V-__8AAK88IwAuRxgh-x0ikK2KRhXCvCg8joy5mLlH0Ffk",
},
.fuzzig = .{

View file

@ -28,6 +28,7 @@
["f9", "theme_prev"],
["f10", "theme_next"],
["f11", "toggle_panel"],
["alt+f11", "toggle_color_scheme"],
["f12", "toggle_inputview"],
["alt+!", "run_task"],
["ctrl+1", "add_task"],

View file

@ -908,6 +908,15 @@ const cmds = struct {
}
pub const toggle_highlight_columns_meta: Meta = .{ .description = "Toggle highlight columns" };
pub fn toggle_color_scheme(self: *Self, _: Ctx) Result {
self.color_scheme = switch (self.color_scheme) {
.dark => .light,
.light => .dark,
};
self.logger.print("color scheme: {s}", .{@tagName(self.color_scheme)});
}
pub const toggle_color_scheme_meta: Meta = .{ .description = "Toggle dark/light color scheme" };
pub fn toggle_input_mode(self: *Self, _: Ctx) Result {
var it = std.mem.splitScalar(u8, self.config_.input_mode, '/');
self.config_.input_mode = it.first();