summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-01-23 14:25:48 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-10-05 12:50:20 +0200
commit9eff1557923fa1679b41545139933c0764f9ad43 (patch)
treeef9e9b861676d41fa97a7e3dfcfbf0b0bb421a87
parent9cb5478b9c8afa5a054ed53811642c52b3345a0c (diff)
theme: Added a new button style
Button looking like a arrow
-rw-r--r--data/themes/edc/elm/button.edc100
1 files changed, 100 insertions, 0 deletions
diff --git a/data/themes/edc/elm/button.edc b/data/themes/edc/elm/button.edc
index c1712873f..57e80329e 100644
--- a/data/themes/edc/elm/button.edc
+++ b/data/themes/edc/elm/button.edc
@@ -1631,3 +1631,103 @@ group { name: "elm/button/base/hoversel_horizontal_entry/default";
1631 } 1631 }
1632 } 1632 }
1633/******************* SPINNER BUTTONS STYLES END **********************/ 1633/******************* SPINNER BUTTONS STYLES END **********************/
1634group { name: "elm/button/base/navlink";
1635 images.image: "horizontal_separated_bar_small_glow.png" COMP;
1636 images.image: "sym_right_glow_normal.png" COMP;
1637 parts {
1638 part { name: "elm.text"; type: TEXT; mouse_events: 0;
1639 effect: GLOW;
1640 scale: 1;
1641 description { state: "default" 0.0;
1642 rel1.offset: 5 5;
1643 rel2.offset: -6 -6;
1644 rel2.relative: 0.0 1.0;
1645 rel2.to_x: "arrow";
1646 color_class: "button_text_anchor";
1647 color2: 255 255 255 255;
1648 color3: 255 255 255 255;
1649 text { font: FN; size: 10;
1650 align: 0.5 0.5;
1651 min: 1 1;
1652 text_class: "button_anchor";
1653 ellipsis: -1;
1654 }
1655 }
1656 }
1657 part { name: "arrow"; mouse_events: 0;
1658 description { state: "default" 0.0;
1659 image.normal: "sym_right_glow_normal.png";
1660 min: 15 15; max: 15 15;
1661 align: 1.0 0.5;
1662 }
1663 }
1664 part { name: "bar"; mouse_events: 0;
1665 description { state: "default" 0.0;
1666 image.normal: "horizontal_separated_bar_small_glow.png";
1667 image.border: 4 4 4 4;
1668 fill.smooth: 0;
1669 rel1.relative: 0.0 1.0;
1670 rel1.offset: 1 -10;
1671 rel2.offset: -2 -1;
1672 rel2.relative: 0.0 1.0;
1673 rel2.to_x: "arrow";
1674 }
1675 }
1676 part { name: "bar2"; mouse_events: 0;
1677 description { state: "default" 0.0;
1678 image.normal: "horizontal_separated_bar_small_glow.png";
1679 image.border: 4 4 4 4;
1680 fill.smooth: 0;
1681 rel1.to: "bar";
1682 rel2.to: "bar";
1683 color: 255 255 255 0;
1684 visible: 0;
1685 }
1686 description { state: "clicked" 0.0;
1687 inherit: "default" 0.0;
1688 color: 255 255 255 255;
1689 visible: 1;
1690 }
1691 }
1692 part { name: "event"; type: RECT;
1693 description { state: "default" 0.0;
1694 color: 0 0 0 0;
1695 }
1696 }
1697 }
1698 programs {
1699 program {
1700 signal: "mouse,down,1"; source: "event";
1701 action: SIGNAL_EMIT "elm,action,press" "elm";
1702 after: "button_click_anim";
1703 }
1704 program { name: "button_click_anim";
1705 action: STATE_SET "clicked" 0.0;
1706 target: "bar2";
1707 }
1708 program {
1709 signal: "mouse,up,1"; source: "event";
1710 action: SIGNAL_EMIT "elm,action,unpress" "elm";
1711 after: "button_unclick_anim";
1712 }
1713 program { name: "button_unclick_anim";
1714 action: STATE_SET "default" 0.0;
1715 target: "bar2";
1716 }
1717 program {
1718 signal: "elm,anim,activate"; source: "elm";
1719 action: STATE_SET "clicked" 0.0;
1720 target: "bar2";
1721 after: "button_unpressed_anim";
1722 }
1723 program { name: "button_unpressed_anim";
1724 action: STATE_SET "default" 0.0;
1725 in: 0.5 0.0;
1726 target: "bar2";
1727 }
1728 program {
1729 signal: "mouse,clicked,1"; source: "event";
1730 action: SIGNAL_EMIT "elm,action,click" "elm";
1731 }
1732 }
1733}