Fix bug with background color of nodes
This commit is contained in:
parent
b72a79bc81
commit
74e9fecc0f
|
|
@ -222,7 +222,7 @@ impl BevyTemplateNode {
|
||||||
|
|
||||||
fn parse_style_attributes(attributes: &[TemplateAttribute]) -> (Style, BackgroundColor) {
|
fn parse_style_attributes(attributes: &[TemplateAttribute]) -> (Style, BackgroundColor) {
|
||||||
let mut style = Style::default();
|
let mut style = Style::default();
|
||||||
let mut background_color = BackgroundColor::default();
|
let mut background_color = Color::NONE.into();
|
||||||
for attribute in attributes {
|
for attribute in attributes {
|
||||||
if let TemplateAttribute::Static {
|
if let TemplateAttribute::Static {
|
||||||
name,
|
name,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue