✨ (theme): Añade IntoColor para colores opcionales
Permite que métodos como `with_color(color: impl IntoColor)` acepten un color directo o uno opcional (`Some(...)`/`None`) sin la ambigüedad que produce un `Into<Option<C>>` genérico.
This commit is contained in:
parent
bb6855e41f
commit
b50d186fb1
2 changed files with 30 additions and 2 deletions
|
|
@ -118,7 +118,7 @@
|
|||
//! [`ReservedRegions`]: crate::response::ReservedRegions
|
||||
|
||||
mod color;
|
||||
pub use color::{ColorName, CoreColors};
|
||||
pub use color::{ColorName, CoreColors, IntoColor};
|
||||
|
||||
mod layout;
|
||||
pub use layout::{CoreRegions, RegionName, RegionRef};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue