aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/tab-bar/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-03-03 08:20:04 +0100
committerGitHub <noreply@github.com>2026-03-03 08:20:04 +0100
commitf618b0653abc918f9c34b5a4e8a06e4a11745b43 (patch)
treeb2a1cea091bd395fda4843733a081d1c87180823 /default-plugins/tab-bar/src
parentfeat(web): improve web client ui on mobile (#4723) (diff)
downloadsl0ppij-f618b0653abc918f9c34b5a4e8a06e4a11745b43.tar.gz
sl0ppij-f618b0653abc918f9c34b5a4e8a06e4a11745b43.tar.xz
sl0ppij-f618b0653abc918f9c34b5a4e8a06e4a11745b43.zip
Visual indication for terminal bells (#4781)
* initial implementation * rustfmt * allow disabling with config * add missing kdl * add pr * fix tests
Diffstat (limited to 'default-plugins/tab-bar/src')
-rw-r--r--default-plugins/tab-bar/src/tab.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/default-plugins/tab-bar/src/tab.rs b/default-plugins/tab-bar/src/tab.rs
index d3eca295..d211d142 100644
--- a/default-plugins/tab-bar/src/tab.rs
+++ b/default-plugins/tab-bar/src/tab.rs
@@ -42,7 +42,13 @@ pub fn render_tab(
} else {
palette.ribbon_unselected.background
};
- let foreground_color = if tab.active {
+ let foreground_color = if tab.is_flashing_bell {
+ if tab.active {
+ palette.ribbon_selected.emphasis_3
+ } else {
+ palette.ribbon_unselected.emphasis_3
+ }
+ } else if tab.active {
palette.ribbon_selected.base
} else {
palette.ribbon_unselected.base
@@ -102,6 +108,9 @@ pub fn tab_style(
} else if tab.is_sync_panes_active {
tabname.push_str(" (SYNC)");
}
+ if tab.has_bell_notification || tab.is_flashing_bell {
+ tabname.push_str(" [!]");
+ }
// we only color alternate tabs differently if we can't use the arrow fonts to separate them
if !capabilities.arrow_fonts {
is_alternate_tab = false;