-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Other Issues]: Is it possible to use this framework to more resemble Win10/Material design ? #114
Comments
Can you show an "enlarged" image of what you are seeing please. |
I would add the |
What we will need is access to 'Border.Padding' it is usually fixed in the registry system wide which mine is so KryptonForm needs it. |
If you want padding, then just place a Panel on the form, and setting padding / margins in that.. |
Hello @ALL, I think this looks like a Metro-Framework or WPF? Krypton is not yet a Metro-Control-Set. Perhaps you have a look to a NuGet-Package with Metro-Controls like MetroFramework-Modern-UI: https://github.com/dennismagno/metroframework-modern-ui @Wagnerp and @Smurf-IV: Greetings from Germany, |
A solution would be to set Another Solution is the The first is a bug, and would then be simple (Once fixed). |
Now that would be interesting, maybe in a future update? |
This is from ComponentOne, commercial product, I want to get away from the problems with handling the licenses. I know what the problem is though, the border and border padding at the form level are really window level, it's what gave Windows 7 that ugly fat border, from glancing at your code I t seems you get the default system metrics but we need to get the current metrics. I modifed the registry to eliminate that padding and it works on every window except Krypton, so something is missing, if I can find it, I will let you know. |
Themes can change the padding according to Microsoft, so I will start with the chrome code and metrics. This is how ComponentOne did it, through the theme engine. |
This is where that property is [DllImport("user32.dll")] CXPADDEDBORDER = 92, // 0x5C |
@lorinkundert |
Note: |
@Smurf-IV Is this best suited for the |
No. |
@AngeloCresta I think the #827 will help with this, as I think the current XML implementation is too complex to understand. |
Actually, you don't need to use the xml, you can just set the color values on a custom palette ad assign it back to the krypton manager, like in this snippet: `
` Regards, |
Looks good, no what I meant is rather than using XML files, allow the cc @Smurf-IV |
will be
|
I think that this is "Now possible" via a New theme and either the use of the new setting in
orvia setting the "Border width" to be 2 in the palette designer.. |
This needs a revisit and probably a checklist of items to make Krypton "Flat" and "Metro"-able... |
Today many tools are focused on an interface that more resembles Win10/Material design, your framework is capable but there is some padded area immediately starting from the inner border of the window to the other controls, this leaves a large gap along the edges, how can that be removed? changes to border width do not affect it.
The text was updated successfully, but these errors were encountered: