Skip to content

feat: add ribbon property controls and improve command tooltips#224

Merged
mlightcad merged 1 commit intomainfrom
feat/ribbon
Apr 20, 2026
Merged

feat: add ribbon property controls and improve command tooltips#224
mlightcad merged 1 commit intomainfrom
feat/ribbon

Conversation

@mlightcad
Copy link
Copy Markdown
Owner

Summary

This PR enhances the CAD viewer ribbon with editable drawing property controls and improves command discoverability across the UI.

Changes

  • add ribbon property controls for color, linetype, and lineweight in the Home tab
  • introduce reusable ribbon property field wrappers for compact embedded controls
  • add a new linetype selector with inline visual previews built from the active database
  • update the existing color and lineweight selectors to better support ribbon usage, placeholders, icons, and synced display state
  • sync ribbon property values with the active document database and respond to CECOLOR, CELTYPE, and CELWEIGHT changes
  • add descriptive tooltips for ribbon commands and vertical toolbar actions
  • extend i18n strings in both English and Chinese for property labels, selectors, and tooltips
  • update markComponentConfigRaw so ribbon config can safely carry custom components and icons
  • bump related dependencies, including @mlightcad/ribbon, @mlightcad/data-model, and @mlightcad/libredwg-converter

Notes

  • the property controls reflect document state when switching active documents
  • color display now handles ByLayer and ByBlock more clearly in the ribbon
  • linetype options are generated from the current drawing's linetype table

@mlightcad mlightcad self-assigned this Apr 19, 2026
@mlightcad mlightcad added the enhancement New feature or request label Apr 19, 2026
@mlightcad mlightcad merged commit 248841a into main Apr 20, 2026
2 checks passed
@mlightcad mlightcad deleted the feat/ribbon branch April 20, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant