mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Add click handlers to some of the buttons in the StatusBar
This commit is contained in:
parent
be843227a1
commit
c142676b20
1 changed files with 15 additions and 4 deletions
|
@ -119,7 +119,9 @@ impl<S: 'static + Send + Sync + Clone> StatusBar<S> {
|
|||
.items_center()
|
||||
.gap_1()
|
||||
.child(Button::new("116:25"))
|
||||
.child(Button::new("Rust")),
|
||||
.child(
|
||||
Button::new("Rust").on_click(|_, _| println!("Select Language clicked.")),
|
||||
),
|
||||
)
|
||||
.child(ToolDivider::new())
|
||||
.child(
|
||||
|
@ -127,8 +129,14 @@ impl<S: 'static + Send + Sync + Clone> StatusBar<S> {
|
|||
.flex()
|
||||
.items_center()
|
||||
.gap_1()
|
||||
.child(IconButton::new(Icon::Copilot))
|
||||
.child(IconButton::new(Icon::Envelope)),
|
||||
.child(
|
||||
IconButton::new(Icon::Copilot)
|
||||
.on_click(|_, _| println!("Copilot clicked.")),
|
||||
)
|
||||
.child(
|
||||
IconButton::new(Icon::Envelope)
|
||||
.on_click(|_, _| println!("Send Feedback clicked.")),
|
||||
),
|
||||
)
|
||||
.child(ToolDivider::new())
|
||||
.child(
|
||||
|
@ -137,7 +145,10 @@ impl<S: 'static + Send + Sync + Clone> StatusBar<S> {
|
|||
.items_center()
|
||||
.gap_1()
|
||||
.child(IconButton::new(Icon::Terminal))
|
||||
.child(IconButton::new(Icon::MessageBubbles))
|
||||
.child(
|
||||
IconButton::new(Icon::MessageBubbles)
|
||||
.on_click(|_, _| println!("Chat Panel clicked.")),
|
||||
)
|
||||
.child(IconButton::new(Icon::Ai)),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue