Skip to content

Gui: Register overlay search path from preference packs#11039

Merged
chennes merged 1 commit intoFreeCAD:mainfrom
kadet1090:fix-overlay-paths-registration
Oct 14, 2023
Merged

Gui: Register overlay search path from preference packs#11039
chennes merged 1 commit intoFreeCAD:mainfrom
kadet1090:fix-overlay-paths-registration

Conversation

@kadet1090
Copy link
Member

@kadet1090 kadet1090 commented Oct 14, 2023

This PR adds "<mod>/overlay" path to search paths of "overlay" prefix. This allows preference packs to register custom overlay stylesheets.

I think that we should think about better ways of doing that kind of stuff. Package metadata could include elements like

<searchpath prefix="qss" path="." />
<searchpath prefix="overlay" path="./overlay" />

which should enable package developers to have better control over the search paths. This should however be done in another request and issue.

Fixes: #11023

This commit adds "<mod>/overlay" path to search paths of "overlay"
prefix. This allows preference packs to register custom overlay
stylesheets.

Fixes: FreeCAD#11023
@github-actions github-actions bot added the Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD label Oct 14, 2023
@obelisk79
Copy link
Contributor

I have tested and confirmed that this works.

@chennes
Copy link
Member

chennes commented Oct 14, 2023

OK, I'll merge this, but I agree that we should reconsider this implementation to allow direct specification of those paths.

@chennes chennes merged commit 147cd7c into FreeCAD:main Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Overlay] Overlay stylesheet should be set by preference pack/theme.

3 participants