summaryrefslogtreecommitdiff
path: root/legacy/elementary/data
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim.neo@gmail.com>2012-02-28 06:31:25 +0000
committerJaehwan Kim <jae.hwan.kim.neo@gmail.com>2012-02-28 06:31:25 +0000
commit547b2c06caac83731200cdb1c2f8ad4a2679544d (patch)
tree799dc4f082ef2afe532a828e18dc6458a2545f5f /legacy/elementary/data
parentd7bc38e0d524f3e0a272b38b48a1ac8ee59b3ac8 (diff)
The animation for content set and text set.
This animation effect was in toolbar originally. But toolbar will use the button as toolbar item. So I add this effect into button. This effect is useful in button too. The work which changes toolbar item to button object will be patched next revision. SVN revision: 68492
Diffstat (limited to 'legacy/elementary/data')
-rw-r--r--legacy/elementary/data/themes/widgets/button.edc436
1 files changed, 436 insertions, 0 deletions
diff --git a/legacy/elementary/data/themes/widgets/button.edc b/legacy/elementary/data/themes/widgets/button.edc
index ee50891..642f669 100644
--- a/legacy/elementary/data/themes/widgets/button.edc
+++ b/legacy/elementary/data/themes/widgets/button.edc
@@ -1663,3 +1663,439 @@ group { name: "elm/button/base/colorselector/right/default";
1663 } 1663 }
1664 } 1664 }
1665} 1665}
1666
1667group { name: "elm/button/base/toolbar/default";
1668 images {
1669 image: "toolbar_sel.png" COMP;
1670 }
1671 data.item: "transition_animation_on" "1";
1672 parts {
1673 part { name: "label2";
1674 type: TEXT;
1675 mouse_events: 0;
1676 scale: 1;
1677 clip_to: "elm.text.clipper";
1678 description { state: "default" 0.0;
1679 align: 0.5 1.0;
1680 fixed: 0 1;
1681 rel1.to: "elm.text";
1682 rel2.to: "elm.text";
1683 color: 0 0 0 255;
1684 text {
1685 font: "Sans";
1686 text_source: "elm.text";
1687 size: 10;
1688 min: 1 1;
1689 align: 0.5 0.5;
1690 text_class: "toolbar_item";
1691 }
1692 }
1693 description { state: "selected" 0.0;
1694 inherit: "default" 0.0;
1695 visible: 0;
1696 }
1697 description { state: "disabled" 0.0;
1698 inherit: "default" 0.0;
1699 color: 0 0 0 128;
1700 color3: 0 0 0 0;
1701 }
1702 description { state: "disabled_visible" 0.0;
1703 inherit: "default" 0.0;
1704 color: 0 0 0 128;
1705 color3: 0 0 0 0;
1706 visible: 1;
1707 text.min: 1 1;
1708 }
1709 }
1710 part { name: "label2_new";
1711 type: TEXT;
1712 mouse_events: 0;
1713 scale: 1;
1714 clip_to: "elm.text_new.clipper";
1715 description { state: "default" 0.0;
1716 align: 0.5 1.0;
1717 fixed: 0 1;
1718 rel1.to: "elm.text_new";
1719 rel2.to: "elm.text_new";
1720 color: 0 0 0 255;
1721 text {
1722 font: "Sans";
1723 text_source: "elm.text_new";
1724 size: 10;
1725 min: 1 1;
1726 align: 0.5 0.5;
1727 text_class: "toolbar_item";
1728 }
1729 }
1730 description { state: "selected" 0.0;
1731 inherit: "default" 0.0;
1732 visible: 0;
1733 }
1734 description { state: "disabled" 0.0;
1735 inherit: "default" 0.0;
1736 color: 0 0 0 128;
1737 color3: 0 0 0 0;
1738 }
1739 description { state: "disabled_visible" 0.0;
1740 inherit: "default" 0.0;
1741 color: 0 0 0 128;
1742 color3: 0 0 0 0;
1743 visible: 1;
1744 text.min: 1 1;
1745 }
1746 }
1747 part { name: "bg";
1748 mouse_events: 0;
1749 description { state: "default" 0.0;
1750 visible: 0;
1751 color: 255 255 255 0;
1752 image {
1753 normal: "toolbar_sel.png";
1754 border: 3 3 0 0;
1755 }
1756 image.middle: SOLID;
1757 fill.smooth: 0;
1758 }
1759 description { state: "selected" 0.0;
1760 inherit: "default" 0.0;
1761 visible: 1;
1762 color: 255 255 255 255;
1763 }
1764 description { state: "disabled" 0.0;
1765 inherit: "default" 0.0;
1766 visible: 0;
1767 color: 255 255 255 0;
1768 }
1769 }
1770 part { name: "elm.swallow.content";
1771 type: SWALLOW;
1772 clip_to: "elm.icon.clipper";
1773 description { state: "default" 0.0;
1774 align: 0.5 0.5;
1775 fixed: 0 0;
1776 rel1 {
1777 relative: 0.0 0.0;
1778 offset: 2 2;
1779 }
1780 rel2 {
1781 to_y: "elm.text";
1782 relative: 1.0 0.0;
1783 offset: -3 -1;
1784 }
1785 color: 0 0 0 0;
1786 }
1787 }
1788 part { name: "elm.swallow.content_new";
1789 type: SWALLOW;
1790 clip_to: "elm.icon_new.clipper";
1791 description { state: "default" 0.0;
1792 align: 0.5 0.5;
1793 fixed: 0 0;
1794 rel1 {
1795 relative: 0.0 0.0;
1796 offset: 2 2;
1797 }
1798 rel2 {
1799 to_y: "elm.text_new";
1800 relative: 1.0 0.0;
1801 offset: -3 -1;
1802 }
1803 color: 0 0 0 0;
1804 }
1805 }
1806 part { name: "elm.text";
1807 type: TEXT;
1808 effect: SOFT_SHADOW;
1809 mouse_events: 0;
1810 scale: 1;
1811 clip_to: "elm.text.clipper";
1812 description { state: "default" 0.0;
1813 align: 0.5 1.0;
1814 fixed: 0 1;
1815 rel1 {
1816 relative: 0.0 1.0;
1817 offset: 0 -1;
1818 }
1819 rel2 {
1820 relative: 1.0 1.0;
1821 offset: -1 -1;
1822 }
1823 visible: 0;
1824 color: 224 224 224 255;
1825 color3: 0 0 0 32;
1826 text {
1827 font: "Sans:style=Bold";
1828 size: 10;
1829 min: 1 1;
1830 align: 0.5 0.5;
1831 text_class: "toolbar_item";
1832 }
1833 }
1834 description { state: "selected" 0.0;
1835 inherit: "default" 0.0;
1836 visible: 1;
1837 }
1838 description { state: "visible" 0.0;
1839 inherit: "default" 0.0;
1840 visible: 1;
1841 text.min: 1 1;
1842 }
1843 description { state: "disabled" 0.0;
1844 inherit: "default" 0.0;
1845 color: 0 0 0 128;
1846 color3: 0 0 0 0;
1847 }
1848 description { state: "disabled_visible" 0.0;
1849 inherit: "default" 0.0;
1850 color: 0 0 0 128;
1851 color3: 0 0 0 0;
1852 visible: 1;
1853 text.min: 1 1;
1854 }
1855 }
1856 part { name: "elm.text_new";
1857 type: TEXT;
1858 effect: SOFT_SHADOW;
1859 mouse_events: 0;
1860 clip_to: "elm.text_new.clipper";
1861 scale: 1;
1862 description { state: "default" 0.0;
1863 align: 0.5 1.0;
1864 fixed: 0 1;
1865 rel1 {
1866 relative: 0.0 1.0;
1867 offset: 0 -1;
1868 }
1869 rel2 {
1870 relative: 1.0 1.0;
1871 offset: -1 -1;
1872 }
1873 visible: 0;
1874 color: 224 224 224 255;
1875 color3: 0 0 0 32;
1876 text {
1877 font: "Sans:style=Bold";
1878 size: 10;
1879 min: 1 1;
1880 align: 0.5 0.5;
1881 text_class: "toolbar_item";
1882 }
1883 }
1884 description { state: "selected" 0.0;
1885 inherit: "default" 0.0;
1886 visible: 1;
1887 }
1888 description { state: "visible" 0.0;
1889 inherit: "default" 0.0;
1890 visible: 1;
1891 text.min: 1 1;
1892 }
1893 description { state: "disabled" 0.0;
1894 inherit: "default" 0.0;
1895 color: 0 0 0 128;
1896 color3: 0 0 0 0;
1897 }
1898 description { state: "disabled_visible" 0.0;
1899 inherit: "default" 0.0;
1900 color: 0 0 0 128;
1901 color3: 0 0 0 0;
1902 visible: 1;
1903 text.min: 1 1;
1904 }
1905 }
1906 part { name: "elm.text.clipper";
1907 type: RECT;
1908 description { state: "default" 0.0;
1909 color: 255 255 255 255;
1910 }
1911 description { state: "animation" 0.0;
1912 color: 255 255 255 0;
1913 }
1914 }
1915 part { name: "elm.text_new.clipper";
1916 type: RECT;
1917 description { state: "default" 0.0;
1918 color: 255 255 255 0;
1919 }
1920 description { state: "animation" 0.0;
1921 color: 255 255 255 255;
1922 }
1923 }
1924 part { name: "elm.icon.clipper";
1925 type: RECT;
1926 description { state: "default" 0.0;
1927 color: 255 255 255 255;
1928 }
1929 description { state: "animation" 0.0;
1930 color: 255 255 255 0;
1931 }
1932 }
1933 part { name: "elm.icon_new.clipper";
1934 type: RECT;
1935 description { state: "default" 0.0;
1936 color: 255 255 255 0;
1937 }
1938 description { state: "animation" 0.0;
1939 color: 255 255 255 255;
1940 }
1941 }
1942 part { name: "event";
1943 type: RECT;
1944 mouse_events: 1;
1945 ignore_flags: ON_HOLD;
1946 description { state: "default" 0.0;
1947 color: 0 0 0 0;
1948 }
1949 }
1950 }
1951 programs {
1952 program { name: "go_active";
1953 signal: "elm,state,selected";
1954 source: "elm";
1955 action: STATE_SET "selected" 0.0;
1956 target: "bg";
1957 target: "elm.text";
1958 target: "label2";
1959 target: "elm.text_new";
1960 target: "label2_new";
1961 transition: LINEAR 0.2;
1962 }
1963 program { name: "go_passive";
1964 signal: "elm,state,unselected";
1965 source: "elm";
1966 action: STATE_SET "default" 0.0;
1967 target: "bg";
1968 target: "elm.text";
1969 target: "label2";
1970 target: "elm.text_new";
1971 target: "label2_new";
1972 transition: LINEAR 0.1;
1973 }
1974 program { name: "go";
1975 signal: "mouse,up,1";
1976 source: "event";
1977 action: SIGNAL_EMIT "elm,action,click" "elm";
1978 }
1979 program { name: "mouse,in";
1980 signal: "mouse,in";
1981 source: "event";
1982 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1983 }
1984 program { name: "mouse,out";
1985 signal: "mouse,out";
1986 source: "event";
1987 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1988 }
1989 program { name: "disable";
1990 signal: "elm,state,disabled";
1991 source: "elm";
1992 action: STATE_SET "disabled" 0.0;
1993 target: "label2";
1994 target: "label2_new";
1995 target: "bg";
1996 after: "disable_text";
1997 }
1998 program { name: "disable_text";
1999 script {
2000 new st[31];
2001 new Float:vl;
2002 get_state(PART:"elm.text", st, 30, vl);
2003 if (!strcmp(st, "visible"))
2004 {
2005 set_state(PART:"elm.text", "disabled_visible", 0.0);
2006 set_state(PART:"elm.text_new", "disabled_visible", 0.0);
2007 }
2008 else
2009 {
2010 set_state(PART:"elm.text", "disabled", 0.0);
2011 set_state(PART:"elm.text_new", "disabled", 0.0);
2012 }
2013 }
2014 }
2015 program { name: "enable";
2016 signal: "elm,state,enabled";
2017 source: "elm";
2018 action: STATE_SET "default" 0.0;
2019 target: "label2";
2020 target: "label2_new";
2021 target: "bg";
2022 after: "enable_text";
2023 }
2024 program { name: "enable_text";
2025 script {
2026 new st[31];
2027 new Float:vl;
2028 get_state(PART:"elm.text", st, 30, vl);
2029 if (!strcmp(st, "disabled_visible"))
2030 {
2031 set_state(PART:"elm.text", "visible", 0.0);
2032 set_state(PART:"elm.text_new", "visible", 0.0);
2033 }
2034 else
2035 {
2036 set_state(PART:"elm.text", "default", 0.0);
2037 set_state(PART:"elm.text_new", "default", 0.0);
2038 }
2039 }
2040 }
2041 program { name: "label_set,animation,forward";
2042 signal: "elm,state,label_set,forward";
2043 source: "elm";
2044 after: "label_set,animation";
2045 }
2046 program { name: "label_set,animation,backward";
2047 signal: "elm,state,label_set,backward";
2048 source: "elm";
2049 after: "label_set,animation";
2050 }
2051 program { name: "label_set,animation";
2052 signal: "elm,state,label_set";
2053 source: "elm";
2054 action: STATE_SET "animation" 0.0;
2055 target: "elm.text.clipper";
2056 target: "elm.text_new.clipper";
2057 transition: LINEAR 0.2;
2058 after: "label_set,animation,done";
2059 }
2060 program { name: "label_set,animation,done";
2061 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2062 }
2063 program { name: "label,reset";
2064 signal: "elm,state,label,reset";
2065 source: "elm";
2066 action: STATE_SET "default" 0.0;
2067 target: "elm.text.clipper";
2068 target: "elm.text_new.clipper";
2069 }
2070 program { name: "icon_set,animation,forward";
2071 signal: "elm,state,icon_set,forward";
2072 source: "elm";
2073 after: "icon_set,animation";
2074 }
2075 program { name: "icon_set,animation,backward";
2076 signal: "elm,state,icon_set,backward";
2077 source: "elm";
2078 after: "icon_set,animation";
2079 }
2080 program { name: "icon_set,animation";
2081 signal: "elm,state,icon_set";
2082 source: "elm";
2083 action: STATE_SET "animation" 0.0;
2084 target: "elm.icon.clipper";
2085 target: "elm.icon_new.clipper";
2086 transition: LINEAR 0.2;
2087 after: "icon_set,animation,done";
2088 }
2089 program { name: "icon_set,animation,done";
2090 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
2091 }
2092 program { name: "icon,reset";
2093 signal: "elm,state,icon,reset";
2094 source: "elm";
2095 action: STATE_SET "default" 0.0;
2096 target: "elm.icon.clipper";
2097 target: "elm.icon_new.clipper";
2098 }
2099 }
2100}
2101