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

The portable theme engine may need to allow themes to be stored in a "Themes" subdirectory. #152

Open
DrewNaylor opened this issue Nov 11, 2019 · 1 comment

Comments

@DrewNaylor
Copy link
Owner

This would make it easier to load themes for applications without also having them in the host application's My.Resources thing.

@DrewNaylor
Copy link
Owner Author

DrewNaylor commented Nov 11, 2019

Besides, having to load from the host application's My.Resources thing is a bit complicated to begin with. Maybe what could be done is something like this:

Public Shared Sub loadTheme(themeInput As String, Optional isFilename As Boolean = True)
    If isFilename = True Then
        userTheme.Load(GetCurrentDirectory & "\Themes\" & themeInput)
    ElseIf isFilename = False Then
        userTheme.LoadXml(themeInput)
    End If
End Sub

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

No branches or pull requests

1 participant