Repository navigation
Pass required bar properties at Loader creation so cloned bars render - #8146
chessing234 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes cloned bars failing to render by supplying required QML properties during Loader construction.
Changes:
- Adds shared initial-property and bar-loading helpers.
- Routes built-in and plugin bars through
Loader.setSource. - Adds regression assertions for both loader paths.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
shell/shell.qml |
Injects required properties when constructing bars. |
test/shell.d/bar-test.sh |
Adds shared-loader assertions. |
test/shell.d/plugin-clone-test.sh |
Checks cloned bars use construction-time injection. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| const helper = shellSource.match(/function barInitialProperties\(manifest\) \{[\s\S]*?\n \}/) | ||
| assert(helper, 'shell has a shared barInitialProperties helper') |
There was a problem hiding this comment.
the suite here is source-level — it pins that cloned bars go through setSource with the required props at construction. no compositor harness in these tests, so that's the coverage this pr has.
… own plugin - charlie.bar: clone of omarchy.bar with a configurable floatGap (margin from anchored screen edges) and cornerRadius (drawn via a transparent PanelWindow + rounded background Rectangle). Requires dropping `required` on Bar.qml's omarchyPath/barWidgetRegistry/barConfig -- workaround for omacom/omarchy#8007, obsolete once omacom/omarchy#8146 ships. - Retired the local charlie.workspaces clone: its behavior now lives in the published, generalized https://github.com/Charlieras262/omarchy-pill-workspaces plugin instead, installed via `omarchy plugin add`. - install.sh and README updated to match.
|
@dhh @ryanrhughes ready for review |
|
folded into #12115 with the other bar panel fixes. |
Cloning
omarchy.barproduced a bar that never mapped a layer surface.pluginBarLoadersetsource:and only assignedomarchyPath,barWidgetRegistry, andbarConfigafterward. Those are QMLrequired propertyfields, so they have to be present at construction.Both the built-in bar and plugin bars now go through one
loadBarhelper that callsLoader.setSourcewithbarInitialProperties.requiredonBar.qmlis unchanged.bar-test.shasserts the shared helper. No live Quickshell on this machine.Fixes #8007