Add tooltip to language selector
This commit is contained in:
parent
87472a9de6
commit
f4a9d3f269
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ impl View for ActiveBufferLanguage {
|
||||||
} else {
|
} else {
|
||||||
"Unknown".to_string()
|
"Unknown".to_string()
|
||||||
};
|
};
|
||||||
|
let theme = theme::current(cx).clone();
|
||||||
|
|
||||||
MouseEventHandler::new::<Self, _>(0, cx, |state, cx| {
|
MouseEventHandler::new::<Self, _>(0, cx, |state, cx| {
|
||||||
let theme = &theme::current(cx).workspace.status_bar;
|
let theme = &theme::current(cx).workspace.status_bar;
|
||||||
|
@ -68,6 +69,7 @@ impl View for ActiveBufferLanguage {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.with_tooltip::<Self>(0, "Select Language", None, theme.tooltip.clone(), cx)
|
||||||
.into_any()
|
.into_any()
|
||||||
} else {
|
} else {
|
||||||
Empty::new().into_any()
|
Empty::new().into_any()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue