mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
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 {
|
||||
"Unknown".to_string()
|
||||
};
|
||||
let theme = theme::current(cx).clone();
|
||||
|
||||
MouseEventHandler::new::<Self, _>(0, cx, |state, cx| {
|
||||
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()
|
||||
} else {
|
||||
Empty::new().into_any()
|
||||
|
|
Loading…
Reference in a new issue