WIP
This commit is contained in:
@@ -59,7 +59,7 @@ impl View for Toolbar {
|
||||
"Toolbar"
|
||||
}
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> ElementBox {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> ElementBox<Self> {
|
||||
let theme = &cx.global::<Settings>().theme.workspace.toolbar;
|
||||
|
||||
let mut primary_left_items = Vec::new();
|
||||
@@ -169,7 +169,7 @@ fn nav_button<A: Action + Clone>(
|
||||
tooltip_action: A,
|
||||
action_name: &str,
|
||||
cx: &mut ViewContext<Toolbar>,
|
||||
) -> ElementBox {
|
||||
) -> ElementBox<Toolbar> {
|
||||
MouseEventHandler::<A>::new(0, cx, |state, _| {
|
||||
let style = if enabled {
|
||||
style.style_for(state, false)
|
||||
|
||||
Reference in New Issue
Block a user