#define IMG_ARTIST_LIST_MORE_BTN_NORMAL "button/T02_artist_list_more.png"
#define IMG_ARTIST_LIST_MORE_BTN_PRESSED "button/T02_artist_list_more_press.png"
-#define IMG_PLAYER_VIEW_OPTION_BTN "player-view/T02_control_circle_button_03.png"
-#define IMG_PLAYER_VIEW_OPTION_BTN_PRESS "player-view/T02_control_circle_button_03_press.png"
+#define IMG_PLAYER_VIEW_OPTION_BTN "player-view/T02_control_circle_button_03.png"
+#define IMG_PLAYER_VIEW_OPTION_BTN_PRESS "player-view/T02_control_circle_button_03_press.png"
/****************** lite path ****************/
-#define IMG_PLAYER_VIEW_ICON_PATH "lite/Icon/"
-#define IMG_PLAYER_VIEW_BUTTON_PATH "lite/Button/"
+#define IMG_PLAYER_VIEW_ICON_PATH "lite/Icon/"
+#define IMG_PLAYER_VIEW_BUTTON_PATH "lite/Button/"
+#define IMG_LITE_REORDER_ICON "lite/core_button_reorder.png"
#define IMG_PLAYER_VIEW_OPTION_VOLUME IMG_PLAYER_VIEW_ICON_PATH"play_icon_vol.png"
#define IMG_PLAYER_VIEW_OPTION_SHUFFLE_ON IMG_PLAYER_VIEW_ICON_PATH"play_icon_shuffle.png"
#define IMG_PLAYER_VIEW_OPTION_REP_A IMG_PLAYER_VIEW_ICON_PATH"play_icon_rep_a.png"
#define IMG_PLAYER_VIEW_OPTION_REP_1 IMG_PLAYER_VIEW_ICON_PATH"play_icon_rep_one.png"
#define IMG_PLAYER_VIEW_OPTION_REP_ALL IMG_PLAYER_VIEW_ICON_PATH"play_icon_rep_all.png"
-#define IMG_PLAYER_VIEW_OPTION_INFO IMG_PLAYER_VIEW_ICON_PATH"play_icon_list.png"
+#define IMG_PLAYER_VIEW_OPTION_INFO IMG_PLAYER_VIEW_ICON_PATH"play_icon_list.png"
//add favourite begin
-#define IMG_PLAYER_VIEW_OPTION_FAVOURITE_ON "player-view/T02_option_favorite_on.png"
-#define IMG_PLAYER_VIEW_OPTION_FAVOURITE_OFF "player-view/T02_option_favorite_off.png"
+#define IMG_PLAYER_VIEW_OPTION_FAVOURITE_ON "player-view/T02_option_favorite_on.png"
+#define IMG_PLAYER_VIEW_OPTION_FAVOURITE_OFF "player-view/T02_option_favorite_off.png"
//add like begin
-#define IMG_PLAYER_VIEW_OPTION_LIKE_ON "player-view/T02_option_favorite_on.png"
-#define IMG_PLAYER_VIEW_OPTION_LIKE_OFF "player-view/T02_option_favorite_off.png"
-#define IMG_PLAYER_VIEW_OPTION_LIKE_ON_PRESS "player-view/T02_option_like_press.png"
+#define IMG_PLAYER_VIEW_OPTION_LIKE_ON "player-view/T02_option_favorite_on.png"
+#define IMG_PLAYER_VIEW_OPTION_LIKE_OFF "player-view/T02_option_favorite_off.png"
+#define IMG_PLAYER_VIEW_OPTION_LIKE_ON_PRESS "player-view/T02_option_like_press.png"
//add block begin
-#define IMG_PLAYER_VIEW_OPTION_BLOCK_ON "player-view/T02_option_blocking_on.png"
-#define IMG_PLAYER_VIEW_OPTION_BLOCK_OFF "player-view/T02_option_blocking_dim.png"
-#define IMG_PLAYER_VIEW_OPTION_BLOCK_ON_PRESS "player-view/T02_option_blocking_press.png"
+#define IMG_PLAYER_VIEW_OPTION_BLOCK_ON "player-view/T02_option_blocking_on.png"
+#define IMG_PLAYER_VIEW_OPTION_BLOCK_OFF "player-view/T02_option_blocking_dim.png"
+#define IMG_PLAYER_VIEW_OPTION_BLOCK_ON_PRESS "player-view/T02_option_blocking_press.png"
//add favorite radio
-#define IMG_PLAYER_VIEW_TITLE_FAVORITE_RADIO_ON "player-view/T02_radio_favorite_on.png"
-#define IMG_PLAYER_VIEW_TITLE_FAVORITE_RADIO_OFF "player-view/T02_radio_favorite_off.png"
+#define IMG_PLAYER_VIEW_TITLE_FAVORITE_RADIO_ON "player-view/T02_radio_favorite_on.png"
+#define IMG_PLAYER_VIEW_TITLE_FAVORITE_RADIO_OFF "player-view/T02_radio_favorite_off.png"
// control img
#define IMG_PLAYER_VIEW_CONTROL_CIRCLE_BT_01 IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_01.png"
#define IMG_PLAYER_VIEW_CONTROL_CIRCLE_BT_01_CIRCLE IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_01_ef.png"
#define IMG_PLAYER_VIEW_CONTROL_CIRCLE_BT_02 IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_02.png"
#define IMG_PLAYER_VIEW_CONTROL_CIRCLE_BT_02_CIRCLE IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_02_ef.png"
-#define IMG_PLAYER_VIEW_CONTROL_PREVIOUS IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_prev.png"
-#define IMG_PLAYER_VIEW_CONTROL_PLAY IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_play.png"
-#define IMG_PLAYER_VIEW_CONTROL_PAUSE IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_pause.png"
-#define IMG_PLAYER_VIEW_CONTROL_NEXT IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_next.png"
-#define IMG_PLAYER_VIEW_CONTROL_VOLUME IMG_PLAYER_VIEW_ICON_PATH"play_icon_vol.png"
-#define IMG_PLAYER_VIEW_CONTROL_VOLUME_OFF IMG_PLAYER_VIEW_ICON_PATH"play_icon_vol_off.png"
-#define IMG_PLAYER_VIEW_CONTROL_QUEUE_ON IMG_PLAYER_VIEW_ICON_PATH"play_icon_list.png"
-#define IMG_PLAYER_VIEW_CONTROL_PLUS "T02_icon_volume_control_plus.png"
-#define IMG_PLAYER_VIEW_CONTROL_PLUS_PRESS "T02_icon_volume_control_plus_press.png"
-#define IMG_PLAYER_VIEW_CONTROL_MINUS "T02_icon_volume_control_minus.png"
-#define IMG_PLAYER_VIEW_CONTROL_MINUS_PRESS "T02_icon_volume_control_minus_press.png"
-#define IMG_PLAYER_VIEW_CONTROL_MUTE "T02_icon_volume_control_mute.png"
-#define IMG_PLAYER_VIEW_CONTROL_MUTE_PRESS "T02_icon_volume_control_mute_press.png"
+#define IMG_PLAYER_VIEW_CONTROL_PREVIOUS IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_prev.png"
+#define IMG_PLAYER_VIEW_CONTROL_PLAY IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_play.png"
+#define IMG_PLAYER_VIEW_CONTROL_PAUSE IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_pause.png"
+#define IMG_PLAYER_VIEW_CONTROL_NEXT IMG_PLAYER_VIEW_BUTTON_PATH"full_player_button_next.png"
+#define IMG_PLAYER_VIEW_CONTROL_VOLUME IMG_PLAYER_VIEW_ICON_PATH"play_icon_vol.png"
+#define IMG_PLAYER_VIEW_CONTROL_VOLUME_OFF IMG_PLAYER_VIEW_ICON_PATH"play_icon_vol_off.png"
+#define IMG_PLAYER_VIEW_CONTROL_QUEUE_ON IMG_PLAYER_VIEW_ICON_PATH"play_icon_list.png"
+#define IMG_PLAYER_VIEW_CONTROL_PLUS "T02_icon_volume_control_plus.png"
+#define IMG_PLAYER_VIEW_CONTROL_PLUS_PRESS "T02_icon_volume_control_plus_press.png"
+#define IMG_PLAYER_VIEW_CONTROL_MINUS "T02_icon_volume_control_minus.png"
+#define IMG_PLAYER_VIEW_CONTROL_MINUS_PRESS "T02_icon_volume_control_minus_press.png"
+#define IMG_PLAYER_VIEW_CONTROL_MUTE "T02_icon_volume_control_mute.png"
+#define IMG_PLAYER_VIEW_CONTROL_MUTE_PRESS "T02_icon_volume_control_mute_press.png"
#define BUTTON_STATE_ENABLED 0
#define BUTTON_STATE_DISABLED 1
image: IMG_PLAYER_VIEW_CONTROL_VOLUME COMP;
image: IMG_PLAYER_VIEW_CONTROL_VOLUME_OFF COMP;
image: IMG_PLAYER_VIEW_CONTROL_QUEUE_ON COMP;
- image: IMG_PLAYER_VIEW_CONTROL_PLUS COMP;
- image: IMG_PLAYER_VIEW_CONTROL_PLUS_PRESS COMP;
- image: IMG_PLAYER_VIEW_CONTROL_MINUS COMP;
- image: IMG_PLAYER_VIEW_CONTROL_MINUS_PRESS COMP;
- image: IMG_PLAYER_VIEW_CONTROL_MUTE COMP;
- image: IMG_PLAYER_VIEW_CONTROL_MUTE_PRESS COMP;
+ image: IMG_PLAYER_VIEW_CONTROL_PLUS COMP;
+ image: IMG_PLAYER_VIEW_CONTROL_PLUS_PRESS COMP;
+ image: IMG_PLAYER_VIEW_CONTROL_MINUS COMP;
+ image: IMG_PLAYER_VIEW_CONTROL_MINUS_PRESS COMP;
+ image: IMG_PLAYER_VIEW_CONTROL_MUTE COMP;
+ image: IMG_PLAYER_VIEW_CONTROL_MUTE_PRESS COMP;
image: IMG_PLAYER_VIEW_OPTION_LIKE_ON COMP;
image: IMG_PLAYER_VIEW_OPTION_LIKE_OFF COMP;
image: IMG_PLAYER_VIEW_TITLE_FAVORITE_RADIO_ON COMP;
image: IMG_PLAYER_VIEW_TITLE_FAVORITE_RADIO_OFF COMP;
+ image: IMG_LITE_REORDER_ICON COMP;
}
#define MP_PLAYER_BUTTON_NOSOUND_STYLE(__name,__bg_normal,__bg_circle,__normal) \
}
}
+group {
+ name: "elm/button/base/music/reorder_button";
+ parts {
+ part {
+ name: "elm.swallow.content";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.5;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ min: 100 0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ align: 1.0 0.5;
+ color: 8 8 8 100;
+ image.normal: IMG_LITE_REORDER_ICON;
+ }
+ }
+ }
+}
// if edit mode
if (!strcmp(part, "elm.swallow.end")) {
// swallow checkbox or radio button
-
check = elm_check_add(obj);
elm_object_style_set(check, "default");
evas_object_propagate_events_set(check, EINA_FALSE);
if (list->reorderable) {
if (!strcmp(part, "elm.swallow.end")) {
- Evas_Object *thumbnail = NULL;
- thumbnail = elm_image_add(obj);
- elm_image_file_set(thumbnail, IMAGE_EDJ_NAME,
- MP_LITE_REORDER_ICON);
- evas_object_color_set(thumbnail, 8, 8, 8, 204);
- evas_object_size_hint_align_set(thumbnail, EVAS_HINT_FILL,
+ Evas_Object *reorder_btn = elm_button_add(obj);
+ elm_object_style_set(reorder_btn, "music/reorder_button");
+ evas_object_repeat_events_set(reorder_btn, EINA_TRUE);
+ evas_object_propagate_events_set(reorder_btn, EINA_FALSE);
+ evas_object_size_hint_align_set(reorder_btn, EVAS_HINT_FILL,
EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(thumbnail, EVAS_HINT_EXPAND,
+ evas_object_size_hint_weight_set(reorder_btn, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
- return thumbnail;
+ return reorder_btn;
}
}