RibirX / Ribir

Non-intrusive GUI framework for Rust
https://ribir.org
MIT License
849 stars 18 forks source link

Sharing Styles with the `Class` Widget #620

Closed M-Adoo closed 3 weeks ago

M-Adoo commented 1 month ago

We need to establish a mechanism that allows for sharing styles between widgets, similar to the functionality of the class attribute in HTML.

A class similar to Fn(Widget) -> Widget, but with support for theme-based overrides. The class should be compatible with pipe!