Skip to content

Gui: redesign Macros dialog layout for clarity#8

Open
dragonfruit-blue wants to merge 1 commit intoswe-productivity:mainfrom
dragonfruit-blue:issue-2
Open

Gui: redesign Macros dialog layout for clarity#8
dragonfruit-blue wants to merge 1 commit intoswe-productivity:mainfrom
dragonfruit-blue:issue-2

Conversation

@dragonfruit-blue
Copy link
Copy Markdown

@dragonfruit-blue dragonfruit-blue commented Mar 25, 2026

Summary

  • Renames the dialog title from "Execute Macro" to "Macros" to better reflect its full scope (execute, create, edit, rename, duplicate, delete, toolbar setup, download)
  • Removes the confusing "Macro Name" group box wrapper; replaces it with a clean "Selected:" label row below the macro list
  • Moves search fields ("Find file" / "Find in files") to a dedicated top row, no longer buried inside a group box
  • Reorganizes the button column into logical groups separated by visible divider lines:
    • Execute (primary action, at top)
    • Create / Edit / Rename / Duplicate / Delete (file management)
    • Toolbar / Download (secondary actions)
    • Close (bottom)
  • Fixes tab bar label clipping by enforcing a minimum width per tab

No .cpp changes — all widget object names are preserved, so all existing signal/slot connections and logic remain intact.

Test plan

  • Open Macro menu → Macros... and verify dialog title shows "Macros"
  • Verify both "User macros" and "System macros" tab labels are fully visible
  • Verify separator lines are visible between button groups
  • Verify Execute, Edit, Delete, Rename, Duplicate, Toolbar buttons enable/disable correctly on selection
  • Verify double-clicking a macro executes it
  • Verify Create, Rename, Duplicate, Delete operations work correctly
  • Verify Toolbar walkthrough and Download (Addon Manager) buttons work
  • Verify User Macros Location path chooser and Open Folder button work

🤖 Generated with Claude Code

Reorganize the Macros dialog (formerly "Execute Macro") to more
effectively guide users through the available actions:

- Rename window title from "Execute Macro" to "Macros"
- Remove confusing "Macro Name" group box wrapper
- Move search fields (Find file, Find in files) to a clean top row
- Place "Selected:" label inline below the macro list
- Reorder button column: Execute (primary) → Create/Edit/Rename/
  Duplicate/Delete (file management) → Toolbar/Download (secondary)
  → Close (bottom), with visible separator lines between groups
- Fix tab bar clipping by enforcing min-width on each tab

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anomolous-lemur
Copy link
Copy Markdown

Thanks for the PR, @dragonfruit-blue -- could you please include before-and-after images in the PR writeup?

<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
<property name="styleSheet">
<string>QLabel { background-color: #aaaaaa; }</string>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't hardcode colors like this -- it will conflict with dark mode (or light mode, or whatever theme the user has selected).

<number>4</number>
</property>
<property name="styleSheet">
<string>QLabel { background-color: #aaaaaa; }</string>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same.

</widget>
</item>
<item>
<widget class="QLabel" name="line2">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are these the gray bars that are separating the different groups of buttons? Those are not a standard user-interface element in FreeCAD -- instead, just use a small spacer, don't try to color it.

<property name="text">
<string>Download</string>
<string>Close</string>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think a Close button is needed in this dialog. It's already quite cluttered, and it's not actually really clear what "Close" means in this context.

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