agent_ui: Rename MaxModeTooltip to BurnModeTooltip (#33521)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
338a7395a7
commit
2178f66af6
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue