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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 52s ⏱️ - 3m 42s
 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 b6b7f9b. ± Comparison against base commit e6588c2.

♻️ This comment has been updated with latest results.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants