MetroSet-UI icon indicating copy to clipboard operation
MetroSet-UI copied to clipboard

Theme.xml

Open xdwbx opened this issue 3 years ago • 1 comments

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

xdwbx avatar Mar 10 '22 22:03 xdwbx

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: image

Skate-Zilla avatar Jan 09 '23 17:01 Skate-Zilla