MetroSet-UI
MetroSet-UI copied to clipboard
Theme.xml
Not really an issue, but not sure where else to go. In the demo, there are more then 2 themes. How can we get those? I know you can edit the theme.xml file, but thats... nuts... is there any premade ones we can use?
Thanks
I've been working on a App for a year w/ MetroSetUI, the last few months I've been working on themes to go with the default light/dark.
I've been able to change everything w/ a sub except the TabControl Blue Highlight which I had to resort to XML for, Everything else I changed w/ If Type of control DirectCast.
But if you want to use XML entirely, Customize the XML. Put the contents of Theme.xml in a textbox, make it invisible and like 5x5 size somewhere in the corner of the form.
When switching theme to custom, have the app write the contents of the textbox to an xml in the same folder as your app.
So:
Use the System Environment Current folder + "/theme.xml" as a Dim / Var ie "ThemePath"
Then: StyleManager1.SetTheme(ThemePath) 'StyleManager1.Style = Style.Custom 'StyleManager1.Style = MetroSet_UI.Enums.Style.Custom
Or if you don't mind the XMLs being visible, at one point I had a /Themes/ folder in my app directory w/ 8 xmls.
and just had the ThemePath, change to each XML when toggling themes.
ie:
