aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc/elm/focus.edc
diff options
context:
space:
mode:
authorAnand <anand.km@samsung.com>2014-12-15 17:16:18 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-15 17:24:36 +0900
commit57ad32a900e71f83441bf7246671b8f16a8ec909 (patch)
treee68cf66dad20433b830e8459e88faa2a90a35931 /data/themes/edc/elm/focus.edc
parentDnD: fix callbacks call on many DnD operations. (diff)
downloadelementary-57ad32a900e71f83441bf7246671b8f16a8ec909.tar.gz
List: Focus highlight when loop is enable
Summary: Implemented focus highlight feature in list for vertical and horizontal looping @feature Test Plan: elementary_test->"List Focus" & "List Focus Horizontal" Reviewers: singh.amitesh, nirajkr, seoz, eagleeye, raster Subscribers: sachin.dev Differential Revision: https://phab.enlightenment.org/D1216 Conflicts: src/lib/elm_list.c
Diffstat (limited to 'data/themes/edc/elm/focus.edc')
-rw-r--r--data/themes/edc/elm/focus.edc74
1 files changed, 72 insertions, 2 deletions
diff --git a/data/themes/edc/elm/focus.edc b/data/themes/edc/elm/focus.edc
index 37a08b2a7..5c06179b9 100644
--- a/data/themes/edc/elm/focus.edc
+++ b/data/themes/edc/elm/focus.edc
@@ -73,6 +73,16 @@ group { name: "elm/focus_highlight/top/default";
rel1.relative: 0 -1;
rel2.relative: 1 0;
}
+ description { state: "move_left" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: -1 0;
+ rel2.relative: 0 1;
+ }
+ description { state: "move_right" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 1 0;
+ rel2.relative: 2 1;
+ }
}
part { name: "clip"; type: RECT;
scale: 1;
@@ -84,11 +94,19 @@ group { name: "elm/focus_highlight/top/default";
}
description { state: "move_down" 0.0;
inherit: "default" 0.0;
- color: 0 0 0 0;
+ color: 255 255 255 0;
}
description { state: "move_up" 0.0;
inherit: "default" 0.0;
- color: 0 0 0 0 ;
+ color: 255 255 255 0 ;
+ }
+ description { state: "move_left" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 0;
+ }
+ description { state: "move_right" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 0 ;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
@@ -230,5 +248,57 @@ group { name: "elm/focus_highlight/top/default";
target: "base";
target: "clip";
}
+ program { name: "move_left";
+ signal: "elm,action,focus,move,left";
+ source: "elm";
+ transition: LIN 0.3;
+ action: STATE_SET "move_left" 0.0;
+ target: "base";
+ target: "clip";
+ after: "move_left_end";
+ }
+ program { name: "move_left_end";
+ action: SIGNAL_EMIT "elm,focus,move,left,end" "elm";
+ }
+ program { name: "move_right";
+ signal: "elm,action,focus,move,right";
+ source: "elm";
+ transition: LIN 0.3;
+ action: STATE_SET "move_right" 0.0;
+ target: "base";
+ target: "clip";
+ after: "move_right_end";
+ }
+ program { name: "move_right_end";
+ action: SIGNAL_EMIT "elm,focus,move,right,end" "elm";
+ }
+ program { name: "move_home_from_right";
+ signal: "elm,action,focus,move,home,right";
+ source: "elm";
+ action: STATE_SET "move_right" 0.0;
+ target: "base";
+ target: "clip";
+ after: "move_home_from_right2";
+ }
+ program { name: "move_home_from_right2";
+ action: STATE_SET "default" 0.0;
+ transition: LIN 0.3;
+ target: "base";
+ target: "clip";
+ }
+ program { name: "move_home_from_left";
+ signal: "elm,action,focus,move,home,left";
+ source: "elm";
+ action: STATE_SET "move_left" 0.0;
+ target: "base";
+ target: "clip";
+ after: "move_home_from_left2";
+ }
+ program { name: "move_home_from_left2";
+ action: STATE_SET "default" 0.0;
+ transition: LIN 0.3;
+ target: "base";
+ target: "clip";
+ }
}
}