From e5de3c14fc1434da8156e23f5203bd867c5b5a58 Mon Sep 17 00:00:00 2001 From: objz Date: Sat, 10 Jan 2026 14:51:18 +0100 Subject: [PATCH] fix(tui): use content throbber for authenticating state --- src/tui/widgets/content.rs | 21 +++------------------ src/tui/widgets/profiles.rs | 4 ++-- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/src/tui/widgets/content.rs b/src/tui/widgets/content.rs index e1e0bc9..7d6a0ae 100644 --- a/src/tui/widgets/content.rs +++ b/src/tui/widgets/content.rs @@ -311,24 +311,9 @@ pub fn title( let run_state = crate::running::get(&inst.name); match run_state { - Some(RunState::Authenticating) => { - let throbber = Throbber::default() - .label(format!("{} \u{2022} Authenticating", inst.name.as_str())) - .style( - Style::default() - .fg(THEME.colors.foreground) - .add_modifier(Modifier::BOLD), - ) - .throbber_style( - Style::default() - .fg(THEME.colors.accent) - .add_modifier(Modifier::BOLD), - ) - .throbber_set(throbber_widgets_tui::BRAILLE_EIGHT_DOUBLE) - .use_type(throbber_widgets_tui::WhichUse::Spin); - frame.render_stateful_widget(throbber, left_area, throbber_state); - } - Some(RunState::Running) | Some(RunState::Starting) => { + Some(RunState::Authenticating) + | Some(RunState::Running) + | Some(RunState::Starting) => { let throbber = Throbber::default() .label(inst.name.as_str()) .style( diff --git a/src/tui/widgets/profiles.rs b/src/tui/widgets/profiles.rs index e7bd232..c69f0d5 100644 --- a/src/tui/widgets/profiles.rs +++ b/src/tui/widgets/profiles.rs @@ -256,8 +256,8 @@ pub fn render(frame: &mut Frame, area: Rect, focused: FocusedArea, state: &mut S let (meta_text, meta_text_style) = match get_run_state(&instance.name) { Some(RunState::Authenticating) => ( - "Authenticating...".to_string(), - Style::default().fg(THEME.colors.accent), + "Authenticating".to_string(), + Style::default().fg(THEME.colors.success), ), Some(RunState::Running) | Some(RunState::Starting) => ( "Playing".to_string(),