-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Proposal: Allow dynamic themes via JSON templates #211
Comments
I like this proposal. Part of the conversation may be about the actual storage format. JSON and XML are easy from a Go point of view but are they right for people who will edit the themes? It may also relate to the settings discussion. |
Good point. I agree that JSON and XML are easy to work with and provide a simple and familiar interface, but it could get out of hand depending on a few factors:
Perhaps a look into how other applications handle custom theming could answer some questions. VSCode comes to mind as does Sublime Text. |
VSCode uses json defined overrides of sane defaults, likely with a right to left merge somewhere in the line (for configuration). As well as actual css etc - but this is a product of the fact that VSCode is written in electron It may be useful to deal with theme file sprawl by allowing users to load them in a compressed or condensed format, say a zip or some format that allows bundling of files into one. |
Depending on whether or not we change how themes work I don't think this needs to be multiple files. |
That gets into |
Given that we have started using TOML for the FyneApp.toml build metadata, I wonder if we should do the same here. |
This is now on |
Amazing! Thanks for all your hard work @andydotxyz |
Thanks :) there is still work to be done as icon and font resources cannot yet be specified via JSON, but it should be added soon. |
It would be nice to be able to load and run custom themes during runtime.
The text was updated successfully, but these errors were encountered: