diff options
author | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-06-26 23:06:22 +0200 |
---|---|---|
committer | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-06-26 23:11:59 +0200 |
commit | e8dc7fb6fd9096454fa4fcea5c77cd4b06555b76 (patch) | |
tree | aeb029e9f3a4d597f652c4ff6267c8f7ed2bbc57 /data/elementary/objects | |
parent | 7352bcff98fc65a08edcd505b872403af8d821a7 (diff) |
elementary: add test for external icons
The ExtIcon elementary test shows how edje external icons
can be used.
Diffstat (limited to 'data/elementary/objects')
-rw-r--r-- | data/elementary/objects/test_external.edc | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/data/elementary/objects/test_external.edc b/data/elementary/objects/test_external.edc index e30464e857..27802f4047 100644 --- a/data/elementary/objects/test_external.edc +++ b/data/elementary/objects/test_external.edc | |||
@@ -1028,4 +1028,153 @@ embryo script and from C code."; | |||
1028 | } | 1028 | } |
1029 | } | 1029 | } |
1030 | } | 1030 | } |
1031 | group { name: "external/icon"; | ||
1032 | parts { | ||
1033 | COMMON_EXTERNAL_UNDER | ||
1034 | part { name: "icon_1"; type: EXTERNAL; | ||
1035 | source: "elm/icon"; | ||
1036 | clip_to: "clip"; | ||
1037 | description { state: "default" 0.0; | ||
1038 | align: 0.0 0.0; | ||
1039 | min: 64 64; | ||
1040 | max: 64 64; | ||
1041 | fixed: 1 1; | ||
1042 | params { | ||
1043 | string: "icon" "apps"; | ||
1044 | bool: "smooth" 1; | ||
1045 | } | ||
1046 | map { | ||
1047 | on: 1; | ||
1048 | smooth: 1; | ||
1049 | rotation.center: "icon_1"; | ||
1050 | } | ||
1051 | } | ||
1052 | description { state: "rotate" 0.0; | ||
1053 | inherit: "default" 0.0; | ||
1054 | map.rotation.z: 360.0; | ||
1055 | } | ||
1056 | } | ||
1057 | part { name: "icon_3_bg"; type: RECT; | ||
1058 | clip_to: "clip"; | ||
1059 | description { state: "default" 0.0; | ||
1060 | color: 255 0 0 127; | ||
1061 | rel1.relative: 0.0 0.5; | ||
1062 | rel2.relative: 0.5 1.0; | ||
1063 | } | ||
1064 | description { state: "anim" 0.0; | ||
1065 | inherit: "default" 0.0; | ||
1066 | rel1.relative: 0.5 0.5; | ||
1067 | rel2.relative: 0.5 0.5; | ||
1068 | } | ||
1069 | } | ||
1070 | part { name: "icon_3"; type: EXTERNAL; | ||
1071 | source: "elm/icon"; | ||
1072 | clip_to: "clip"; | ||
1073 | description { state: "default" 0.0; | ||
1074 | rel.to: "icon_3_bg"; | ||
1075 | params { | ||
1076 | string: "icon" "refresh"; | ||
1077 | bool: "scale up" 0; | ||
1078 | bool: "scale down" 0; | ||
1079 | } | ||
1080 | } | ||
1081 | } | ||
1082 | part { name: "info3"; type: TEXT; | ||
1083 | description { state: "default" 0.0; | ||
1084 | clip_to: "clip"; | ||
1085 | rel1.relative: 0.0 0.9; | ||
1086 | text { | ||
1087 | text: "ScaleUp:0 ScaleDown:0"; | ||
1088 | size: 10; | ||
1089 | align: 0.0 1.0; | ||
1090 | } | ||
1091 | } | ||
1092 | } | ||
1093 | part { name: "icon_2"; type: EXTERNAL; | ||
1094 | source: "elm/icon"; | ||
1095 | clip_to: "clip"; | ||
1096 | description { state: "default" 0.0; | ||
1097 | rel1.relative: 0.9 0.9; | ||
1098 | align: 0.0 0.0; | ||
1099 | params { | ||
1100 | string: "icon" "clock"; | ||
1101 | bool: "scale up" 1; | ||
1102 | bool: "scale down" 1; | ||
1103 | } | ||
1104 | } | ||
1105 | description { state: "anim" 0.0; | ||
1106 | inherit: "default" 0.0; | ||
1107 | rel1.relative: 0.2 0.2; | ||
1108 | } | ||
1109 | } | ||
1110 | part { name: "info2"; type: TEXT; | ||
1111 | description { state: "default" 0.0; | ||
1112 | clip_to: "clip"; | ||
1113 | rel1.relative: 0.5 0.9; | ||
1114 | text { | ||
1115 | align: 1.0 1.0; | ||
1116 | text: "ScaleUp:1 ScaleDown:1"; | ||
1117 | size: 10; | ||
1118 | } | ||
1119 | } | ||
1120 | } | ||
1121 | part { name: "icon_4"; type: EXTERNAL; | ||
1122 | source: "elm/icon"; | ||
1123 | clip_to: "clip"; | ||
1124 | description { state: "default" 0.0; | ||
1125 | rel1.relative: 0.5 0.0; | ||
1126 | rel2.relative: 1.0 0.5; | ||
1127 | params { | ||
1128 | string: "icon" "starred"; | ||
1129 | } | ||
1130 | } | ||
1131 | } | ||
1132 | COMMON_EXTERNAL_OVER | ||
1133 | } | ||
1134 | |||
1135 | programs { | ||
1136 | COMMON_EXTERNAL_PROGRAM | ||
1137 | program { signal: "elm_test,animations,start"; source: "elm_test"; | ||
1138 | after: "rotate_icon1"; | ||
1139 | after: "animate_icon2"; | ||
1140 | after: "animate_icon3"; | ||
1141 | } | ||
1142 | program { name: "rotate_icon1"; | ||
1143 | action: STATE_SET "rotate" 0.0; | ||
1144 | target: "icon_1"; | ||
1145 | transition: LINEAR 2.0; | ||
1146 | after: "loop_rotate"; | ||
1147 | } | ||
1148 | program { name: "loop_rotate"; | ||
1149 | action: STATE_SET "default" 0.0; | ||
1150 | target: "icon_1"; | ||
1151 | after: "rotate_icon1"; | ||
1152 | } | ||
1153 | program { name: "animate_icon2"; | ||
1154 | action: STATE_SET "anim" 0.0; | ||
1155 | transition: ACCELERATE 4.0; | ||
1156 | target: "icon_2"; | ||
1157 | after: "loop_animate"; | ||
1158 | } | ||
1159 | program { name: "loop_animate"; | ||
1160 | action: STATE_SET "default" 0.0; | ||
1161 | transition: DECELERATE 4.0; | ||
1162 | target: "icon_2"; | ||
1163 | after: "animate_icon2"; | ||
1164 | } | ||
1165 | program { name: "animate_icon3"; | ||
1166 | action: STATE_SET "anim" 0.0; | ||
1167 | transition: ACCELERATE 4.0; | ||
1168 | target: "icon_3_bg"; | ||
1169 | after: "loop_animate3"; | ||
1170 | } | ||
1171 | program { name: "loop_animate3"; | ||
1172 | action: STATE_SET "default" 0.0; | ||
1173 | transition: DECELERATE 4.0; | ||
1174 | target: "icon_3_bg"; | ||
1175 | after: "animate_icon3"; | ||
1176 | } | ||
1177 | |||
1178 | } | ||
1179 | } | ||
1031 | } | 1180 | } |