Side panels: titled group headers with a close button (as production's one titled panel)

This commit is contained in:
Dylan M. Taylor committed 2026-11-22 13:08:24 -05:00
1 parent 9c354b340a
commit 793c0e7fe9
1 file changed
+1 -1
+1 -1
View File
@@ -528,7 +528,7 @@ pub fn dock(app: &mut PdfCraftApp, ui: &mut Ui) {
};
// The side panels' icons are production's rail: they stay beside the expanded column, a click on one opens its
// panel docked, and a click on the open panel's icon closes it.
let config = DockConfig::default().native_windows(false).iconic_mode(IconicMode::Rail);
let config = DockConfig::default().native_windows(false).iconic_mode(IconicMode::Rail).titled_headers(true).tab_close_buttons(true);
let area = DockArea::new("Dock", Bind::given(workspace), &mut panels, config).hide(HidePanels::Except(&shown)).top_inset(inset);
let output = match anchor {
Some(panel) => area.rail_footer(panel).show(ui),