Skip to content

deprecated theme.DarkTheme() in Demo App #4188

Answered by Jacalz
dev9nine asked this question in Q&A
Discussion options

You must be logged in to vote

The proper way is not net set it actually. Like the deprecation note says, it is deprecated because it ignores the user's proffered theme and it should be up to the user which theme they want to use, not the developer. We have added support for following the Dark Style Preference which means that a desktop environment supporting that FreeDesktop protocol should result in the application having the correct theme.

In Rymdport, I use settings.NewSettings().LoadAppearanceScreen(window) from "fyne.io/fyne/v2/cmd/fyne_settings/settings" (see https://github.com/Jacalz/rymdport/blob/aaf2ff2a2d63228f5d4b7486952a4b0bf82e3f70/internal/ui/settings.go#L223C35-L223C79) to integrate the whole theme sect…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dev9nine
Comment options

Answer selected by dev9nine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants