Skip to content

Fix toolbar scaling on high-DPI displays#164

Open
aisk wants to merge 1 commit into
ModuleArt:masterfrom
aisk:fix/high-dpi-toolbar-scaling
Open

Fix toolbar scaling on high-DPI displays#164
aisk wants to merge 1 commit into
ModuleArt:masterfrom
aisk:fix/high-dpi-toolbar-scaling

Conversation

@aisk

@aisk aisk commented Jun 21, 2026

Copy link
Copy Markdown

Scale toolbar icons for the current DPI by generating appropriately sized bitmaps in memory when the app starts and whenever the DPI changes. Toolbar item sizes, padding, and zoom textbox layout are recalculated at the same time to prevent clipping and overlap. This is a pragmatic workaround for the current custom WinForms toolbar behavior, but it works.

Closes #112.
Related to #21 and #121.

@aisk aisk marked this pull request as ready for review June 21, 2026 12:52
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.

[BUG] Toolbar icons are too small and cropped

1 participant