-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Bug]: Title Bar Images Stretched/Cropped (Regression) #603
Comments
@sdreb3421 I am unable to replicate this (At any of the scaling I have on my QHD monitor with Win 10 20H2) |
I was unable to resolve the issue with any scale setting unfortunately. The advanced scaling settings are disabled, but changing them didn't fix it either. Neither did changing the resolution of my monitor (native 1920x1080). The images below show my OS info, the results of various scaling (100%, 125%, 150%), and the images I used. To replicate the issue, create an empty krypton form, no palette settings, and add button specs to the form using the three images below. The issue is most obvious when using smaller images that have rounded edges. If you're unable to replicate this I will go run some tests on other computers I can find. |
Hi @sdreb3421 is it possible to use images, which are 24 x 24? |
What is the size of the images (i.e. 16x16 or something else) ( cannot see from the images you have chosen as they are png's, and they will may be stored as bitmaps internally) Note: at this size bmp is more efficient than png overhead. |
FYI See the following PR demo of Form butts with round images: |
Yeah it would be okay to use 24px. Does that fix the issue? I can test it tomorrow morning... |
@Smurf-IV looks like you were able to replicate it in that PR. Is the issue the image size? |
Yes it does, please see @Smurf-IV previous comment for a demo. |
@sdreb3421 They are using 24 or 25px |
@Smurf-IV I'm confused, are you saying they had the issue when using 24px, or that is the fix? |
I'm assuming this image size requirement doesn't just apply to button specs, but also applies to the form control buttons and form icon? |
Form Control buttons are ButtonSpecs. The Form Icon is independent and should be an "Icon with multiple sized images " not a single bitmap image |
I just upgraded to the latest stable (60.22.2.32) and tried using a 24px button spec image, and the problem still exists. The help button spec below is 24px. We have tested with 16, 20, 24 and 32px with the same issue. The issue is applying to form button specs and navigator button specs. Have you guys been able to replicate the issue? |
Looks like #623 is likely the same issue. |
@sdreb3421
|
@Wagnerp in your court now. |
@sdreb3421 Please retry using today's nightly @Smurf-IV Somehow, old code snuck back in :) |
Fixed in Nightly 70.22.7.185-alpha! However, when updating to this from stable 6.2201.4 I'm getting designer exceptions and a runtime exception (VS2022 latest version). The runtime exception is occurring on ((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit(); Is this expected? |
Old code might have got back in between 2201.4 & 70.22.7.185.
Might be something to do with .NET 4.8.1, @Smurf-IV any ideas? |
I'm using VS 2022 with only NET6 as target framework. I can't also target net48 due to incompatible assemblies. However, designer looks good and no runtime exceptions with 6.2201.4. |
@sdreb3421 Yes it should be if it's fixed in the latest nightly. |
@Wagnerp @Smurf-IV you guys... what is happening here. The issue was fixed in nightly 70.22.7.185-alpha, but broken again in 70.22.7.194-alpha. This is the second time the fix has been removed. I blame it on the aliens. Interestingly, when the fix was implemented (185 and 188), I get a runtime exception for the KNavigator. This exception went away again in 194 once the fix was removed. Exception details below. It looks like some of the new code for the button spec bitmaps is causing an exception with the KNavigator button specs... System.ArgumentException |
@sdreb3421 The only fixed version I can think of was in this version. If I compile said version, are you able to test? cc. @Smurf-IV |
Got it! The 'fix' is here. Going to reimplement tomorrow. |
Awesome. Tag me and I'll test the nightly when it's time. Thanks |
Hi @sdreb3421 Please re-test using today's |
Looks perfect. And no runtime exceptions. Well done, thank you |
The new canary build (60.22.1.17) has introduced stretching/cropping of the icons/images in the krypton form title bar. This could be related to #601.
Stable:
Canary:
The text was updated successfully, but these errors were encountered: