Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Rename MaxModeTooltip to BurnModeTooltip (#33521)
Umesh Yadav2178f66af67a
diff --git a/crates/agent_ui/src/burn_mode_tooltip.rs b/crates/agent_ui/src/burn_mode_tooltip.rsindex a3100d4367c..6354c07760f 100644--- a/crates/agent_ui/src/burn_mode_tooltip.rs+++ b/crates/agent_ui/src/burn_mode_tooltip.rs@@ -1,11 +1,11 @@use gpui::{Context, FontWeight, IntoElement, Render, Window};use ui::{prelude::*, tooltip_container};-pub struct MaxModeTooltip {+pub struct BurnModeTooltip {selected: bool,}-impl MaxModeTooltip {+impl BurnModeTooltip {pub fn new() -> Self {Self { selected: false }}@@ -16,7 +16,7 @@ impl MaxModeTooltip {}}-impl Render for MaxModeTooltip {+impl Render for BurnModeTooltip {fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {let (icon, color) = if self.selected {(IconName::ZedBurnModeOn, Color::Error)diff --git a/crates/agent_ui/src/text_thread_editor.rs b/crates/agent_ui/src/text_thread_editor.rsindex 49e5e272542..645bc451fcb 100644--- a/crates/agent_ui/src/text_thread_editor.rs+++ b/crates/agent_ui/src/text_thread_editor.rs@@ -1,5 +1,5 @@use crate::{- burn_mode_tooltip::MaxModeTooltip,+ burn_mode_tooltip::BurnModeTooltip,language_model_selector::{LanguageModelSelector, ToggleModelSelector, language_model_selector,},@@ -2107,7 +2107,7 @@ impl TextThreadEditor {});})).tooltip(move |_window, cx| {- cx.new(|_| MaxModeTooltip::new().selected(burn_mode_enabled))+ cx.new(|_| BurnModeTooltip::new().selected(burn_mode_enabled)).into()}).into_any_element(),