diff --git a/ChangeLog.theme b/ChangeLog.theme index 604534f4..7dc1a9ee 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 1de21d14..54ed8c22 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 e7dfa4d1..91c2fc03 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 505aa061..b4ab0cf0 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);