Skip to content

Pass required bar properties at Loader creation so cloned bars render - #8146

Closed
chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:fix/cloned-bar-required-properties
Closed

chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:fix/cloned-bar-required-properties

Conversation

@chessing234

@chessing234 chessing234 commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Cloning omarchy.bar produced a bar that never mapped a layer surface. pluginBarLoader set source: and only assigned omarchyPath, barWidgetRegistry, and barConfig afterward. Those are QML required property fields, so they have to be present at construction.

Both the built-in bar and plugin bars now go through one loadBar helper that calls Loader.setSource with barInitialProperties. required on Bar.qml is unchanged.

bar-test.sh asserts the shared helper. No live Quickshell on this machine.

Fixes #8007

Copilot AI balanced review requested due to automatic review settings August 25, 2026 03:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread test/shell.d/bar-test.sh
Comment on lines +39 to +40
const helper = shellSource.match(/function barInitialProperties\(manifest\) \{[\s\S]*?\n \}/)
assert(helper, 'shell has a shared barInitialProperties helper')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Charlieras262 pushed a commit to Charlieras262/omarchy-dotfiles that referenced this pull request Aug 27, 2026
… 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.
@chessing234

Copy link
Copy Markdown
Contributor Author

@dhh @ryanrhughes ready for review

chessing234 added a commit to chessing234/omarchy that referenced this pull request Sep 21, 2026
@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #12115 with the other bar panel fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloning a "kind: bar" plugin (omarchy plugin clone omarchy.bar) never renders

2 participants