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

Scaling of Color/Font Dialog not working properly after DPI change #1593

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

ShahzaibIbrahim
Copy link
Contributor

Creating a separate UI thread to set the DPI Awareness context to use UNAWARE GDI scale before opening the either dialogs since windows has issues with dialog scaling in AWARE context

HOW TO TEST

  • Run the ControlExample with the following VM Arguments
-Dswt.autoScale=quarter
-Dswt.autoScale.updateOnRuntime=true
  • Run the Runtimeworkspace
  • Go to Window -> Preferences -> General -> Appearance -> Colors and Fonts
  • Collapse Basic in the main window
  • Double click on any option (to open either color or font dialog)
  • Move the dialog across multiple monitor
  • See if the dialog is scaling correctly on multiple zoom level monitors

Before Fix

Case: Primary monitor 200%, Secondary monitor 100%

100%:
image
image

200%:
image
image

After Fix

100%:
image
image

200%:
image
image

Copy link
Contributor

github-actions bot commented Nov 13, 2024

Test Results

   483 files  ±0     483 suites  ±0   8m 31s ⏱️ - 1m 10s
 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 b2c80a4. ± Comparison against base commit beb2391.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-141 branch 2 times, most recently from 0b96a81 to b6b7f9b Compare November 14, 2024 12:45
Creating a separate UI thread to set the DPI Awareness context to use
UNAWARE GDI scale before opening the either dialogs since windows has
issues with dialog scaling in AWARE context
@fedejeanne
Copy link
Contributor

Failing tests and checks are unrelated.

@fedejeanne fedejeanne merged commit fa71076 into eclipse-platform:master Nov 28, 2024
8 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants