mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 20:22:30 +00:00
Show tooltip for Give Feedback icon
This commit is contained in:
parent
432aeeac56
commit
29f0078084
1 changed files with 9 additions and 2 deletions
|
@ -25,10 +25,10 @@ impl View for DeployFeedbackButton {
|
||||||
|
|
||||||
fn render(&mut self, cx: &mut RenderContext<'_, Self>) -> ElementBox {
|
fn render(&mut self, cx: &mut RenderContext<'_, Self>) -> ElementBox {
|
||||||
let active = self.active;
|
let active = self.active;
|
||||||
|
let theme = cx.global::<Settings>().theme.clone();
|
||||||
Stack::new()
|
Stack::new()
|
||||||
.with_child(
|
.with_child(
|
||||||
MouseEventHandler::<Self>::new(0, cx, |state, cx| {
|
MouseEventHandler::<Self>::new(0, cx, |state, _| {
|
||||||
let theme = &cx.global::<Settings>().theme;
|
|
||||||
let style = &theme
|
let style = &theme
|
||||||
.workspace
|
.workspace
|
||||||
.status_bar
|
.status_bar
|
||||||
|
@ -54,6 +54,13 @@ impl View for DeployFeedbackButton {
|
||||||
cx.dispatch_action(GiveFeedback)
|
cx.dispatch_action(GiveFeedback)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.with_tooltip::<Self, _>(
|
||||||
|
0,
|
||||||
|
"Give Feedback".into(),
|
||||||
|
Some(Box::new(GiveFeedback)),
|
||||||
|
theme.tooltip.clone(),
|
||||||
|
cx,
|
||||||
|
)
|
||||||
.boxed(),
|
.boxed(),
|
||||||
)
|
)
|
||||||
.boxed()
|
.boxed()
|
||||||
|
|
Loading…
Reference in a new issue