Skip to content

Fix DPI scaling issues: dynamic status bar height and parts sizing#3

Merged
ForLoopCodes merged 2 commits intoForLoopCodes:mainfrom
radami2006:fix/dpi-statusbar
Jan 30, 2026
Merged

Fix DPI scaling issues: dynamic status bar height and parts sizing#3
ForLoopCodes merged 2 commits intoForLoopCodes:mainfrom
radami2006:fix/dpi-statusbar

Conversation

@radami2006
Copy link
Copy Markdown
Contributor

@radami2006 radami2006 commented Jan 29, 2026

Problem

On high-DPI systems, the status bar was partially clipped:

  • Hardcoded status bar height (22px) caused bottom truncation.
  • Fixed part widths caused rightmost panels (encoding / line endings / zoom) to be cut.

Solution

  • Compute the actual status bar height at runtime instead of using a hardcoded value.
  • Dynamically size status bar parts based on text width and current DPI.

Result

  • No more clipping on high-DPI displays.
  • Correct layout across different DPI scales and system themes.

How to test

  1. Run the app on a system with DPI scaling >100%.
  2. Toggle the status bar.
  3. Resize the window and verify the bottom/right areas are fully visible.

@ForLoopCodes ForLoopCodes merged commit 86ca26d into ForLoopCodes:main Jan 30, 2026
@ForLoopCodes
Copy link
Copy Markdown
Owner

lgtm

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