summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorcodewarrior <codewarrior>2005-10-10 10:14:49 +0000
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-10-10 10:14:49 +0000
commit6532ab7362bdbd9688ea1afeaa35efcfac242e05 (patch)
tree6aaec3333b06a4c981b0fd9c42fa4b9797914be0 /data
parent8c07c1f5d347f073ce0649fa5c367e0f7b0b9bf5 (diff)
- Start working on selections.
- Add ability to have different icon states when they are clicked or higlighted. SVN revision: 17381
Diffstat (limited to 'data')
-rw-r--r--data/themes/default_fileman.edc58
-rw-r--r--data/themes/images/e17_icon_fileman_folder_clicked.pngbin0 -> 3382 bytes
2 files changed, 49 insertions, 9 deletions
diff --git a/data/themes/default_fileman.edc b/data/themes/default_fileman.edc
index 4263c2f1a..e963d08ec 100644
--- a/data/themes/default_fileman.edc
+++ b/data/themes/default_fileman.edc
@@ -41,11 +41,56 @@ group { \
41 } \ 41 } \
42 } \ 42 } \
43} \ 43} \
44
45#define FILEMAN_ICON_CLICKABLE(TYPE) \
46group { \
47 name: "fileman/icons/"TYPE; \
48 max: 64 64; \
49 parts { \
50 part { \
51 name: "icon"; \
52 mouse_events: 0; \
53 description { \
54 state: "default" 0.0; \
55 aspect: 1.0 1.0; \
56 max: 64 64; \
57 image { \
58 normal: "e17_icon_fileman_"TYPE".png"; \
59 } \
60 } \
61 description { \
62 state: "clicked" 0.0; \
63 aspect: 1.0 1.0; \
64 max: 64 64; \
65 image { \
66 normal: "e17_icon_fileman_"TYPE"_clicked.png"; \
67 } \
68 } \
69 } \
70 } \
71 programs { \
72 program { \
73 name: "clicked"; \
74 signal: "clicked"; \
75 source: ""; \
76 action: STATE_SET "clicked" 0.0; \
77 target: "icon"; \
78 } \
79 program { \
80 name: "unclicked"; \
81 signal: "unclicked"; \
82 source: ""; \
83 action: STATE_SET "default" 0.0; \
84 target: "icon"; \
85 } \
86 } \
87} \
44 88
45images 89images
46{ 90{
47 image: "e17_fileman_bg.png" COMP; 91 image: "e17_fileman_bg.png" COMP;
48 image: "e17_icon_fileman_folder.png" COMP; 92 image: "e17_icon_fileman_folder.png" COMP;
93 image: "e17_icon_fileman_folder_clicked.png" COMP;
49 image: "e17_icon_fileman_file.png" COMP; 94 image: "e17_icon_fileman_file.png" COMP;
50 image: "e17_icon_fileman_pdf.png" COMP; 95 image: "e17_icon_fileman_pdf.png" COMP;
51 image: "e17_icon_fileman_c.png" COMP; 96 image: "e17_icon_fileman_c.png" COMP;
@@ -219,10 +264,6 @@ group {
219 name: "icon_swallow"; 264 name: "icon_swallow";
220 type: SWALLOW; 265 type: SWALLOW;
221 mouse_events: 1; 266 mouse_events: 1;
222 dragable {
223 x: 1 1 0;
224 y: 1 1 0;
225 }
226 description { 267 description {
227 min: 48 48; 268 min: 48 48;
228 max: 128 128; 269 max: 128 128;
@@ -238,7 +279,6 @@ group {
238 color: 0 0 0 255; 279 color: 0 0 0 255;
239 } 280 }
240 } 281 }
241
242 part { 282 part {
243 name: "icon_title"; 283 name: "icon_title";
244 type: TEXT; 284 type: TEXT;
@@ -307,10 +347,10 @@ group {
307 program { 347 program {
308 name: "button_click"; 348 name: "button_click";
309 signal: "mouse,down,1"; 349 signal: "mouse,down,1";
310 source: "icon_event"; 350 source: "";
311 action: SIGNAL_EMIT "clicked" ""; 351 action: SIGNAL_EMIT "clicked" "";
312 } 352 }
313 } 353 }
314} 354}
315 355
316 356
@@ -482,7 +522,7 @@ group {
482} 522}
483 523
484 524
485FILEMAN_ICON("folder"); 525FILEMAN_ICON_CLICKABLE("folder");
486FILEMAN_ICON("file"); 526FILEMAN_ICON("file");
487FILEMAN_ICON("pdf"); 527FILEMAN_ICON("pdf");
488FILEMAN_ICON("c"); 528FILEMAN_ICON("c");
diff --git a/data/themes/images/e17_icon_fileman_folder_clicked.png b/data/themes/images/e17_icon_fileman_folder_clicked.png
new file mode 100644
index 000000000..6f9fb0db8
--- /dev/null
+++ b/data/themes/images/e17_icon_fileman_folder_clicked.png
Binary files differ