fyne-theme-generator icon indicating copy to clipboard operation
fyne-theme-generator copied to clipboard

The generated themes throw an error

Open lordofscripts opened this issue 5 months ago • 2 comments

The moment I integrated the generated themes into my app, a strange issue appeared.

Once the application started, Fyne threw an error:

Attempt to access current Fyne app even when none is started.

The moment I remove the generated themes from compilation the issue is gone.

And that even with a plain Hello World app. Apparently there is something Fyne finds offensive in the generated theme. Even when the theme is set with App.Lifecycle().I started(themeSetCB)

lordofscripts avatar Aug 02 '25 21:08 lordofscripts

Sorry, as you can see from the commits, this repository is no longer maintained and may not be up to date with the latest Fyne specs.

lusingander avatar Aug 02 '25 22:08 lusingander

Apparently it is not a problem with the generated themes but with Fyne itself that tries to do things before it is running. As for this, is it okay to fork it and add a few extra features, namely saving the theme spec to a JSON file for further editing and refinement?

lordofscripts avatar Aug 09 '25 23:08 lordofscripts