Switch usages of ContentStyle to Style

This commit is contained in:
Joscha 2023-02-16 21:24:52 +01:00
parent 4c304ffe79
commit 9ff8007cae
8 changed files with 48 additions and 61 deletions

View file

@ -30,15 +30,12 @@ impl Style {
self
}
pub fn cover(self, base: Self) -> Self {
pub fn cover(self, base: ContentStyle) -> ContentStyle {
if self.opaque {
return self;
return self.content_style;
}
Self {
content_style: merge_cs(base.content_style, self.content_style),
opaque: base.opaque,
}
merge_cs(base, self.content_style)
}
}