diff options
author | José Roberto de Souza <zehortigoza@profusion.mobi> | 2013-01-02 13:22:36 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2013-01-02 13:22:36 +0000 |
commit | 548b3ecdffa9b2c4321738e48fa6f125509bcabf (patch) | |
tree | edaff739b0d1acfea7b0238c1b663016903e243d /data/themes | |
parent | 2fbd1c79ad1e88ca9fff15550a7808d6ac19d0ce (diff) | |
download | enlightenment-548b3ecdffa9b2c4321738e48fa6f125509bcabf.tar.gz enlightenment-548b3ecdffa9b2c4321738e48fa6f125509bcabf.tar.xz enlightenment-548b3ecdffa9b2c4321738e48fa6f125509bcabf.zip |
e/music-control: Move edc and images to data/theme
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi>
SVN revision: 81997
Diffstat (limited to 'data/themes')
-rw-r--r-- | data/themes/default.edc | 1 | ||||
-rw-r--r-- | data/themes/edc/music_control.edc | 161 | ||||
-rw-r--r-- | data/themes/img/music_control_icon.png | bin | 0 -> 47348 bytes | |||
-rw-r--r-- | data/themes/img/next.png | bin | 0 -> 1382 bytes | |||
-rw-r--r-- | data/themes/img/pause.png | bin | 0 -> 638 bytes | |||
-rw-r--r-- | data/themes/img/play.png | bin | 0 -> 1153 bytes | |||
-rw-r--r-- | data/themes/img/previous.png | bin | 0 -> 1240 bytes |
7 files changed, 162 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc index 4ec3e74f2..2c0ba9427 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -45,6 +45,7 @@ collections { #include "edc/xkbswitch.edc" #include "edc/tasks.edc" #include "edc/connman.edc" +#include "edc/music_control.edc" #include "edc/systray.edc" #include "edc/clock.edc" #include "edc/ibar-ibox.edc" diff --git a/data/themes/edc/music_control.edc b/data/themes/edc/music_control.edc new file mode 100644 index 000000000..6a0ef23b3 --- /dev/null +++ b/data/themes/edc/music_control.edc @@ -0,0 +1,161 @@ +group { + name: "modules/music-control/icon"; + max: 24 24; + images { + image: "music_control_icon.png" COMP; + } + parts { + part { + name: "image"; + mouse_events: 0; + type: IMAGE; + description { + state: "default" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + image.normal: "music_control_icon.png"; + } + } + } +} + +group { + name: "modules/music-control/main"; + images { + image: "music_control_icon.png" COMP; + } + parts { + part { + name: "icon"; + type: IMAGE; + description { + state: "default" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + rel1.relative: 0 0; + rel2.relative: 1 1; + image.normal: "music_control_icon.png"; + } + } + } +} + +group { + name: "modules/music-control/popup"; + min: 150 50; + images { + image: "previous.png" COMP; + image: "next.png" COMP; + image: "pause.png" COMP; + image: "play.png" COMP; + } + parts { + part { + name: "player_name"; + type: TEXT; + description { + state: "default" 0; + text.size: 12; + text.text: "Music player"; + text.font: "Sans"; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + rel2.offset: 0 16; + } + } + part { + type: IMAGE; + name: "previous_btn"; + description { + state: "default" 0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + rel1.to: "player_name"; + rel1.relative: 0.0 1.0; + rel2.relative: 0.33 1.0; + image.normal: "previous.png"; + } + } + part { + type: IMAGE; + name: "play_btn"; + description { + state: "default" 0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + rel1.to: "player_name"; + rel1.relative: 0.33 1.0; + rel2.relative: 0.66 1.0; + image.normal: "pause.png"; + } + description { + state: "play" 0.0; + inherit: "default" 0.0; + image.normal: "play.png"; + } + } + part { + type: IMAGE; + name: "next_btn"; + description { + state: "default" 0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + rel1.to: "player_name"; + rel1.relative: 0.66 1.0; + rel2.relative: 1.0 1.0; + image.normal: "next.png"; + } + } + } + programs { + program { + signal: "mouse,clicked,*"; + source: "previous_btn"; + action: SIGNAL_EMIT "btn,clicked" "previous"; + } + program { + signal: "mouse,clicked,*"; + source: "play_btn"; + action: SIGNAL_EMIT "btn,clicked" "play"; + } + program { + signal: "mouse,clicked,*"; + source: "next_btn"; + action: SIGNAL_EMIT "btn,clicked" "next"; + } + program { + signal: "btn,state,image,play"; + source: "play"; + action: STATE_SET "play" 0.0; + transition: LINEAR 0.1; + target: "play_btn"; + } + program { + signal: "btn,state,image,play,no_delay"; + source: "play"; + action: STATE_SET "play" 0.0; + transition: LINEAR 0.0; + target: "play_btn"; + } + program { + signal: "btn,state,image,pause"; + source: "play"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.1; + target: "play_btn"; + } + program { + signal: "mouse,clicked,*"; + source: "player_name"; + action: SIGNAL_EMIT "label,clicked" "player_name"; + } + } + script { + public message(Msg_Type:type, id, ...) { + new txt[128]; + getsarg (2, txt, 128); + set_text(PART:"player_name", txt); + } + } +} diff --git a/data/themes/img/music_control_icon.png b/data/themes/img/music_control_icon.png Binary files differnew file mode 100644 index 000000000..52175443b --- /dev/null +++ b/data/themes/img/music_control_icon.png diff --git a/data/themes/img/next.png b/data/themes/img/next.png Binary files differnew file mode 100644 index 000000000..86e313e50 --- /dev/null +++ b/data/themes/img/next.png diff --git a/data/themes/img/pause.png b/data/themes/img/pause.png Binary files differnew file mode 100644 index 000000000..c0a09bb82 --- /dev/null +++ b/data/themes/img/pause.png diff --git a/data/themes/img/play.png b/data/themes/img/play.png Binary files differnew file mode 100644 index 000000000..35f3a2348 --- /dev/null +++ b/data/themes/img/play.png diff --git a/data/themes/img/previous.png b/data/themes/img/previous.png Binary files differnew file mode 100644 index 000000000..c07da8ba0 --- /dev/null +++ b/data/themes/img/previous.png |