diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-04 17:26:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-04 17:26:30 +0300 |
| commit | cc9fa47540d8525f24fe46a10f759ca40090a6e0 (patch) | |
| tree | ef6979a7d5168952dc2de8d7a68e42b3ad69c45b /src/ui/settings.rs | |
| parent | 4473e391962c68d59bd980fa98a44f3397d9931d (diff) | |
feat(ui): add distinct status indicators (#2282)
refs #2260
Diffstat (limited to 'src/ui/settings.rs')
| -rw-r--r-- | src/ui/settings.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/ui/settings.rs b/src/ui/settings.rs index 5052c91c..3cea6da3 100644 --- a/src/ui/settings.rs +++ b/src/ui/settings.rs @@ -12,7 +12,7 @@ use super::widgets::{ }; use crate::{ app::{state::Palette, AppState}, - config::ToastDelivery, + config::{StatusIndicatorStyle, ToastDelivery}, }; pub(crate) const SETTINGS_POPUP_WIDTH: u16 = 76; @@ -106,6 +106,22 @@ pub(super) fn render_settings_overlay(app: &AppState, frame: &mut Frame, area: R SettingsSection::Theme => { render_settings_theme(app, frame, content_area); } + SettingsSection::Indicators => { + render_modal_choice_list( + frame, + content_area, + "agent status indicators", + "choose color dots or distinct symbols for each state", + &[ + ("color dots ● ● ● ○ ·", StatusIndicatorStyle::Dots), + ("distinct symbols × ◐ ✓ ○ ·", StatusIndicatorStyle::Symbols), + ], + app.status_indicators, + app.settings.list.selected, + p, + 1, + ); + } SettingsSection::Sound => { render_settings_toggle( frame, |
