@@ -7,6 +7,7 @@ use crate::components::primitive::{
77 menu_item, resize_grips, sidebar_workspace_panel,
88} ;
99use crate :: geometry:: { anchor_position, menu_height_for_items} ;
10+ use crate :: layout:: BUTTON_SIZE_COMPACT ;
1011use crate :: style:: menu_panel_style;
1112use crate :: theme:: ThemeProps ;
1213use crate :: widgets:: chrome:: ChromeEvent ;
@@ -33,13 +34,14 @@ use crate::widgets::terminal_workspace::view::{
3334} ;
3435
3536pub ( crate ) const HEADER_SEPARATOR_HEIGHT : f32 = 1.0 ;
37+ const SIDEBAR_SEPARATOR_WIDTH : f32 = 0.5 ;
3638const SEPARATOR_ALPHA : f32 = 0.3 ;
3739const PANE_GRID_SPACING : f32 = 1.0 ;
3840const PANE_GRID_RESIZE_GRAB : f32 = 8.0 ;
3941
4042// Add menu overlay constants
4143const ADD_MENU_WIDTH : f32 = 220.0 ;
42- const ADD_MENU_ITEM_HEIGHT : f32 = 24.0 ;
44+ const ADD_MENU_ITEM_HEIGHT : f32 = BUTTON_SIZE_COMPACT ;
4345const ADD_MENU_VERTICAL_PADDING : f32 = 16.0 ;
4446const ADD_MENU_MARGIN : f32 = 6.0 ;
4547const ADD_MENU_CONTAINER_PADDING_X : f32 = 8.0 ;
@@ -191,6 +193,16 @@ fn view_sidebar_layout<'a>(
191193 . map ( |event| AppEvent :: Sidebar ( SidebarEvent :: Intent ( event) ) ) ;
192194
193195 let palette = theme_props. theme . iced_palette ( ) ;
196+ let mut sidebar_separator_color = palette. dim_white ;
197+ sidebar_separator_color. a = SEPARATOR_ALPHA ;
198+
199+ let sidebar_separator = container ( Space :: new ( ) )
200+ . width ( Length :: Fixed ( SIDEBAR_SEPARATOR_WIDTH ) )
201+ . height ( Length :: Fill )
202+ . style ( move |_| iced:: widget:: container:: Style {
203+ background : Some ( sidebar_separator_color. into ( ) ) ,
204+ ..Default :: default ( )
205+ } ) ;
194206
195207 let sidebar_pane_grid =
196208 PaneGrid :: new ( app. widgets . sidebar . panes ( ) , move |_pane, pane_kind, _| {
@@ -240,7 +252,7 @@ fn view_sidebar_layout<'a>(
240252 }
241253 } ) ;
242254
243- row ! [ menu_rail, sidebar_pane_grid]
255+ row ! [ menu_rail, sidebar_separator , sidebar_pane_grid]
244256 . width ( Length :: Fill )
245257 . height ( Length :: Fill )
246258 . into ( )
0 commit comments