fix(menu_bar): root text will inherit icon color from header
This commit is contained in:
parent
aa3f5d3401
commit
f9f8eb51cb
8 changed files with 26 additions and 24 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use crate::widget::segmented_button::Entity;
|
||||
|
||||
/// `MenuAction` is a trait that represents an action in a menu.
|
||||
///
|
||||
/// It is used to define the behavior of menu items when they are activated.
|
||||
|
|
|
|||
|
|
@ -390,8 +390,8 @@ where
|
|||
},
|
||||
shadow: Default::default(),
|
||||
};
|
||||
let path_color = styling.path;
|
||||
renderer.fill_quad(path_quad, path_color);
|
||||
|
||||
renderer.fill_quad(path_quad, styling.path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -709,8 +709,8 @@ where
|
|||
},
|
||||
shadow: Shadow::default(),
|
||||
};
|
||||
let path_color = styling.path;
|
||||
r.fill_quad(path_quad, path_color);
|
||||
|
||||
r.fill_quad(path_quad, styling.path);
|
||||
}
|
||||
|
||||
// draw item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue