This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch tymux-10-quiet-head
in repository terminology.

View the commit online.

commit 4d2d0907aaa9955849ad243157c2f0a74193ad10
Author: Boris Faure <[email protected]>
AuthorDate: Wed Nov 11 21:32:30 2026 +0000

    win: show the progress of background tabs on the tab bar
    
    A tab that is not shown has its terminal unswallowed, so its progress
    bar is out of sight: a build finishing or failing in another tab went
    unnoticed until switching to it. Its tab bar button now carries a thin
    bar with the same states and colours.
    
    The stripes there never move: they would redraw the window for a tab
    nobody is looking at. Tabs without a tab bar are left for the tab
    selector.
---
 data/themes/default/tabbar_back.edc | 6 ++++++
 src/bin/win.c                       | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/data/themes/default/tabbar_back.edc b/data/themes/default/tabbar_back.edc
index 6ec38b37..90347ce9 100644
--- a/data/themes/default/tabbar_back.edc
+++ b/data/themes/default/tabbar_back.edc
@@ -4,6 +4,11 @@ group { name: "terminology/tabbar_back";
       image { image: "tab_grouped_16.png" COMP; size: 8 8 16 16; }
       image { image: "tab_grouped_32.png" COMP; size: 16 16 99999 99999; }
    }
+   script {
+      PROGRESS_SCRIPT
+      public progress_state_changed() {
+      }
+   }
    parts {
       images.image: "tab_shad_l.png" COMP;
       part { name: "tab_bevel_top1"; mouse_events: 0;
@@ -107,6 +112,7 @@ group { name: "terminology/tabbar_back";
             color_class: "/fg/selected/term/tab/title/text/bell";
          }
       }
+      PROGRESS_BAR("tab_bevel_top2", 2)
       part { name: "clip"; type: RECT;
          description { state: "default" 0.0;
          }
diff --git a/src/bin/win.c b/src/bin/win.c
index ef63f33e..21a062d0 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -3658,6 +3658,8 @@ _tab_inactive_get_or_create(Evas *canvas,
 {
    Evas_Object *o;
    Evas_Coord w, h;
+   const char *signal;
+   double fill;
 
    if (term->tab_inactive)
      {
@@ -3685,6 +3687,8 @@ created:
      edje_object_signal_emit(o, "bell,off", "terminology");
    edje_object_part_text_set(o, "terminology.title",
                              tab_item->tc->title);
+   signal = _term_progress_get(term, &fill);
+   _theme_progress_set(o, signal, fill);
    return o;
 }
 
@@ -5992,6 +5996,8 @@ _term_progress_update(Term *term)
    const char *signal = _term_progress_get(term, &fill);
 
    _theme_progress_set(term->bg_edj, signal, fill);
+   if (term->tab_inactive)
+     _theme_progress_set(term->tab_inactive, signal, fill);
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to