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
I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.
Is there an existing issue for this?
I have searched the existing issues.
Is this issue related to iced?
My hardware is compatible and my graphics drivers are up-to-date.
What happened?
I am making an app launcher for my custom linux DE, and so to make everything look consistent I made a custom Theme struct based on the base16 style scheme. My problem was that all text inside of a button was black, even when i set the app theme to use white text. All other text was fine.
After some painful debugging I realized my mistake. I was implementing Catalog for container like this:
// use container::{...}implCatalogforBase16Theme{typeClass<'a> = StyleFn<'a,Self>;fndefault<'a>() -> Self::Class<'a>{Box::new(|_theme| Style::default())}fnstyle(&self,class:&Self::Class<'_>) -> Style{class(self)}}
This had the expected behavior because by default the text_color is none, making the text inherit it's color.
I slightly modified this to get my button Catalog impl.
The problem was that for button, text_color::default is black, not none, overriding the default styles for the widgets placed inside.
I believe that button should behave the same as text and container, and allow inheriting the base text color style from it's parent
What is the expected behavior?
I expected button to behave the same as container, and inherit the text styling from the parent
Version
crates.io release
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered:
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
I am making an app launcher for my custom linux DE, and so to make everything look consistent I made a custom Theme struct based on the base16 style scheme. My problem was that all text inside of a button was black, even when i set the app theme to use white text. All other text was fine.
After some painful debugging I realized my mistake. I was implementing Catalog for container like this:
This had the expected behavior because by default the text_color is none, making the text inherit it's color.
I slightly modified this to get my button Catalog impl.
The problem was that for button, text_color::default is black, not none, overriding the default styles for the widgets placed inside.
I believe that button should behave the same as text and container, and allow inheriting the base text color style from it's parent
What is the expected behavior?
I expected button to behave the same as container, and inherit the text styling from the parent
Version
crates.io release
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: