Skip to content

Feature/hatch patterns - #458

Open
dubstar-04 wants to merge 4 commits into
mainfrom
feature/hatch-patterns
Open

Feature/hatch patterns#458
dubstar-04 wants to merge 4 commits into
mainfrom
feature/hatch-patterns

Conversation

@dubstar-04

Copy link
Copy Markdown
Owner

No description provided.

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

This PR updates the Properties window’s widget behavior so boolean properties bind correctly to GTK4 Gtk.Switch, and it introduces a mechanism to re-evaluate per-property readOnly behavior after edits. It also updates the appstream/metainfo release notes.

Changes:

  • Rebuild the Properties window list after a property change to re-evaluate readOnly logic.
  • Update boolean property UI to use Gtk.Switch.active instead of state.
  • Add new items to the 50.alpha2 release notes (including hatch pattern support).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/Design/Properties/propertiesWindow.js Rebuilds property UI after edits; fixes GTK switch binding; applies readOnly sensitivity.
data/io.github.dubstar_04.design.metainfo.xml Adds additional release-note entries for the upcoming release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 83 to 88
onValueChanged(property, value) {
const selectedType = this.getFilterValue();
DesignCore.PropertyManager.setEntityProperties(property, value, selectedType);
// Rebuild the widget list so readOnly() callbacks are re-evaluated for all properties
this.onTypeChanged();
}
Comment on lines +198 to +199
const propEntity = DesignCore.PropertyManager.getEntityForProperty(selectedType, property);
const isReadOnly = typeof definition?.readOnly === 'function' ? definition.readOnly(propEntity) : !!definition?.readOnly;
Comment on lines +73 to +75
<li>Fix handling of Insert entities with no block defined</li>
<li>Fix Zoom All with invalid scale value</li>
<li>Add support for user-defined hatch patterns</li>
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.

2 participants