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

[Win] Disallow autoscale mode "integer" for monitor-specific scaling #1721

Conversation

HeikoKlare
Copy link
Contributor

The default auto-scale value is "integer"/"integer200", which makes everything in the UI except fonts not scale according to the actual native zoom value but according to a value rounded to 100 or 200. While most code performing adaptations to zoom considers this for a static zoom value applied to the whole application, it leads to hard-to-resolve issues when scaling every shell according to the current monitor's zoom.

Since that autoscale mode is complex and should be replaced by uniform scaling of everything (in particular when images are based on vector graphics that can sharply be rendered for every zoom factor) anyway, this is not to be supported by the monitor-specific scaling feature currently being introduced for Windows. With this change, that mode will thus be limited to reasonable autoscale modes like "quarter" and "exact" or ones fixing the zoom value like specifying an explicit value or "false".

@HeikoKlare HeikoKlare requested a review from fedejeanne January 13, 2025 20:31
@HeikoKlare
Copy link
Contributor Author

@akoch-yatta

@HeikoKlare HeikoKlare linked an issue Jan 13, 2025 that may be closed by this pull request
Copy link
Contributor

github-actions bot commented Jan 13, 2025

Test Results

   494 files  ±0     494 suites  ±0   9m 47s ⏱️ +21s
 4 324 tests ±0   4 306 ✅ ±0   18 💤 ±0  0 ❌ ±0 
16 534 runs  ±0  16 386 ✅ ±0  148 💤 ±0  0 ❌ ±0 

Results for commit 482d30a. ± Comparison against base commit a6dd128.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the autoscale-quarter-for-monitor-specific-scaling branch from 21aeca3 to 1900fcd Compare January 13, 2025 20:46
@HeikoKlare HeikoKlare marked this pull request as ready for review January 14, 2025 07:59
Copy link
Contributor

@akoch-yatta akoch-yatta left a comment

Choose a reason for hiding this comment

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

Looks good to me, only one question as stated in my comment.

@HeikoKlare HeikoKlare force-pushed the autoscale-quarter-for-monitor-specific-scaling branch from 1900fcd to d3123ef Compare January 14, 2025 15:27
Copy link
Contributor

@fedejeanne fedejeanne left a comment

Choose a reason for hiding this comment

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

I have only 1 small comment about case-sensitive values.

Once that is resolved, this PR is ready to go.

The default auto-scale value is "integer"/"integer200", which makes
everything in the UI except fonts not scale according to the actual
native zoom value but according to a value rounded to 100 or 200. While
most code performing adaptations to zoom considers this for a static
zoom value applied to the whole application, it leads to hard-to-resolve
issues when scaling every shell according to the current monitor's zoom.

Since that autoscale mode is complex and should be replaced by uniform
scaling of everything (in particular when images are based on vector
graphics that can sharply be rendered for every zoom factor) anyway,
this is not to be supported by the monitor-specific scaling feature
currently being introduced for Windows. With this change, that mode will
thus be limited to reasonable autoscale modes like "quarter" and "exact"
or ones fixing the zoom value like specifying an explicit value or
"false".
@HeikoKlare HeikoKlare force-pushed the autoscale-quarter-for-monitor-specific-scaling branch from d3123ef to 482d30a Compare January 15, 2025 09:12
@HeikoKlare HeikoKlare merged commit 0fa596c into eclipse-platform:master Jan 15, 2025
14 checks passed
@HeikoKlare HeikoKlare deleted the autoscale-quarter-for-monitor-specific-scaling branch January 15, 2025 11:01
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.

Restrict autoScale to Allowed Values Only
3 participants