-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Spec] Themes Implementation in Winforms #5166
Comments
This is absolutely something that is on our long term roadmap. We have to work with Windows to make sure that some of the Windows APIs we need are made public so we can read them as we bring up the form. These are discussions that are happening internally and we will be sure to let everyone know when we get a plan in place. This happens to be a favorite topic of mine and @RussKie / |
Hi @merriemcgaw, I wanted to add that this is extremely important for my organization and I appreciate the high priority you are placing on this feature! |
I'm glad it's a feature that has so much enthusiasm behind it! I can't make a prediction yet as to when we would release this type of feature, but it is totally on my radar. We'll keep everyone posted as we get more info from Windows and as we are able to settle on a steady design. |
Related: microsoft/WindowsAppSDK#41 |
Glad to here it was talking with ollia on twitter. I love how telerik handle it with the sep dlls for the themes might be worth talking to them |
That only deals with UWP and WPF Im talking winforms here |
Ideally it should be possibly to specify a bundled MSStyles with values for Light and Dark control resource and colours. With an ability to specify Dark or Light as the app's chosen theme, as well as following the OS setting. Each app could use a locally produced Style - or the current version of WinForms as a package could have a style included to match the version of the OS the app is run on. The OS can keep it's own UX Theme and MsStyles implementation, but future or updated apps can get updated ones as the future OS design is updated. |
If u ever used the telerik ones where their is a theme option on each form that was something like i was thinking but, agreed a global option would be good as well. |
The issue I opened on the Windows App SDK repo is about dark theming for Win32/WinForms apps specifically, not WPF nor UWP |
Any hope that this can some how speed up #3691 fixing? |
This bug needs to be fixed by the Windows team, it's on their backlog. |
We haven't gotten any feedback from the Windows team on #3691 but we are asking again. It is on their radar and they've acknowledged it's on their end. |
Its not a bug if its not their its an enhancement |
Please bring the ability of themes to winforms every other platform has it but WinForms.
We should be able to set the theme on startup and change it on the fly with a listener.
Should be something like this
This would then look in resources.resx for dark or light theme pallets. That could be used to style the entire application for example
There should also be some way of getting the value from here as some sort of enumeration query able. And be able to retrive the system colours once selected. Making it that the above is not necessary with the resources.
For example an internal enum that would pick up any custom themes the user has created.
NameSpace Suggestion:
Enum Suggestion:
Detect & Change User Interface Style
DeviceInfo
The theme should also allow us to implement rounded corner where we could set a radius of the corner in what ever dpi the user wanted. Be it inches pixels cm mm.
Already
While this is implemented for xamrain it would give a clear conception of what is expected for the winforms flavour.
xamarin/Essentials#927
VisualElement
AppThemeChanged Event
To Apply the theme on a form one could or one could have a class derived from form for example
Resources could be based off Colours per app theme
Theme.AppTheme =AppThemeEnum.Dark
Availability
This should go into .net core,5 and 6.
The text was updated successfully, but these errors were encountered: