diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 22:08:04 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 22:08:04 +0300 |
| commit | c584037c77c63f6a08f8837f357c89432b8043e7 (patch) | |
| tree | 16647d6628a11dbbf5e576fb86f2a87b507e202e /src/ui/settings.rs | |
| parent | f7b26a911772dab16a49d982002d2bbe58e0956b (diff) | |
feat: badge outdated integration updates
Diffstat (limited to 'src/ui/settings.rs')
| -rw-r--r-- | src/ui/settings.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ui/settings.rs b/src/ui/settings.rs index c191eef2..f104c882 100644 --- a/src/ui/settings.rs +++ b/src/ui/settings.rs @@ -48,7 +48,20 @@ pub(super) fn render_settings_overlay(app: &AppState, frame: &mut Frame, area: R header_rows[0], ); - let tabs = Tabs::new(SettingsSection::ALL.iter().map(|s| s.label())) + let tab_labels = SettingsSection::ALL.iter().map(|section| { + if app.settings_section_has_badge(*section) { + Line::from(vec![ + Span::styled( + "● ", + Style::default().fg(p.accent).add_modifier(Modifier::BOLD), + ), + Span::raw(section.label()), + ]) + } else { + Line::from(section.label()) + } + }); + let tabs = Tabs::new(tab_labels) .select( SettingsSection::ALL .iter() |
