diff --git a/src/theme/style.rs b/src/theme/style.rs index 10fadd6..203bd8a 100644 --- a/src/theme/style.rs +++ b/src/theme/style.rs @@ -1,4 +1,4 @@ -use super::{ColorStyle, Effect}; +use super::{ColorStyle, Effect, Color}; use enumset::EnumSet; /// Combine a color and an effect. @@ -49,6 +49,11 @@ impl Style { Style { color, effects } } + + /// Returns a combination of `self` and `other`. + pub fn add(self, other: S) -> Self where S: Into