Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[win32] Always use native zoom for OS theme calls #1574

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

akoch-yatta
Copy link
Contributor

@akoch-yatta akoch-yatta commented Nov 6, 2024

This commit changes all DPI dependent OS theme calls to use the native zoom instead of using the zoom adjusted by the swt.autoScale setting. This is neccessary, because theme dependent elements like the checkbox for a button will be drawn by the OS and must be calculated with the native zoom.

Fixes #1573

Copy link
Contributor

github-actions bot commented Nov 6, 2024

Test Results

   483 files  ±0     483 suites  ±0   9m 7s ⏱️ +18s
 4 095 tests ±0   4 085 ✅ ±0   7 💤 ±0  3 ❌ ±0 
16 173 runs  ±0  16 080 ✅ ±0  90 💤 ±0  3 ❌ ±0 

For more details on these failures, see this check.

Results for commit 995cbb6. ± Comparison against base commit df66a8b.

♻️ This comment has been updated with latest results.

This commit changes all DPI dependent OS theme calls to use the native zoom instead of using the zoom adjusted by the swt.autoScale setting. This is neccessary, because theme dependent elements like the checkbox for a button will be drawn by the OS and must be calculated with the native zoom.

Fixes eclipse-platform#1573
@HeikoKlare HeikoKlare changed the title [win32] fix getting checkbox size from OS [win32] Always use native zoom for OS theme calls Nov 6, 2024
Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

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

Adapting these zoom values to be consistent with previous behavior of using the primary monitor zoom is reasonable, as also confirmed by the report in #1573.

@HeikoKlare
Copy link
Contributor

For failing tests, see #1564

@HeikoKlare HeikoKlare merged commit a26b66a into eclipse-platform:master Nov 6, 2024
12 of 14 checks passed
@HeikoKlare HeikoKlare deleted the fix-1573 branch November 6, 2024 13:17
@HeikoKlare HeikoKlare linked an issue Nov 6, 2024 that may be closed by this pull request
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.

Evaluate DPI dependent Theme calls to OS [Win11] Styling with SWT.Skin listener breaks look
2 participants