You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not work due to one of Rust's principles: "Only traits defined in the current crate can be implemented for types defined outside of the crate define and implement a trait or new type instead"
If this approach is not feasible, what is the correct one? Thanks 😊🎉
PS: What do you think if we add Dark in TabBarStyles?
PSPS: I think styling is not strictly related to Tabs but also for other widgets too... Add an example on how to override a style? 👀
The text was updated successfully, but these errors were encountered:
I think it would be fine to add Dark to the Tab styles. The issue with Themes atm is if you want anything outside of the current theme you have to create an Entire New theme for all of iced to get the smaller parts the way you want them too. We have been working out more ways to customize this to be able to still do it the old way where you can set a Custom theme per Image. Just have not gotten around to it.
How to implement custom style for
Tabs
?I'm trying to add a
Dark
style when the current theme isDark
I've tried to do the following:
This does not work due to one of Rust's principles:
"Only traits defined in the current crate can be implemented for types defined outside of the crate define and implement a trait or new type instead"
If this approach is not feasible, what is the correct one? Thanks 😊🎉
PS: What do you think if we add
Dark
inTabBarStyles
?PSPS: I think styling is not strictly related to
Tabs
but also for other widgets too... Add an example on how to override a style? 👀The text was updated successfully, but these errors were encountered: