mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Toolbar: the rail's version no longer keys on the flyout side, which is fixed now
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
907b06639e
commit
36d05ab933
1 file changed
+3
-4
@@ -39,13 +39,12 @@ pub(crate) fn panel(app: &PhotocraftApp, id: &str) -> u64 {
|
||||
}
|
||||
|
||||
/// The version of the Toolbar's rail: the toolbar slots (the preferences revision), the remembered group tools, the
|
||||
/// Edit Toolbar drawer, the side its flyouts open on, Quick Mask and the screen mode. The active tool and the colours
|
||||
/// are in every version.
|
||||
/// Edit Toolbar drawer, Quick Mask and the screen mode. Its flyouts always open on the same side. The active tool and
|
||||
/// the colours are in every version.
|
||||
pub(crate) fn toolbar(app: &PhotocraftApp) -> u64 {
|
||||
let quick_mask = app.session.active().is_some_and(|st| st.doc.quick_mask.is_some());
|
||||
let opens_start = crate::panel_docking::toolbar_opens(app) == craft::behavior::overlay::Side::Start;
|
||||
let screen_mode = format!("{:?}", app.ui.view.screen_mode);
|
||||
version(app, (app.session.prefs.rev(), &app.ui.group_tools, app.ui.toolbar_drawer, opens_start, quick_mask, screen_mode))
|
||||
version(app, (app.session.prefs.rev(), &app.ui.group_tools, app.ui.toolbar_drawer, quick_mask, screen_mode))
|
||||
}
|
||||
|
||||
/// What every region may show, joined with `extra`: the commands run (any of them may change anything), the active
|
||||
|
||||
Reference in new issue
Block a user