Commit Graph
9 Commits
Author SHA1 Message Date
Joel 4113dd26be Fix toolbar button resize loop when moving between displays (#2093)
NavigableToolButton bound its icon size to its background. Material's
ToolButton background is half the button height while the content is
square, but spans the full button width otherwise. When the window
straddles a 2x and a 1x display, the header row briefly lays out at a
smaller height, the content stops being square, and the icon width
becomes the button width. The button's implicit width is then icon +
padding, so every layout pass widens it by 12px without end and
reloads the SVG icon at each new size. The UI hangs and memory grows
until the process is killed.

Size the icon from the button's own height instead. That height comes
from Layout.preferredHeight, not from the icon, so there's no feedback
loop, and the icon stays 30x30 in the 60px toolbar as before.

Fixes #2092
2026-11-05 19:12:12 -06:00
Cameron Gutman be266d3349 Disable toolbar icon scaling
Closes #1192
2025-10-11 12:55:54 -05:00
Cameron Gutman c618a0b5df Use native QML icon support 2025-10-11 12:52:37 -05:00
Cameron Gutman 1444ba2c35 Use attached Layout attached properties to set tool button size 2021-12-03 12:24:31 +03:00
Cameron Gutman fac4c85133 Revert "Fix toolbar button size on Qt 6.2"
Breaks running with Qt 5.9

This reverts commit 84ea483b4c.
2021-12-03 12:17:25 +03:00
Cameron Gutman 84ea483b4c Fix toolbar button size on Qt 6.2 2021-11-25 12:26:29 +03:00
Maximiliano Bertacchini fff9f2b17d Add numpad Enter handlers (Keys.onEnterPressed) (#516) 2021-02-27 17:01:22 -06:00
Cameron Gutman 6e46537112 Fix highlights for toolbar buttons to be more visible 2019-04-24 20:22:39 -07:00
Cameron Gutman 2e3de32810 Partially working keyboard navigation support 2018-09-23 15:16:27 -07:00