diff --git a/cursive-core/src/theme/effect.rs b/cursive-core/src/theme/effect.rs index aacfbf9a..3d6feaee 100644 --- a/cursive-core/src/theme/effect.rs +++ b/cursive-core/src/theme/effect.rs @@ -91,6 +91,11 @@ impl Effects { } } + /// Sets the given effect to be `InheritParent`. + pub fn remove(&mut self, effect: Effect) { + self.statuses[effect] = EffectStatus::InheritParent; + } + /// Sets the given effect to be `OppositeParent`. pub fn insert(&mut self, effect: Effect) { self.statuses[effect] = EffectStatus::OppositeParent;