billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=ee2c3e5ae963e64629b09aaca8b1f4deed6a7838

commit ee2c3e5ae963e64629b09aaca8b1f4deed6a7838
Author: Boris Faure <[email protected]>
Date:   Sat Feb 8 18:29:01 2020 +0100

    theme: add active style to tabbar_back when tab is being dragged
---
 ChangeLog.theme                     |  2 ++
 THEME.md                            |  2 ++
 data/themes/default/tabbar_back.edc | 39 ++++++++++++++++++++++++-------------
 src/bin/win.c                       |  1 +
 4 files changed, 30 insertions(+), 14 deletions(-)

diff --git a/ChangeLog.theme b/ChangeLog.theme
index 604534f..7dc1a9e 100644
--- a/ChangeLog.theme
+++ b/ChangeLog.theme
@@ -6,6 +6,8 @@ Changes since 1.6.0:
 --------------------
   * In group "terminology/tabbar_back", add signal "bell,off" from 
"terminology"
   to unmark a tab as having missed the bell.
+  * In group "terminology/tabbar_back", add signal "style,active" from 
"terminology"
+  to set style as active, used during tab drag and drop.
   * In group "terminology/background", add signals "hdrag,on" (default) and
   "hdrag,off" to restrict (default) tab to be dragged only horizontally
   * In group "terminology/background", signals "tab,mouse,down" and
diff --git a/THEME.md b/THEME.md
index 1de21d1..54ed8c2 100644
--- a/THEME.md
+++ b/THEME.md
@@ -134,6 +134,8 @@ When clicked on it, to notify that the user wants to go to 
that tab.
 To mark the tab as having missed a bell.
 ### `bell,off`
 To unmark the tab as having missed a bell.
+### `style,active`
+To set the style as active, used during tab drag and drop.
 
 
 
diff --git a/data/themes/default/tabbar_back.edc 
b/data/themes/default/tabbar_back.edc
index e7dfa4d..91c2fc0 100644
--- a/data/themes/default/tabbar_back.edc
+++ b/data/themes/default/tabbar_back.edc
@@ -127,6 +127,11 @@ group { name: "terminology/tabbar_back";
             color2: 255 51 0 48;
             color3: 255 51 0 8;
          }
+         description { state: "active" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+            color3: 0 0 0 18;
+         }
       }
       part { name: "clip"; type: RECT;
          description { state: "default" 0.0;
@@ -138,20 +143,26 @@ group { name: "terminology/tabbar_back";
             color: 0 0 0 0;
          }
       }
-      program {
-         signal: "mouse,clicked,1"; source: "event";
-         action: SIGNAL_EMIT "tab,activate" "terminology";
-      }
-      program { name: "bell";
-         signal: "bell"; source: "terminology";
-         action: STATE_SET "bell" 0.0;
-         target: "terminology.title";
-      }
-      program { name: "bell,off";
-         signal: "bell,off"; source: "terminology";
-         action: STATE_SET "default" 0.0;
-         target: "terminology.title";
+      programs {
+         program {
+            signal: "mouse,clicked,1"; source: "event";
+            action: SIGNAL_EMIT "tab,activate" "terminology";
+         }
+         program { name: "bell";
+            signal: "bell"; source: "terminology";
+            action: STATE_SET "bell" 0.0;
+            target: "terminology.title";
+         }
+         program { name: "bell,off";
+            signal: "bell,off"; source: "terminology";
+            action: STATE_SET "default" 0.0;
+            target: "terminology.title";
+         }
+         program { name: "style,active";
+            signal: "style,active"; source: "terminology";
+            action: STATE_SET "active" 0.0;
+            target: "terminology.title";
+         }
       }
    }
 }
-
diff --git a/src/bin/win.c b/src/bin/win.c
index 505aa06..b4ab0cf 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -3223,6 +3223,7 @@ _drag_anim_start(void *data)
    theme_apply_elm(o, term->config, "terminology/tabbar_back");
    elm_layout_text_set(o, "terminology.title",
                        term->container->title);
+   elm_layout_signal_emit(o, "style,active", "terminology");
 
    for_each_term_do(drag_anim->term->wn, &_term_hdrag_off, NULL);
 

-- 


Reply via email to