#define EDJ_APP EDJ_DIR"/volume_app.edj"
#define IMG_VOLUME_ICON "sound_slider_icon_volume.png"
+#define IMG_VOLUME_ICON_OFF "sound_off_icon_volume.png"
#define IMG_VOLUME_ICON_VIB "sound_slider_icon_volume_vibrate.png"
#define IMG_VOLUME_ICON_MUTE "sound_slider_icon_volume_mute.png"
+#define IMG_VOLUME_ICON_MUTE_OFF "sound_off_icon_volume_mute.png"
#define IMG_VOLUME_ICON_NOTI "sound_slider_icon_notification.png"
#define IMG_VOLUME_ICON_NOTI_VIB "sound_slider_icon_notification_vibrate.png"
#define IMG_VOLUME_ICON_NOTI_MUTE "sound_slider_icon_notification_mute.png"
collections {
RESOURCE_IMAGE_ORI(sound_slider_icon_volume.png);
+RESOURCE_IMAGE_ORI(sound_off_icon_volume.png);
+RESOURCE_IMAGE_ORI(sound_off_icon_volume_mute.png);
RESOURCE_IMAGE(sound_slider_icon_volume_vibrate.png);
RESOURCE_IMAGE_ORI(sound_slider_icon_volume_mute.png);
RESOURCE_IMAGE(sound_slider_icon_notification.png);
part {
name : "ic_sound_mute";
- type : IMAGE;
+ type : SWALLOW;
clip_to: "clipper";
scale : 1;
description {
state : "default" 0.0;
fixed : 1 1;
- image.normal: "sound_slider_icon_volume_mute.png";
rel1 { relative : IC_SOUND_MUTE_X_MIN IC_SOUND_MUTE_Y_MIN; to : "clipper";}
rel2 { relative : IC_SOUND_MUTE_X_MAX IC_SOUND_MUTE_Y_MAX; to : "clipper";}
aspect : 1 1;
target : "popup_bg";
target : "bg";
target : "ic_sound";
+ target : "ic_sound_mute";
target : "ic_setting";
target : "sw.slider";
target : "divider";
target : "popup_bg";
target : "bg";
target : "ic_sound";
+ target : "ic_sound_mute";
target : "ic_setting";
target : "sw.slider";
target : "divider";
target : "popup_bg";
target : "bg";
target : "ic_sound";
+ target : "ic_sound_mute";
target : "ic_setting";
target : "sw.slider";
target : "divider";
Evas_Object *evas;
Evas_Object *ly_outer;
Evas_Object *icon_volume;
+ Evas_Object *icon_volume_mute;
Evas_Object *icon_setting;
Evas_Object *slider;
Evas_Object *warning_popup;
{
_D("Volume icon set");
char *img = NULL;
+ char *img_mute = NULL;
if (sound == -1 || vibration == -1) {
- img = IMG_VOLUME_ICON_MUTE;
+ img = IMG_VOLUME_ICON_OFF;
+ img_mute = IMG_VOLUME_ICON_MUTE;
_D("img : %s", img);
elm_image_file_set(view_info.icon_volume, volume_view_get_file_path(EDJ_APP), img);
+ elm_image_file_set(view_info.icon_volume_mute, volume_view_get_file_path(EDJ_APP), img_mute);
return;
}
switch (sound_type) {
case SOUND_TYPE_ALARM:
case SOUND_TYPE_RINGTONE:
- img = IMG_VOLUME_ICON;
+ if (sound > 0) {
+ img = IMG_VOLUME_ICON;
+ img_mute = IMG_VOLUME_ICON_MUTE_OFF;
+ } else {
+ img = IMG_VOLUME_ICON_OFF;
+ img_mute = IMG_VOLUME_ICON_MUTE;
+ }
break;
case SOUND_TYPE_MEDIA:
if (volume_sound_sound_manager_volume_get(sound_type) > 0)
break;
default:
img = IMG_VOLUME_ICON;
+ img_mute = IMG_VOLUME_ICON_MUTE_OFF;
break;
}
_D("img : %s", img);
elm_image_file_set(view_info.icon_volume, volume_view_get_file_path(EDJ_APP), img);
+ elm_image_file_set(view_info.icon_volume_mute, volume_view_get_file_path(EDJ_APP), img_mute);
}
void volume_view_volume_icon_name_set_for_access(sound_type_e sound_type)
elm_object_part_content_set(ly_outer, "ic_sound", icon_volume);
view_info.icon_volume = icon_volume;
+ /* make volume mute icon */
+ Evas_Object *icon_volume_mute = _volume_icon_make();
+ retv_if(!icon_volume_mute, VOLUME_ERROR_FAIL);
+ elm_object_part_content_set(ly_outer, "ic_sound_mute", icon_volume_mute);
+ view_info.icon_volume_mute = icon_volume_mute;
+
/* make slider */
Evas_Object *slider = _slider_make();
retv_if(!slider, VOLUME_ERROR_FAIL);