Switch usages of ContentStyle to Style
This commit is contained in:
parent
4c304ffe79
commit
9ff8007cae
8 changed files with 48 additions and 61 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue