feat: render secondary/unfocused cursors with secondary cursor theme style

This commit is contained in:
CJ van den Berg 2024-12-17 21:22:49 +01:00
parent 32d67a3972
commit e865a89ede
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 38 additions and 35 deletions

View file

@ -585,8 +585,8 @@ pub fn save_config(self: *const Self) !void {
try root.write_config(self.config, self.allocator);
}
pub fn is_mini_or_overlay_enabled(self: *const Self) bool {
return !(self.mini_mode == null or self.input_mode_outer == null);
pub fn is_mainview_focused(self: *const Self) bool {
return self.mini_mode == null and self.input_mode_outer == null;
}
fn enter_overlay_mode(self: *Self, mode: type) command.Result {