This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tymux
in repository terminology.
View the commit online.
commit 51a3d19959723411beb9f897443a8b974b678e1e
Author: [email protected] <[email protected]>
AuthorDate: Thu Mar 19 12:24:40 2026 -0600
feat: show tymux indicator in tab selector and reduce to 1px
Add a tymux_indicator part to the terminology/sel/item theme group
so the green bar is visible on tab thumbnails during the tab selector
animation. Pass the tymux_session flag through sel_entry_add to emit
the tymux,on signal on each selector entry.
Also reduce the background indicator from 2px to 1px as requested.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
data/themes/default/background.edc | 8 ++++----
data/themes/default/sel.edc | 31 +++++++++++++++++++++++++++++++
src/bin/sel.c | 8 +++++++-
src/bin/sel.h | 2 +-
src/bin/win.c | 8 +++++++-
5 files changed, 50 insertions(+), 7 deletions(-)
diff --git a/data/themes/default/background.edc b/data/themes/default/background.edc
index fc09c292..fdfa8d82 100644
--- a/data/themes/default/background.edc
+++ b/data/themes/default/background.edc
@@ -1593,8 +1593,8 @@ group { name: "terminology/background";
description { state: "default" 0.0;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 0.0 1.0; }
- min: 2 0;
- max: 2 -1;
+ min: 1 0;
+ max: 1 -1;
fixed: 1 0;
align: 0.0 0.5;
color: 0 0 0 0;
@@ -1603,8 +1603,8 @@ group { name: "terminology/background";
description { state: "on" 0.0;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 0.0 1.0; }
- min: 2 0;
- max: 2 -1;
+ min: 1 0;
+ max: 1 -1;
fixed: 1 0;
align: 0.0 0.5;
color_class: ":tymux-indicator";
diff --git a/data/themes/default/sel.edc b/data/themes/default/sel.edc
index b4908519..c2781f00 100644
--- a/data/themes/default/sel.edc
+++ b/data/themes/default/sel.edc
@@ -256,6 +256,37 @@ group { name: "terminology/sel/item";
color: 255 255 255 255;
}
}
+ ////////////////////////////////////////////////////////////////////
+ // tymux session indicator — 2px green bar on left edge
+ part { name: "tymux_indicator"; type: RECT; mouse_events: 0;
+ clip_to: "clip";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "terminology.content"; }
+ rel2 { relative: 0.0 1.0; to: "terminology.content"; }
+ min: 2 0;
+ max: 2 -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "on" 0.0;
+ rel1 { relative: 0.0 0.0; to: "terminology.content"; }
+ rel2 { relative: 0.0 1.0; to: "terminology.content"; }
+ min: 2 0;
+ max: 2 -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ color_class: ":tymux-indicator";
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ }
+ program { signal: "tymux,on"; source: "terminology";
+ action: STATE_SET "on" 0.0;
+ target: "tymux_indicator";
+ }
+
program { signal: "bell"; source: "terminology";
action: STATE_SET "visible" 0.0;
target: "bell";
diff --git a/src/bin/sel.c b/src/bin/sel.c
index febe5987..e6fa39b8 100644
--- a/src/bin/sel.c
+++ b/src/bin/sel.c
@@ -720,7 +720,8 @@ sel_add(Evas_Object *parent)
void *
sel_entry_add(Evas_Object *obj, Evas_Object *entry,
- Eina_Bool selected, Eina_Bool bell, Config *config)
+ Eina_Bool selected, Eina_Bool bell,
+ Eina_Bool is_tymux, Config *config)
{
Sel *sd = evas_object_smart_data_get(obj);
Entry *en = calloc(1, sizeof(Entry));
@@ -753,6 +754,11 @@ sel_entry_add(Evas_Object *obj, Evas_Object *entry,
edje_object_message_signal_process(en->bg);
}
+ if (is_tymux)
+ {
+ edje_object_signal_emit(en->bg, "tymux,on", "terminology");
+ edje_object_message_signal_process(en->bg);
+ }
sd->interp = 1.0;
en->tc = evas_object_data_get(en->obj, "tc");
if (en->tc)
diff --git a/src/bin/sel.h b/src/bin/sel.h
index ff8acf6f..0a811de7 100644
--- a/src/bin/sel.h
+++ b/src/bin/sel.h
@@ -4,7 +4,7 @@
#include "config.h"
Evas_Object *sel_add(Evas_Object *parent);
-void *sel_entry_add(Evas_Object *obj, Evas_Object *entry, Eina_Bool selected, Eina_Bool bell, Config *config);
+void *sel_entry_add(Evas_Object *obj, Evas_Object *entry, Eina_Bool selected, Eina_Bool bell, Eina_Bool is_tymux, Config *config);
void sel_entry_title_set(void *entry, const char *title);
void sel_entry_close(void *entry);
void sel_entry_update(void *entry);
diff --git a/src/bin/win.c b/src/bin/win.c
index 49adce99..af731e08 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -4499,7 +4499,13 @@ _cb_tab_selector_show(Tabs *tabs, Tab_Item *to_item)
tab_item->selector_entry = NULL;
tab_item->selector_entry = sel_entry_add(tabs->selector, img,
is_selected,
- missed_bell, wn->config);
+ missed_bell,
+#ifdef HAVE_TYMUX
+ term->tymux_session,
+#else
+ EINA_FALSE,
+#endif
+ wn->config);
}
edje_object_part_swallow(tabs->selector_bg, "terminology.content",
tabs->selector);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.