Skip to content

Address some HiDPI issues on wxGTK3/Linux - #10103

Merged
kryksyh merged 3 commits into
audacity:audacity3from
iv-m:address-some-hidpi-issues
Jan 5, 2026
Merged

kryksyh merged 3 commits into
audacity:audacity3from
iv-m:address-some-hidpi-issues

Conversation

@iv-m

@iv-m iv-m commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

While we all expect all possible HiDPI issues will be solved with Audacity 4, I guess Audacity 3 is with us for some more time, so why won't we make it a bit nicer.

This small series addresses two of the most irritating issues I have with Audacity 3 on my 160 DPI laptop screen:

  • huge labels on Time Signature, Snapping and Selection Toolbars;
  • huge dB labels on Playback and Recording meters.

The idea is to use the default wxWidgets font size instead of hardcoding a particular value. The solution is restricted to wxGTK3, as wxGTK3/Linux X11 is the only platform I can test things on.

Related to #503 and a few issues closed as its duplicates, but not resolves them completely of course.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@iv-m

iv-m commented Dec 23, 2025

Copy link
Copy Markdown
Contributor Author

Some screenshots for comparison (don't mind the light theme with dark widgets, that's the result of resetting the settings to defaults).

Before:

image

After:

image

@kryksyh

kryksyh commented Dec 29, 2025

Copy link
Copy Markdown
Member

@iv-m thanks! Could you make sure this code is also compatible with GTK2? For various reasons (the lack of time mainly) we still build it against GTK2 internally.

@iv-m

iv-m commented Dec 29, 2025

Copy link
Copy Markdown
Contributor Author

Could you make sure this code is also compatible with GTK2?

@kryksyh I intentionally applied the new font size logic to wxGTK3 only: I don't have wxGTK2 and I have some troubles building it on my system, so I'm not sure how it will work out with GTK2.

That said, I can replace __WXGTK3__ macro usage with __WXGTK__ and just check if it still works for me on wxGTK3. If that's what you're asking for, I'll update this PR tomorrow.

@iv-m
iv-m force-pushed the address-some-hidpi-issues branch from 212af2c to 1de1d73 Compare December 30, 2025 07:16
@iv-m

iv-m commented Dec 30, 2025

Copy link
Copy Markdown
Contributor Author

Update:

  • rebased onto the current audacity3 branch;
  • now the changes affect all wxGTK builds, not just wxGTK3 ones;
  • irrelevant whitespace changes removed.

I also added a similar change to TrackInfo, making font of track title, Mute and Solo buttons more consistent with the rest of the app. Before:
track-and-menu-before

After:
track-and-menu-after

@kryksyh kryksyh moved this from To-Do to Ready for QA in [AU3] Main board Dec 30, 2025
@kryksyh

kryksyh commented Dec 30, 2025

Copy link
Copy Markdown
Member

@dozzzzer please test, the change is linux only

@dozzzzer dozzzzer moved this from Ready for QA to In QA in [AU3] Main board Jan 2, 2026
@dozzzzer dozzzzer self-assigned this Jan 5, 2026
@dozzzzer dozzzzer moved this from In QA to Ready for merge in [AU3] Main board Jan 5, 2026
@dozzzzer

dozzzzer commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Tested

iv-m added 3 commits January 5, 2026 17:08
When the font sizes are hardcoded, the labels become HUGE
on HiDPI screens.

Signed-off-by: Ivan A. Melnikov <[email protected]>
With hard-coded font sizes, the dB labels become HUGE
on HiDPI screens. Let's use the default GUI font
as the base, reducing it a bit for better look.

Signed-off-by: Ivan A. Melnikov <[email protected]>
With font sizes hardcoded, labels might become quite large
on HiDPI screens.

Signed-off-by: Ivan A. Melnikov <[email protected]>
@kryksyh
kryksyh force-pushed the address-some-hidpi-issues branch from 1de1d73 to 78bdcdf Compare January 5, 2026 14:08
@kryksyh
kryksyh merged commit 9751522 into audacity:audacity3 Jan 5, 2026
@github-project-automation github-project-automation Bot moved this from Ready for merge to Done in [AU3] Main board Jan 5, 2026
@kryksyh kryksyh added this to the Audacity 3.7.8 milestone Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants