Skip to content
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

Theme.xml #51

Open
xdwbx opened this issue Mar 10, 2022 · 1 comment
Open

Theme.xml #51

xdwbx opened this issue Mar 10, 2022 · 1 comment

Comments

@xdwbx
Copy link

xdwbx commented Mar 10, 2022

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

@Skate-Zilla
Copy link

Skate-Zilla commented Jan 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants