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

The Close and Auto Hide buttons are not scaled in 4K screen with 200% DPI #693

Open
BlackPower opened this issue Mar 20, 2023 · 3 comments

Comments

@BlackPower
Copy link

It looks like the images are not scaled and they look very small when DPI scaling is set.
Here is how they look:
CaptionImages

I've tried to play with the "enableHighDpi" patch, but it didn't help.

I'm using:

  • 4K monitor (3840*2160)
  • 200% DPI scaling
  • DockPanelSuite.ThemeVS2005 (V 3.1.0) is used
  • DockPanelSuite (V 3.1.0)
@lextm
Copy link
Member

lextm commented Mar 21, 2023

This is because the actual code to generate such images on the fly was not written with HDPI in mind.

You might modify the code to adapt to the needs and send back a pull request if you like.

@ericoporto
Copy link

Apparently the way this works is there is a bitmap somewhere in that gzipped resource somehow. In VS2012 theme, there is an ImageService with those https://github.com/dockpanelsuite/dockpanelsuite/blob/master/WinFormsUI/ThemeVS2012/ImageService.cs . Apparently the 2015 theme uses it too. There it uses ImageServiceHelper.GetImage, if there is some way to pass the scale to it, at least it could resize the bitmap. It would be nice if there was some way to edit the resources and add some variants of the images for bigger resolutions too.

@mocakturk
Copy link

I wish it was possible to reject different images at runtime. Because, if an application has SVG formatted images, and if it has ability to convert SVG to Image at runtime (using the current scale), DockPanelSuite should use these images instead of embedded ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants