-
I'd like to have a toggle where users can select between dark mode and light mode. This is defined by the I'm looking for something like It looks like I could define a custom theme, then in the calls to I feel like I must be missing something. With the default theme, or with a custom theme, how should I be going about setting the variant on the fly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can delegate to the default theme from your custom theme for all the Color, Size, etc calls. Take a look at how fyne_demo does it, with a custom theme called |
Beta Was this translation helpful? Give feedback.
You can delegate to the default theme from your custom theme for all the Color, Size, etc calls.
Take a look at how fyne_demo does it, with a custom theme called
forcedVariant
, which just delegates to the builtin theme for everything except the variant value