feat: add pane_left and pane_right widget types

This commit is contained in:
CJ van den Berg 2025-11-17 18:03:30 +01:00
parent c6e56abcb0
commit 2e150f6c62
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 6 additions and 0 deletions

View file

@ -151,5 +151,7 @@ pub fn theme_style_from_type(style_type: WidgetType, theme: *const Theme) Theme.
.palette => .{ .fg = theme.editor_widget_border.fg, .bg = theme.editor_widget.bg }, .palette => .{ .fg = theme.editor_widget_border.fg, .bg = theme.editor_widget.bg },
.panel => .{ .fg = theme.editor_widget_border.fg, .bg = theme.editor.bg }, .panel => .{ .fg = theme.editor_widget_border.fg, .bg = theme.editor.bg },
.home => .{ .fg = theme.editor_widget_border.fg, .bg = theme.editor.bg }, .home => .{ .fg = theme.editor_widget_border.fg, .bg = theme.editor.bg },
.pane_left => .{ .fg = theme.editor_widget.bg, .bg = theme.panel.bg },
.pane_right => .{ .fg = theme.editor_widget.bg, .bg = theme.panel.bg },
}; };
} }

View file

@ -1983,6 +1983,8 @@ pub fn get_widget_style(widget_type: WidgetType) *const WidgetStyle {
.palette => WidgetStyle.from_tag(config_.palette_style), .palette => WidgetStyle.from_tag(config_.palette_style),
.panel => WidgetStyle.from_tag(config_.panel_style), .panel => WidgetStyle.from_tag(config_.panel_style),
.home => WidgetStyle.from_tag(config_.home_style), .home => WidgetStyle.from_tag(config_.home_style),
.pane_left => WidgetStyle.from_tag(config_.pane_left_style),
.pane_right => WidgetStyle.from_tag(config_.pane_right_style),
}; };
} }
@ -2006,6 +2008,8 @@ fn widget_type_config_variable(widget_type: WidgetType) *ConfigWidgetStyle {
.palette => &config_.palette_style, .palette => &config_.palette_style,
.panel => &config_.panel_style, .panel => &config_.panel_style,
.home => &config_.home_style, .home => &config_.home_style,
.pane_left => &config_.pane_left_style,
.pane_right => &config_.pane_right_style,
}; };
} }