Puzzle / res / edje /

main.edc

  1. /*
  2. * Copyright (c) 2016 Samsung Electronics Co., Ltd
  3. *
  4. * Licensed under the Flora License, Version 1.1 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://floralicense.org/license/
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #include "../../inc/view_defines.h"
  18.  
  19. #define PART_MAIN_BG "bg"
  20. #define PART_MAIN_TITLE_BG "title_bg"
  21. #define PART_MAIN_TITLE "title"
  22. #define PART_MENU_BG "menu_bg"
  23. #define PART_NAVI_BG "navi_bg"
  24. #define PART_POPUP_BG "popup_bg"
  25. #define PART_POPUP_ITEM_1_TEXT "popup_item_1_text"
  26. #define PART_POPUP_ITEM_2_TEXT "popup_item_2_text"
  27.  
  28. collections {
  29. group {
  30. name: GRP_MAIN;
  31. parts {
  32. part {
  33. name: PART_MAIN_BG;
  34. type: RECT;
  35. mouse_events: 0;
  36. description {
  37. state: "default" 0.0;
  38. rel1 { relative: 0.0 0.0; }
  39. rel2 { relative: 1.0 1.0; }
  40. }
  41. }
  42. part {
  43. name: PART_MAIN_TITLE_BG;
  44. type: RECT;
  45. mouse_events: 0;
  46. description{
  47. state: "default" 0.0;
  48. rel1 { relative: 0.0 0.0; }
  49. rel2 { relative: 1.0 0.1; }
  50. color: 20 107 147 255;
  51. }
  52. }
  53. part {
  54. name: PART_MAIN_TITLE;
  55. type: TEXT;
  56. mouse_events: 0;
  57. description{
  58. state: "default" 0.0;
  59. rel1 { relative: 0.0 0.0;}
  60. rel2 { relative: 1.0 0.1;}
  61. text {
  62. font: "Tizen:style = regular";
  63. size: 50;
  64. min: 1 1;
  65. text: "Puzzle";
  66. ellipsis: -1;
  67. }
  68. color: 255 255 255 255;
  69. }
  70. }
  71. part {
  72. name: PART_MAIN_MENU;
  73. type: SWALLOW;
  74. description{
  75. state: "default" 0.0;
  76. rel1 { relative: 0.0 0.1; to: PART_MAIN_BG; }
  77. rel2 { relative: 1.0 0.2; to: PART_MAIN_BG; }
  78. }
  79. }
  80. part {
  81. name: PART_MAIN_PUZZLE;
  82. type: RECT;
  83. description{
  84. state: "default" 0.0;
  85. rel1 { relative: 0.0 0.2; to: PART_MAIN_BG; }
  86. rel2 { relative: 1.0 0.8; to: PART_MAIN_BG; }
  87. }
  88. }
  89. part {
  90. name: PART_MAIN_NAVI;
  91. type: SWALLOW;
  92. description{
  93. state: "default" 0.0;
  94. rel1 { relative: 0.0 0.8; to: PART_MAIN_BG; }
  95. rel2 { relative: 1.0 1.0; to: PART_MAIN_BG; }
  96. }
  97. }
  98. }
  99. }
  100.  
  101. group {
  102. name: GRP_MENU;
  103. parts {
  104. part {
  105. name: PART_MENU_BG;
  106. type: RECT;
  107. mouse_events: 0;
  108. description {
  109. state: "default" 0.0;
  110. rel1 { relative: 0.0 0.0; }
  111. rel2 { relative: 1.0 1.0; }
  112. }
  113. }
  114. part {
  115. name: PART_MENU_ANSWER;
  116. type: SWALLOW;
  117. description{
  118. state: "default" 0.0;
  119. align: 0.0 0.0;
  120. rel1 { relative: 0.1 0.1; to: PART_MENU_BG; }
  121. rel2 { relative: 0.3 0.9; to: PART_MENU_BG; }
  122. }
  123. }
  124. part {
  125. name: PART_MENU_LEVEL;
  126. type: SWALLOW;
  127. description{
  128. state: "default" 0.0;
  129. align: 0.0 0.0;
  130. rel1 { relative: 0.4 0.1; to: PART_MENU_BG; }
  131. rel2 { relative: 0.6 0.9; to: PART_MENU_BG; }
  132. }
  133. }
  134. part {
  135. name: PART_MENU_SHUFFLE;
  136. type: SWALLOW;
  137. description {
  138. state: "default" 0.0;
  139. align: 0.0 0.0;
  140. rel1 { relative: 0.7 0.1; to: PART_MENU_BG; }
  141. rel2 { relative: 0.9 0.9; to: PART_MENU_BG; }
  142. }
  143. }
  144. }
  145. }
  146.  
  147. group {
  148. name: GRP_NAVI;
  149. parts {
  150. part {
  151. name: PART_NAVI_BG;
  152. type: RECT;
  153. mouse_events: 0;
  154. description {
  155. state: "default" 0.0;
  156. rel1 { relative: 0.0 0.0; }
  157. rel2 { relative: 1.0 1.0; }
  158. }
  159. }
  160. part {
  161. name: PART_NAVI_UP;
  162. type: SWALLOW;
  163. description{
  164. state: "default" 0.0;
  165. rel1 { relative: 0.35 0.05; to: PART_NAVI_BG; }
  166. rel2 { relative: 0.65 0.47; to: PART_NAVI_BG; }
  167. }
  168. }
  169. part {
  170. name: PART_NAVI_DOWN;
  171. type: SWALLOW;
  172. description{
  173. state: "default" 0.0;
  174. rel1 { relative: 0.35 0.53; to: PART_NAVI_BG; }
  175. rel2 { relative: 0.65 0.95; to: PART_NAVI_BG; }
  176. }
  177. }
  178. part {
  179. name: PART_NAVI_LEFT;
  180. type: SWALLOW;
  181. description{
  182. state: "default" 0.0;
  183. rel1 { relative: 0.05 0.29; to: PART_NAVI_BG; }
  184. rel2 { relative: 0.30 0.71; to: PART_NAVI_BG; }
  185. }
  186. }
  187. part {
  188. name: PART_NAVI_RIGHT;
  189. type: SWALLOW;
  190. description{
  191. state: "default" 0.0;
  192. rel1 { relative: 0.70 0.29; to: PART_NAVI_BG; }
  193. rel2 { relative: 0.95 0.71; to: PART_NAVI_BG; }
  194. }
  195. }
  196. }
  197. }
  198.  
  199. group {
  200. name: GRP_POPUP;
  201. parts {
  202. part {
  203. name: PART_POPUP_BG;
  204. type: SPACER;
  205. description {
  206. state: "default" 0.0;
  207. min: 480 200;
  208. fixed: 1 0;
  209. }
  210. }
  211. part {
  212. name: PART_POPUP_ITEM_1;
  213. type: SWALLOW;
  214. description {
  215. state: "default" 0.0;
  216. align: 0.0 0.0;
  217. min: 40 40;
  218. fixed: 1 1;
  219. rel1 { relative: 0.0 0.0; to: PART_POPUP_BG; offset: 20 40; }
  220. rel2 { relative: 0.0 0.0; to: PART_POPUP_BG; offset: 20 40; }
  221. }
  222. }
  223. part {
  224. name: PART_POPUP_ITEM_1_TEXT;
  225. type: TEXT;
  226. description {
  227. state: "default" 0.0;
  228. align: 0.0 0.0;
  229. min: 0 40;
  230. fixed: 1 1;
  231. rel1 { relative: 1.0 0.0; to: PART_POPUP_ITEM_1; offset: 20 0; }
  232. rel2 { relative: 1.0 0.0; to: PART_POPUP_ITEM_1; offset: 20 0; }
  233. text {
  234. font: "Tizen:style = regular";
  235. size: 30;
  236. min: 1 1;
  237. text: "4 x 4 Puzzle";
  238. ellipsis: -1;
  239. }
  240. color: 0 0 0 255;
  241. }
  242. }
  243. part {
  244. name: PART_POPUP_ITEM_2;
  245. type: SWALLOW;
  246. description {
  247. state: "default" 0.0;
  248. align: 0.0 0.0;
  249. min: 40 40;
  250. fixed: 1 1;
  251. rel1 { relative: 0.0 1.0; to: PART_POPUP_ITEM_1; offset: 0 40; }
  252. rel2 { relative: 0.0 1.0; to: PART_POPUP_ITEM_1; offset: 0 40; }
  253. }
  254. }
  255. part {
  256. name: PART_POPUP_ITEM_2_TEXT;
  257. type: TEXT;
  258. description {
  259. state: "default" 0.0;
  260. align: 0.0 0.0;
  261. min: 0 40;
  262. fixed: 1 1;
  263. rel1 { relative: 1.0 0.0; to: PART_POPUP_ITEM_2; offset: 20 0; }
  264. rel2 { relative: 1.0 0.0; to: PART_POPUP_ITEM_2; offset: 20 0; }
  265. text {
  266. font: "Tizen:style = regular";
  267. size: 30;
  268. min: 1 1;
  269. text: "5 x 5 Puzzle";
  270. ellipsis: -1;
  271. }
  272. color: 0 0 0 255;
  273. }
  274. }
  275. }
  276. }
  277. }