crowbarmaster / BedrockManagementService

A multiple host, multiple server, Minecraft bedrock server management service and GUI manager.
Apache License 2.0
33 stars 5 forks source link

Enhancement: High DPI display support for client. #67

Closed demifiend9 closed 2 years ago

demifiend9 commented 2 years ago

My device has high resolution display with 200% scaling.

This is how client looks normally no

If I go to properties>compatibility>change high dpi>override display scaling by Application it looks much better, but server and service logs aren't readable. yes

Client logs however look great yess

crowbarmaster commented 2 years ago

So this was a very strange issue brought to you by Microsoft Bug Studio, where if I change displays (Remoted into from laptop in another room, not unusual), a forced desktop rescale would cause Forms Designer to rescale my Forms for me, and totally messed up the GUI yesterday. What you see now is a few hours of resetting sizes, paddings, and margins on all of the controls. What a nightmare. Interior padding (Mind you, these values were never modified by my hands) had some 9x13 value, and this would cause the full-size textbox to wrap out of view. Thanks for the catch! I had to change my own scaling settings to see this... I will push a fix build to this soon!

crowbarmaster commented 2 years ago

New build uploaded to fix the bug. I will consider looking into responding to scaling changes, though I have a feeling that much of that is a flaw with Forms integration in to .NET Core, or just the fact that Forms is a bit outdated. I'm sure I will be bored enough at work to do this research someday soon, lol.

crowbarmaster commented 2 years ago

Found a method today that .NET Core uses to set WinForms DPI modes. I have enabled what looks to be the best option for this setting, the next build may look different for you! I am not high-res and unfortunately do not have the grounds for testing.

demifiend9 commented 2 years ago

I'd be happy to test although I'm not sure if there's anything to improve in this regard. The last few versions already look perfect. The only thing is I had to turn on application scaling by going to compatibility settings which should be on by default.

crowbarmaster commented 2 years ago

I wanna pop a post here at @demifiend9 , Just to see if the latest build doesn't make or break something related to this?

demifiend9 commented 2 years ago

It looks great by default! No problems related to this.