Skip to content

Number of icons per lines in toolbox - #580

Open
sbonaime wants to merge 7 commits into
powertab:masterfrom
sbonaime:icon_size
Open

sbonaime wants to merge 7 commits into
powertab:masterfrom
sbonaime:icon_size

Conversation

@sbonaime

Copy link
Copy Markdown
Contributor

Description of Change(s)

  • Slider from 4 to 8 in preferences (default 8)
  • Dynamically resize toolbox buttons and reorganize the grid according to the selected column count.
  • Add inner padding to tool button icons to prevent glyph clipping at button boundaries.
  • Initialize toolbox 25% of the main window width at startup.

Fixes Issue(s)

#491

…, default 8).

- Dynamically resize toolbox buttons and reorganize the grid according to the selected column count.
- Add inner padding to tool button icons to prevent glyph clipping at button boundaries.
- Initialize toolbox  25% of the main window width at startup.
Copilot AI balanced review requested due to automatic review settings October 13, 2026 06:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The startup resize overrides the toolbox width restored from the user’s saved window state.

1 open finding
What changed in this PR

Adds configurable toolbox icon sizing by varying icons per row and resizing the dock layout dynamically.

Changes:

  • Adds a persisted 4–8 icons-per-row preference.
  • Reflows and resizes toolbox buttons with scrolling support.
  • Sets an initial toolbox width based on the main window.
File Description
source/​widgets/​toolbox/​toolbox.ui Removes the fixed minimum size.
source/​widgets/​toolbox/​toolbox.h Adds resizing and grid configuration APIs.
source/​widgets/​toolbox/​toolbox.cpp Implements dynamic layout, sizing, and scrolling.
source/​dialogs/​preferencesdialog.ui Adds the column-count slider.
source/​dialogs/​preferencesdialog.cpp Loads and saves the preference.
source/​app/​settings.h Declares the new setting.
source/​app/​settings.cpp Defines its default value.
source/​app/​powertabeditor.h Tracks toolbox-width initialization.
source/​app/​powertabeditor.cpp Applies settings and initializes dock width.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread source/app/powertabeditor.cpp Outdated
@sbonaime

Copy link
Copy Markdown
Contributor Author

not yet finished...

@sbonaime

Copy link
Copy Markdown
Contributor Author

It should be good now

@cameronwhite

Copy link
Copy Markdown
Member

I'm not sure if I like the dynamic scaling, since it gets really large / small (e.g. if you have a really big monitor, the default sizing can make the icons huge).
Maybe having something like a small / medium / large icon size setting in the preferences might work?

…erence

- Updated the minimum required version of CMake to 3.24 for RtMidi 6 support
- Updated the minimum required version of `RtMidi` to 6.0.0
- The toolbox now uses 15% of the window width, with icon columns adapting to fill each row
@sbonaime

Copy link
Copy Markdown
Contributor Author

ok. You can have a look at this commit now. I change some files to solve the rtmidi #582
Thanks

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.

3 participants