mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-24 19:31:51 +01:00
Side panels: titled group headers with a close button (as production's one titled panel)
This commit is contained in:
1 parent
9c354b340a
commit
793c0e7fe9
1 file changed
+1
-1
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user