slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.93k stars 566 forks source link

How to set background and text colors for each widget indepentely #1315

Closed cppdev123 closed 1 year ago

cppdev123 commented 2 years ago

I'm currently missing how to set colors for each widget does slint support this yet ?

cppdev123 commented 2 years ago

If I add a pr will it be accepted ?

tronical commented 2 years ago

My feeling is that instead of giving every widget an explicit API for each configurable color property, I think it would be better if we had a palette and it's possible to override the palette of a widget. See also #116.

ogoffart commented 1 year ago

If there is a need to customize widget, one can write them yourself Cf https://slint-ui.com/docs/rust/slint/docs/recipes/index.html#custom-widgets

ogoffart commented 1 year ago

but closing this in favor of #116