(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:
Manuel Cillero 2026-08-21 08:18:28 +02:00
parent bb6855e41f
commit b50d186fb1
2 changed files with 30 additions and 2 deletions

View file

@ -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};