1use gpui::{Context, IntoElement, Render, Window};
2use ui::{prelude::*, tooltip_container};
3
4pub struct MaxModeTooltip;
5
6impl MaxModeTooltip {
7 pub fn new(_cx: &mut Context<Self>) -> Self {
8 Self
9 }
10}
11
12impl Render for MaxModeTooltip {
13 fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
14 tooltip_container(_window, cx, |this, _, _| {
15 this.gap_1()
16 .child(
17 h_flex()
18 .gap_1p5()
19 .child(Icon::new(IconName::ZedMaxMode).size(IconSize::Small))
20 .child(Label::new("Zed's Max Mode"))
21 )
22 .child(
23 div()
24 .max_w_72()
25 .child(
26 Label::new("This mode enables models to use large context windows, unlimited tool calls, and other capabilities for expanded reasoning, offering an unfettered agentic experience.")
27 .size(LabelSize::Small)
28 .color(Color::Muted)
29 )
30 )
31 })
32 }
33}