@@ -603,7 +603,6 @@ struct WorkspacePanels {
603603 reader_mode : bool ,
604604 tts_controls : bool ,
605605 workspace_settings : bool ,
606- resources_sidebar : bool ,
607606 terminal : bool ,
608607 dashboard : bool ,
609608 find_panel_open : bool ,
@@ -627,7 +626,6 @@ impl Default for WorkspacePanels {
627626 reader_mode : false ,
628627 tts_controls : false ,
629628 workspace_settings : false ,
630- resources_sidebar : true ,
631629 terminal : false ,
632630 dashboard : true ,
633631 find_panel_open : false ,
@@ -2155,7 +2153,6 @@ impl BrazenApp {
21552153 self . panels = match preset {
21562154 LayoutPreset :: Default => WorkspacePanels {
21572155 sidebar_visible : true ,
2158- resources_sidebar : true ,
21592156 terminal : false ,
21602157 dashboard : true ,
21612158 bookmarks : false ,
@@ -2176,7 +2173,6 @@ impl BrazenApp {
21762173 } ,
21772174 LayoutPreset :: Developer => WorkspacePanels {
21782175 sidebar_visible : true ,
2179- resources_sidebar : true ,
21802176 terminal : true ,
21812177 dashboard : false ,
21822178 dom_inspector : true ,
@@ -2197,7 +2193,6 @@ impl BrazenApp {
21972193 } ,
21982194 LayoutPreset :: Archive => WorkspacePanels {
21992195 sidebar_visible : true ,
2200- resources_sidebar : false ,
22012196 terminal : false ,
22022197 dashboard : false ,
22032198 cache_explorer : true ,
@@ -2273,7 +2268,6 @@ impl BrazenApp {
22732268 } ) ;
22742269 ui. separator ( ) ;
22752270 changed |= ui. checkbox ( & mut self . panels . sidebar_visible , "Show Sidebar" ) . changed ( ) ;
2276- changed |= ui. checkbox ( & mut self . panels . resources_sidebar , "Resources Sidebar" ) . changed ( ) ;
22772271 changed |= ui. checkbox ( & mut self . panels . terminal , "Terminal Panel" ) . changed ( ) ;
22782272 changed |= ui. checkbox ( & mut self . panels . dashboard , "Command Center Dashboard" ) . changed ( ) ;
22792273 }
@@ -3052,6 +3046,17 @@ impl BrazenApp {
30523046 ui. checkbox ( & mut self . panels . sidebar_visible , "Left Sidebar" ) ;
30533047 ui. checkbox ( & mut self . panels . terminal , "Right Sidebar (Terminal)" ) ;
30543048 ui. separator ( ) ;
3049+ ui. menu_button ( "Panels" , |ui| {
3050+ ui. checkbox ( & mut self . panels . bookmarks , "Bookmarks" ) ;
3051+ ui. checkbox ( & mut self . panels . history , "History" ) ;
3052+ ui. checkbox ( & mut self . panels . downloads , "Downloads" ) ;
3053+ ui. separator ( ) ;
3054+ ui. checkbox ( & mut self . panels . dom_inspector , "DOM Inspector" ) ;
3055+ ui. checkbox ( & mut self . panels . network_inspector , "Network Inspector" ) ;
3056+ ui. checkbox ( & mut self . panels . cache_explorer , "Cache Explorer" ) ;
3057+ ui. checkbox ( & mut self . panels . engine_health , "Engine Health" ) ;
3058+ } ) ;
3059+ ui. separator ( ) ;
30553060 if ui. button ( "Reload" ) . clicked ( ) {
30563061 self . apply_palette_command ( PaletteCommand :: Reload ) ;
30573062 ui. close_menu ( ) ;
0 commit comments