Changing Theme #610
-
Hello,
but I get the message that it is not possible to change something in theme like that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I guess what you want is: let mut palette = Palette::default();
palette.primary = Color::RED;
FullTheme {
palette: Rc::new(palette),
..Default::default()
} By the way, Ribir's theme is currently read-only. At runtime you can only replace the entire theme or do a partial reload via InheritTheme. However, the theme API is not yet stable and will change in the next one or two releases. |
Beta Was this translation helpful? Give feedback.
I guess what you want is:
By the way, Ribir's theme is currently read-only. At runtime you can only replace the entire theme or do a partial reload via InheritTheme. However, the theme API is not yet stable and will change in the next one or two releases.
We may allow direct modification of themes at runtime.