1group { name: "elm/gengrid/item/group_index/default"; 2 inherit: "elm/genlist/item/group_index/default"; 3} 4 5group { name: "elm/gengrid/item/default/default"; 6 data.item: "selectraise" "on"; 7 data.item: "focusraise" "on"; 8 data.item: "texts" "elm.text"; 9 data.item: "contents" "elm.swallow.icon elm.swallow.end"; 10#define IMGP() \ 11 images.image: "bevel_dark_out.png" COMP; \ 12 images.image: "shadow_rounded_horiz.png" COMP; \ 13 images.image: "vgrad_med_dark.png" COMP; \ 14 images.image: "bevel_out.png" COMP; \ 15 images.image: "shine.png" COMP; 16 IMGP() 17 parts { 18//--------------------------------------------------------------------------- 19#define BASEP() \ 20 part { name: "event"; type: RECT; \ 21 description { state: "default" 0.0; \ 22 color: 0 0 0 0; \ 23 } \ 24 description { state: "disabled" 0.0; \ 25 inherit: "default" 0.0; \ 26 visible: 0; \ 27 } \ 28 } \ 29 part { name: "base"; type: RECT; mouse_events: 0; \ 30 description { state: "default" 0.0; \ 31 color: 64 64 64 255; \ 32 color_class: "list_item_base"; \ 33 } \ 34 description { state: "odd" 0.0; \ 35 color: 56 56 56 255; \ 36 color_class: "list_item_base_odd"; \ 37 } \ 38 } \ 39 program { \ 40 signal: "elm,state,odd"; source: "elm"; \ 41 action: STATE_SET "odd" 0.0; \ 42 target: "base"; \ 43 } \ 44 program { \ 45 signal: "elm,state,even"; source: "elm"; \ 46 action: STATE_SET "default" 0.0; \ 47 target: "base"; \ 48 } \ 49 part { name: "bevel"; mouse_events: 0; \ 50 description { state: "default" 0.0; \ 51 image.normal: "bevel_dark_out.png"; \ 52 image.border: 2 2 2 2; \ 53 image.middle: 0; \ 54 fill.smooth: 0; \ 55 } \ 56 } \ 57 part { name: "sel_shadow"; mouse_events: 0; \ 58 description { state: "default" 0.0; \ 59 image.normal: "shadow_rounded_horiz.png"; \ 60 image.border: 0 0 9 9; \ 61 rel1.offset: 0 -4; \ 62 rel2.offset: -1 5; \ 63 fill.smooth: 0; \ 64 visible: 0; \ 65 } \ 66 description { state: "selected" 0.0; \ 67 inherit: "default" 0.0; \ 68 visible: 1; \ 69 } \ 70 } \ 71 part { name: "sel_base"; mouse_events: 0; \ 72 description { state: "default" 0.0; \ 73 image.normal: "vgrad_med_dark.png"; \ 74 fill.smooth: 0; \ 75 visible: 0; \ 76 TILED_HORIZ(120) \ 77 } \ 78 description { state: "selected" 0.0; \ 79 inherit: "default" 0.0; \ 80 visible: 1; \ 81 } \ 82 } \ 83 part { name: "sel_bevel"; mouse_events: 0; \ 84 description { state: "default" 0.0; \ 85 image.normal: "bevel_out.png"; \ 86 image.border: 2 2 2 2; \ 87 image.middle: 0; \ 88 fill.smooth: 0; \ 89 visible: 0; \ 90 } \ 91 description { state: "selected" 0.0; \ 92 inherit: "default" 0.0; \ 93 visible: 1; \ 94 } \ 95 } \ 96 program { \ 97 signal: "elm,state,selected"; source: "elm"; \ 98 action: STATE_SET "selected" 0.0; \ 99 target: "sel_shadow"; \ 100 target: "sel_base"; \ 101 target: "sel_bevel"; \ 102 } \ 103 program { \ 104 signal: "elm,state,unselected"; source: "elm"; \ 105 action: STATE_SET "default" 0.0; \ 106 target: "sel_shadow"; \ 107 target: "sel_base"; \ 108 target: "sel_bevel"; \ 109 } \ 110 program { \ 111 signal: "elm,state,disabled"; source: "elm"; \ 112 action: STATE_SET "disabled" 0.0; \ 113 target: "event"; \ 114 } \ 115 program { \ 116 signal: "elm,state,enabled"; source: "elm"; \ 117 action: STATE_SET "default" 0.0; \ 118 target: "event"; \ 119 } 120#define TOPP() \ 121 part { name: "sel_shine"; mouse_events: 0; \ 122 description { state: "default" 0.0; \ 123 image.normal: "shine.png"; \ 124 rel1.offset: 0 -2; \ 125 rel1.to: "sel_base"; \ 126 rel2.relative: 1.0 0.0; \ 127 rel2.offset: -1 2; \ 128 rel2.to: "sel_base"; \ 129 visible: 0; \ 130 FIXED_SIZE(69, 5) \ 131 } \ 132 description { state: "selected" 0.0; \ 133 inherit: "default" 0.0; \ 134 visible: 1; \ 135 } \ 136 } \ 137 part { name: "event_block"; type: RECT; \ 138 description { state: "default" 0.0; \ 139 color: 0 0 0 0; \ 140 visible: 0; \ 141 } \ 142 description { state: "disabled" 0.0; \ 143 inherit: "default" 0.0; \ 144 visible: 1; \ 145 } \ 146 } \ 147 program { \ 148 signal: "elm,state,selected"; source: "elm"; \ 149 action: STATE_SET "selected" 0.0; \ 150 target: "sel_shine"; \ 151 } \ 152 program { \ 153 signal: "elm,state,unselected"; source: "elm"; \ 154 action: STATE_SET "default" 0.0; \ 155 target: "sel_shine"; \ 156 } \ 157 program { \ 158 signal: "elm,state,disabled"; source: "elm"; \ 159 action: STATE_SET "disabled" 0.0; \ 160 target: "event_block"; \ 161 } \ 162 program { \ 163 signal: "elm,state,enabled"; source: "elm"; \ 164 action: STATE_SET "default" 0.0; \ 165 target: "event_block"; \ 166 } 167//--------------------------------------------------------------------------- 168 BASEP() 169 170 //##// 171 part { name: "elm.text"; type: TEXT; mouse_events: 0; 172 effect: SHADOW BOTTOM; 173 scale: 1; 174 description { state: "default" 0.0; 175 fixed: 0 1; 176 rel1.relative: 0.0 1.0; 177 rel1.offset: 5 -5; 178 rel2.relative: 1.0 1.0; 179 rel2.offset: -5 -5; 180 color: FN_COL_DEFAULT; 181 color_class: "grid_item"; 182 align: 0.5 1.0; 183 text { font: FN; size: 10; 184 min: 0 1; 185 align: 0.5 1.0; 186 text_class: "grid_item"; 187 } 188 } 189 description { state: "selected" 0.0; 190 inherit: "default" 0.0; 191 visible: 0; 192 } 193 description { state: "disabled" 0.0; 194 inherit: "default" 0.0; 195 visible: 0; 196 } 197 } 198 part { name: "label2"; type: TEXT; mouse_events: 0; 199 effect: SHADOW BOTTOM; 200 scale: 1; 201 description { state: "default" 0.0; 202 rel1.to: "elm.text"; 203 rel2.to: "elm.text"; 204 color: FN_COL_DISABLE; 205 color_class: "grid_item_disabled"; 206 text { font: FN; size: 10; 207 text_source: "elm.text"; 208 align: 0.5 1.0; 209 text_class: "grid_item"; 210 } 211 visible: 0; 212 } 213 description { state: "selected" 0.0; 214 inherit: "default" 0.0; 215 visible: 0; 216 } 217 description { state: "disabled" 0.0; 218 inherit: "default" 0.0; 219 visible: 1; 220 } 221 } 222 part { name: "label3"; type: TEXT; mouse_events: 0; 223 effect: GLOW; 224 scale: 1; 225 description { state: "default" 0.0; 226 rel1.offset: -2 -2; 227 rel1.to: "elm.text"; 228 rel2.offset: 1 0; 229 rel2.to: "elm.text"; 230 color: FN_COL_HIGHLIGHT; 231 color_class: "grid_item_selected"; 232 text { font: FN; size: 10; 233 text_source: "elm.text"; 234 align: 0.5 1.0; 235 text_class: "grid_item"; 236 } 237 visible: 0; 238 } 239 description { state: "selected" 0.0; 240 inherit: "default" 0.0; 241 visible: 1; 242 } 243 description { state: "disabled" 0.0; 244 inherit: "default" 0.0; 245 visible: 0; 246 } 247 } 248 program { 249 signal: "elm,state,selected"; source: "elm"; 250 action: STATE_SET "selected" 0.0; 251 target: "elm.text"; 252 target: "label2"; 253 target: "label3"; 254 } 255 program { 256 signal: "elm,state,unselected"; source: "elm"; 257 action: STATE_SET "default" 0.0; 258 target: "elm.text"; 259 target: "label2"; 260 target: "label3"; 261 } 262 program { 263 signal: "elm,state,disabled"; source: "elm"; 264 action: STATE_SET "disabled" 0.0; 265 target: "elm.text"; 266 target: "label2"; 267 target: "label3"; 268 target: "icon_area"; 269 } 270 program { 271 signal: "elm,state,enabled"; source: "elm"; 272 action: STATE_SET "default" 0.0; 273 target: "elm.text"; 274 target: "label2"; 275 target: "label3"; 276 target: "icon_area"; 277 } 278 //##// 279 part { name: "icon_area"; type: RECT; 280 description { state: "default" 0.0; 281 fixed: 1 0; 282 rel1.offset: 2 2; 283 rel2.to_y: "elm.swallow.pad"; 284 rel2.relative: 1.0 0.0; 285 rel2.offset: -3 -3; 286 } 287 description { state: "disabled" 0.0; 288 inherit: "default" 0.0; 289 color: 255 255 255 64; 290 } 291 } 292 part { name: "elm.swallow.pad"; type: SWALLOW; 293 description { state: "default" 0.0; 294 fixed: 0 1; 295 align: 0.0 1.0; 296 rel1.to_y: "elm.text"; 297 rel2.to_y: "elm.text"; 298 rel2.relative: 1.0 0.0; 299 } 300 } 301 part { name: "elm.swallow.icon"; type: SWALLOW; 302 clip_to: "icon_area"; 303 description { state: "default" 0.0; 304 rel1.to: "icon_area"; 305 rel2.to: "icon_area"; 306 } 307 } 308 part { name: "elm.swallow.end"; type: SWALLOW; 309 clip_to: "icon_area"; 310 description { state: "default" 0.0; 311 fixed: 1 1; 312 align: 1.0 0.0; 313 rel1.relative: 1.0 0.0; 314 rel1.offset: -3 2; 315 rel2.relative: 1.0 0.0; 316 rel2.offset: -3 2; 317 } 318 } 319 //##// 320 321 TOPP() 322 } 323} 324 325group { name: "elm/gengrid/item/default_style/default"; 326 data.item: "selectraise" "on"; 327 data.item: "focusraise" "on"; 328 data.item: "texts" "elm.text"; 329 data.item: "contents" "elm.swallow.icon elm.swallow.end"; 330 styles.style { name: "gengrid_style"; 331 base: "font="FN" font_size=10 align=left color=#fff style=shadow,bottom shadow_color=#00000080 text_class=list_item ellipsis=1.0"; 332 tag: "br" "\n"; 333 tag: "ps" "ps"; 334 tag: "hilight" "+ font_weight=Bold"; 335 tag: "b" "+ font_weight=Bold"; 336 tag: "tab" "\t"; 337 } 338 styles.style { name: "gengrid_style_selected"; 339 base: "font="FN" font_size=10 align=left color=#3399ffff style=glow glow_color=#3399ff18 glow2_color=#3399ff12 text_class=list_item_selected ellipsis=1.0"; 340 tag: "br" "\n"; 341 tag: "ps" "ps"; 342 tag: "hilight" "+ font_weight=Bold"; 343 tag: "b" "+ font_weight=Bold"; 344 tag: "tab" "\t"; 345 } 346 styles.style { name: "gengrid_style_disabled"; 347 base: "font="FN" font_size=10 align=left color=#151515 style=shadow,bottom shadow_color=#ffffff19 text_class=list_item ellipsis=1.0"; 348 tag: "br" "\n"; 349 tag: "ps" "ps"; 350 tag: "hilight" "+ font_weight=Bold"; 351 tag: "b" "+ font_weight=Bold"; 352 tag: "tab" "\t"; 353 } 354 355 IMGP() 356 parts { 357 BASEP() 358 359 //##// 360 part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; 361 scale: 1; 362 description { state: "default" 0.0; 363 fixed: 0 1; 364 rel1.relative: 0.0 1.0; 365 rel1.offset: 5 -5; 366 rel2.relative: 1.0 1.0; 367 rel2.offset: -5 -5; 368 color_class: "grid_item"; 369 align: 0.5 1.0; 370 text { 371 min: 0 1; 372 align: 0.5 1.0; 373 text_class: "grid_item"; 374 style: "gengrid_style"; 375 } 376 } 377 description { state: "selected" 0.0; 378 inherit: "default" 0.0; 379 visible: 0; 380 } 381 description { state: "disabled" 0.0; 382 inherit: "default" 0.0; 383 visible: 0; 384 } 385 } 386 part { name: "label2"; type: TEXTBLOCK; mouse_events: 0; 387 scale: 1; 388 description { state: "default" 0.0; 389 rel1.to: "elm.text"; 390 rel2.to: "elm.text"; 391 color_class: "grid_item_disabled"; 392 text { 393 text_source: "elm.text"; 394 align: 0.5 1.0; 395 text_class: "grid_item"; 396 style: "gengrid_style_disabled"; 397 } 398 visible: 0; 399 } 400 description { state: "selected" 0.0; 401 inherit: "default" 0.0; 402 visible: 0; 403 } 404 description { state: "disabled" 0.0; 405 inherit: "default" 0.0; 406 visible: 1; 407 } 408 } 409 part { name: "label3"; type: TEXTBLOCK; mouse_events: 0; 410 scale: 1; 411 description { state: "default" 0.0; 412 rel1.to: "elm.text"; 413 rel2.to: "elm.text"; 414 color_class: "grid_item_selected"; 415 text { 416 text_source: "elm.text"; 417 align: 0.5 1.0; 418 text_class: "grid_item"; 419 style: "gengrid_style_selected"; 420 } 421 visible: 0; 422 } 423 description { state: "selected" 0.0; 424 inherit: "default" 0.0; 425 visible: 1; 426 } 427 description { state: "disabled" 0.0; 428 inherit: "default" 0.0; 429 visible: 0; 430 } 431 } 432 program { 433 signal: "elm,state,selected"; source: "elm"; 434 action: STATE_SET "selected" 0.0; 435 target: "elm.text"; 436 target: "label2"; 437 target: "label3"; 438 } 439 program { 440 signal: "elm,state,unselected"; source: "elm"; 441 action: STATE_SET "default" 0.0; 442 target: "elm.text"; 443 target: "label2"; 444 target: "label3"; 445 } 446 program { 447 signal: "elm,state,disabled"; source: "elm"; 448 action: STATE_SET "disabled" 0.0; 449 target: "elm.text"; 450 target: "label2"; 451 target: "label3"; 452 target: "icon_area"; 453 } 454 program { 455 signal: "elm,state,enabled"; source: "elm"; 456 action: STATE_SET "default" 0.0; 457 target: "elm.text"; 458 target: "label2"; 459 target: "label3"; 460 target: "icon_area"; 461 } 462 //##// 463 part { name: "icon_area"; type: RECT; 464 description { state: "default" 0.0; 465 fixed: 1 0; 466 rel1.offset: 2 2; 467 rel2.to_y: "elm.swallow.pad"; 468 rel2.relative: 1.0 0.0; 469 rel2.offset: -3 -3; 470 } 471 description { state: "disabled" 0.0; 472 inherit: "default" 0.0; 473 color: 255 255 255 64; 474 } 475 } 476 part { name: "elm.swallow.pad"; type: SWALLOW; 477 description { state: "default" 0.0; 478 fixed: 0 1; 479 align: 0.0 1.0; 480 rel1.to_y: "elm.text"; 481 rel2.to_y: "elm.text"; 482 rel2.relative: 1.0 0.0; 483 } 484 } 485 part { name: "elm.swallow.icon"; type: SWALLOW; 486 clip_to: "icon_area"; 487 description { state: "default" 0.0; 488 rel1.to: "icon_area"; 489 rel2.to: "icon_area"; 490 } 491 } 492 part { name: "elm.swallow.end"; type: SWALLOW; 493 clip_to: "icon_area"; 494 description { state: "default" 0.0; 495 fixed: 1 1; 496 align: 1.0 0.0; 497 rel1.relative: 1.0 0.0; 498 rel1.offset: -3 2; 499 rel2.relative: 1.0 0.0; 500 rel2.offset: -3 2; 501 } 502 } 503 //##// 504 505 TOPP() 506 } 507} 508 509group { name: "elm/gengrid/item/up/default"; 510 inherit: "elm/gengrid/item/default/default"; 511 images.image: "icon_arrow_up.png" COMP; 512 parts { 513 part { name: "icon_area"; type: RECT; 514 description { state: "default" 0.0; 515 visible: 0; 516 } 517 } 518 part { name: "up"; 519 insert_after: "elm.swallow.pad"; 520 description { state: "default" 0.0; 521 aspect: 1.0 1.0; aspect_preference: BOTH; 522 rel1.to: "icon_area"; 523 rel2.to: "icon_area"; 524 image.normal: "icon_arrow_up.png"; 525 } 526 } 527 } 528} 529 530group { name: "elm/gengrid/item/album-preview/default"; 531 data.item: "selectraise" "on"; 532 data.item: "focusraise" "on"; 533 data.item: "texts" "elm.text"; 534 data.item: "contents" "elm.swallow.icon.1 elm.swallow.icon.2 elm.swallow.icon.3 elm.swallow.icon.4"; 535 data.item: "states" "have_files"; 536 537 IMGP() 538 images.image: "icon_folder.png" COMP; 539 540 parts { 541 BASEP() 542 543 //##// 544 part { name: "elm.text"; type: TEXT; mouse_events: 0; 545 effect: SHADOW BOTTOM; 546 scale: 1; 547 description { state: "default" 0.0; 548 fixed: 0 1; 549 rel1.relative: 0.0 1.0; 550 rel1.offset: 5 -5; 551 rel2.relative: 1.0 1.0; 552 rel2.offset: -5 -5; 553 color: FN_COL_DEFAULT; 554 color_class: "grid_item"; 555 align: 0.5 1.0; 556 text { font: FN; size: 10; 557 min: 0 1; 558 align: 0.5 1.0; 559 text_class: "grid_item"; 560 } 561 } 562 description { state: "selected" 0.0; 563 inherit: "default" 0.0; 564 visible: 0; 565 } 566 description { state: "disabled" 0.0; 567 inherit: "default" 0.0; 568 visible: 0; 569 } 570 } 571 part { name: "label2"; type: TEXT; mouse_events: 0; 572 effect: SHADOW BOTTOM; 573 scale: 1; 574 description { state: "default" 0.0; 575 rel1.to: "elm.text"; 576 rel2.to: "elm.text"; 577 color: FN_COL_DISABLE; 578 color_class: "grid_item_disabled"; 579 text { font: FN; size: 10; 580 text_source: "elm.text"; 581 align: 0.5 1.0; 582 text_class: "grid_item"; 583 } 584 visible: 0; 585 } 586 description { state: "selected" 0.0; 587 inherit: "default" 0.0; 588 visible: 0; 589 } 590 description { state: "disabled" 0.0; 591 inherit: "default" 0.0; 592 visible: 1; 593 } 594 } 595 part { name: "label3"; type: TEXT; mouse_events: 0; 596 effect: GLOW; 597 scale: 1; 598 description { state: "default" 0.0; 599 rel1.offset: -2 -2; 600 rel1.to: "elm.text"; 601 rel2.offset: 1 0; 602 rel2.to: "elm.text"; 603 color: FN_COL_HIGHLIGHT; 604 color_class: "grid_item_selected"; 605 text { font: FN; size: 10; 606 text_source: "elm.text"; 607 align: 0.5 1.0; 608 text_class: "grid_item"; 609 } 610 visible: 0; 611 } 612 description { state: "selected" 0.0; 613 inherit: "default" 0.0; 614 visible: 1; 615 } 616 description { state: "disabled" 0.0; 617 inherit: "default" 0.0; 618 visible: 0; 619 } 620 } 621 program { 622 signal: "elm,state,selected"; source: "elm"; 623 action: STATE_SET "selected" 0.0; 624 target: "elm.text"; 625 target: "label2"; 626 target: "label3"; 627 } 628 program { 629 signal: "elm,state,unselected"; source: "elm"; 630 action: STATE_SET "default" 0.0; 631 target: "elm.text"; 632 target: "label2"; 633 target: "label3"; 634 } 635 program { 636 signal: "elm,state,disabled"; source: "elm"; 637 action: STATE_SET "disabled" 0.0; 638 target: "elm.text"; 639 target: "label2"; 640 target: "label3"; 641 target: "icon_area"; 642 } 643 program { 644 signal: "elm,state,enabled"; source: "elm"; 645 action: STATE_SET "default" 0.0; 646 target: "elm.text"; 647 target: "label2"; 648 target: "label3"; 649 target: "icon_area"; 650 } 651 //##// 652 part { name: "icon_area"; type: RECT; 653 description { state: "default" 0.0; 654 fixed: 1 0; 655 rel1.offset: 2 2; 656 rel2.to_y: "elm.swallow.pad"; 657 rel2.relative: 1.0 0.0; 658 rel2.offset: -3 -3; 659 visible: 0; 660 } 661 description { state: "visible" 0.0; 662 inherit: "default" 0.0; 663 visible: 1; 664 } 665 description { state: "disabled" 0.0; 666 inherit: "default" 0.0; 667 color: 255 255 255 64; 668 } 669 } 670 program { 671 signal: "elm,state,have_files,active"; source: "elm"; 672 action: STATE_SET "visible" 0.0; 673 target: "icon_area"; 674 } 675 part { name: "icon_area2"; type: SPACER; 676 description { state: "default" 0.0; 677 rel1.to: "icon_area"; 678 rel1.relative: 0.3 0.3; 679 rel2.to: "icon_area"; 680 rel2.relative: 0.7 0.7; 681 } 682 } 683 part { name: "folder"; 684 insert_after: "elm.swallow.pad"; 685 description { state: "default" 0.0; 686 aspect: 1.0 1.0; aspect_preference: BOTH; 687 rel1.to: "icon_area"; 688 rel2.to: "icon_area"; 689 image.normal: "icon_folder.png"; 690 } 691 } 692 part { name: "elm.swallow.pad"; type: SWALLOW; 693 description { state: "default" 0.0; 694 fixed: 0 1; 695 align: 0.0 1.0; 696 rel1.to_y: "elm.text"; 697 rel2.to_y: "elm.text"; 698 rel2.relative: 1.0 0.0; 699 } 700 } 701 part { name: "elm.swallow.icon.1"; type: SWALLOW; mouse_events: 0; 702 clip_to: "icon_area"; 703 description { state: "default" 0.0; 704 rel1.to: "icon_area2"; 705 rel1.relative: 0.0 0.0; 706 rel2.to: "icon_area2"; 707 rel2.relative: 0.5 0.5; 708 } 709 } 710 part { name: "elm.swallow.icon.2"; type: SWALLOW; mouse_events: 0; 711 clip_to: "icon_area"; 712 description { state: "default" 0.0; 713 rel1.to: "icon_area2"; 714 rel1.relative: 0.5 0.0; 715 rel2.to: "icon_area2"; 716 rel2.relative: 1.0 0.5; 717 } 718 } 719 part { name: "elm.swallow.icon.3"; type: SWALLOW; mouse_events: 0; 720 clip_to: "icon_area"; 721 description { state: "default" 0.0; 722 rel1.to: "icon_area2"; 723 rel1.relative: 0.0 0.5; 724 rel2.to: "icon_area2"; 725 rel2.relative: 0.5 1.0; 726 } 727 } 728 part { name: "elm.swallow.icon.4"; type: SWALLOW; mouse_events: 0; 729 clip_to: "icon_area"; 730 description { state: "default" 0.0; 731 rel1.to: "icon_area2"; 732 rel1.relative: 0.5 0.5; 733 rel2.to: "icon_area2"; 734 rel2.relative: 1.0 1.0; 735 } 736 } 737 //##// 738 739 TOPP() 740 } 741} 742 743group { name: "elm/gengrid/item/thumb/default"; 744 data.item: "selectraise" "on"; 745 data.item: "focusraise" "on"; 746 data.item: "texts" "elm.text"; 747 data.item: "contents" "elm.swallow.icon elm.swallow.end"; 748 749 images.image: "win_shadow.png" COMP; 750 images.image: "win_glow.png" COMP; 751 parts { 752 753 part { name: "shadow"; mouse_events: 0; 754 description { state: "default" 0.0; 755 image.normal: "win_shadow.png"; 756 image.border: 14 14 14 14; 757 image.middle: 0; 758 rel1.to: "base"; 759 rel1.offset: -7 -3; 760 rel2.to: "base"; 761 rel2.offset: 6 11; 762 fill.smooth: 0; 763 } 764 } 765 part { name: "glow"; mouse_events: 0; 766 description { state: "default" 0.0; 767 image.normal: "win_glow.png"; 768 image.border: 9 9 9 9; 769 image.middle: 0; 770 rel1.offset: -5 -5; 771 rel1.to: "base"; 772 rel2.offset: 4 4; 773 rel2.to: "base"; 774 fill.smooth: 0; 775 color: 255 255 255 0; 776 visible: 0; 777 } 778 description { state: "selected" 0.0; 779 inherit: "default" 0.0; 780 color: 255 255 255 255; 781 visible: 1; 782 } 783 } 784 part { name: "base"; type: RECT; 785 description { state: "default" 0.0; 786 rel1.offset: -4 -4; 787 rel1.to: "icon_area"; 788 rel2.offset: 3 3; 789 rel2.to: "icon_area"; 790 color: 255 255 255 255; 791 } 792 description { state: "selected" 0.0; 793 inherit: "default" 0.0; 794 color: 48 48 48 255; 795 } 796 description { state: "disabled" 0.0; 797 inherit: "default" 0.0; 798 color: 64 64 64 255; 799 } 800 } 801 program { 802 signal: "elm,state,selected"; source: "elm"; 803 action: STATE_SET "selected" 0.0; 804 target: "base"; 805 target: "glow"; 806 } 807 program { 808 signal: "elm,state,unselected"; source: "elm"; 809 action: STATE_SET "default" 0.0; 810 target: "base"; 811 target: "glow"; 812 } 813 program { 814 signal: "elm,state,disabled"; source: "elm"; 815 action: STATE_SET "disabled" 0.0; 816 target: "base"; 817 target: "icon_area"; 818 } 819 program { 820 signal: "elm,state,enabled"; source: "elm"; 821 action: STATE_SET "default" 0.0; 822 target: "base"; 823 target: "icon_area"; 824 } 825 826 //##// 827 part { name: "elm.text"; type: TEXT; mouse_events: 0; 828 effect: SHADOW BOTTOM; 829 scale: 1; 830 description { state: "default" 0.0; 831 fixed: 0 1; 832 rel1.relative: 0.0 1.0; 833 rel1.offset: 5 -5; 834 rel2.relative: 1.0 1.0; 835 rel2.offset: -5 -5; 836 color: FN_COL_DEFAULT; 837 color_class: "grid_item"; 838 align: 0.5 1.0; 839 text { font: FN; size: 10; 840 min: 0 1; 841 align: 0.5 1.0; 842 text_class: "grid_item"; 843 } 844 } 845 description { state: "selected" 0.0; 846 inherit: "default" 0.0; 847 visible: 0; 848 } 849 description { state: "disabled" 0.0; 850 inherit: "default" 0.0; 851 visible: 0; 852 } 853 } 854 part { name: "label2"; type: TEXT; mouse_events: 0; 855 effect: SHADOW BOTTOM; 856 scale: 1; 857 description { state: "default" 0.0; 858 rel1.to: "elm.text"; 859 rel2.to: "elm.text"; 860 color: FN_COL_DISABLE; 861 color_class: "grid_item_disabled"; 862 text { font: FN; size: 10; 863 text_source: "elm.text"; 864 align: 0.5 1.0; 865 text_class: "grid_item"; 866 } 867 visible: 0; 868 } 869 description { state: "selected" 0.0; 870 inherit: "default" 0.0; 871 visible: 0; 872 } 873 description { state: "disabled" 0.0; 874 inherit: "default" 0.0; 875 visible: 1; 876 } 877 } 878 part { name: "label3"; type: TEXT; mouse_events: 0; 879 effect: GLOW; 880 scale: 1; 881 description { state: "default" 0.0; 882 rel1.offset: -2 -2; 883 rel1.to: "elm.text"; 884 rel2.offset: 1 0; 885 rel2.to: "elm.text"; 886 color: FN_COL_HIGHLIGHT; 887 color_class: "grid_item_selected"; 888 text { font: FN; size: 10; 889 text_source: "elm.text"; 890 align: 0.5 1.0; 891 text_class: "grid_item"; 892 } 893 visible: 0; 894 } 895 description { state: "selected" 0.0; 896 inherit: "default" 0.0; 897 visible: 1; 898 } 899 description { state: "disabled" 0.0; 900 inherit: "default" 0.0; 901 visible: 0; 902 } 903 } 904 program { 905 signal: "elm,state,selected"; source: "elm"; 906 action: STATE_SET "selected" 0.0; 907 target: "elm.text"; 908 target: "label2"; 909 target: "label3"; 910 } 911 program { 912 signal: "elm,state,unselected"; source: "elm"; 913 action: STATE_SET "default" 0.0; 914 target: "elm.text"; 915 target: "label2"; 916 target: "label3"; 917 } 918 program { 919 signal: "elm,state,disabled"; source: "elm"; 920 action: STATE_SET "disabled" 0.0; 921 target: "elm.text"; 922 target: "label2"; 923 target: "label3"; 924 } 925 program { 926 signal: "elm,state,enabled"; source: "elm"; 927 action: STATE_SET "default" 0.0; 928 target: "elm.text"; 929 target: "label2"; 930 target: "label3"; 931 } 932 //##// 933 part { name: "icon_area"; type: RECT; 934 description { state: "default" 0.0; 935 fixed: 1 0; 936 aspect: 1.0 1.0; aspect_preference: BOTH; 937 rel1.offset: 12 12; 938 rel2.to_y: "elm.swallow.pad"; 939 rel2.relative: 1.0 0.0; 940 rel2.offset: -13 -13; 941 } 942 description { state: "disabled" 0.0; 943 inherit: "default" 0.0; 944 color: 255 255 255 64; 945 } 946 } 947 part { name: "elm.swallow.pad"; type: SWALLOW; 948 description { state: "default" 0.0; 949 fixed: 0 1; 950 align: 0.0 1.0; 951 rel1.to_y: "elm.text"; 952 rel2.to_y: "elm.text"; 953 rel2.relative: 1.0 0.0; 954 } 955 } 956 part { name: "elm.swallow.icon"; type: SWALLOW; 957 clip_to: "icon_area"; 958 description { state: "default" 0.0; 959 rel1.to: "icon_area"; 960 rel2.to: "icon_area"; 961 } 962 } 963 part { name: "elm.swallow.end"; type: SWALLOW; 964 clip_to: "icon_area"; 965 description { state: "default" 0.0; 966 fixed: 1 1; 967 align: 1.0 0.0; 968 rel1.relative: 1.0 0.0; 969 rel1.offset: -3 2; 970 rel2.relative: 1.0 0.0; 971 rel2.offset: -3 2; 972 } 973 } 974 } 975} 976#undef IMGP 977#undef BASEP 978#undef TOPP 979