Skip to content

Fix/high dpi support#692

Merged
t1m0thyj merged 3 commits into
mainfrom
fix/high-dpi-support
Jul 11, 2026
Merged

Fix/high dpi support#692
t1m0thyj merged 3 commits into
mainfrom
fix/high-dpi-support

Conversation

@t1m0thyj

@t1m0thyj t1m0thyj commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Resolves #688

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves WinDynamicDesktop’s UI behavior on high-DPI displays (per #688) by adjusting WinForms layout for the theme search box and making the SkiaSharp theme preview overlay render in DPI-independent (“logical”) coordinates.

Changes:

  • Adjust the theme dialog search box vertical position to better accommodate DPI-inflated textbox height.
  • Scale the SkiaSharp preview overlay based on DeviceDpi, while passing a corresponding logical SKImageInfo to the overlay renderer.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/ThemeDialog.cs Tweaks search box layout to account for DPI-related textbox height changes.
src/Skia/ThemePreviewer.cs Scales overlay drawing to logical coordinates for consistent sizing on high-DPI displays.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ThemeDialog.cs
Comment on lines 54 to +55
this.searchBox.Width = newWidth;
this.searchBox.Top += (this.searchBox.Height - 23) / 2;
Comment thread src/Skia/ThemePreviewer.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@t1m0thyj t1m0thyj merged commit 3ea660c into main Jul 11, 2026
9 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

Development

Successfully merging this pull request may close these issues.

Improve support for high DPI displays

2 participants