#define AO025 0 0 0 64
#define AO025P 0 0 0 77
+// QP MC BUTTONS
+#define TOGGLE_BTN_MIN_SIZE 90 90
+
#define STYLE_TAGS \
tag: "br" "\n";\
tag: "ps" "ps";\
} \
}
-#define TOGGLE_BTN(grp_name, bg_cc, bg_cc_p, img, img_cc, img_cc_p) \
+#define QP_MC_TOGGLE_BTN(grp_name, bg_cc, bg_cc_p, img, img_cc, img_cc_p) \
group { name: "elm/button/base/"grp_name; \
data { \
item: "focus_highlight" "on"; \
} \
images { \
- image: BG_IMG_PATH"/call_btn_circle.png" COMP; \
- image: BG_IMG_PATH"/vc_toggle_focus.png" COMP; \
+ image: BG_IMG_PATH"/call_noti_btn_bg.png" COMP; \
image: img COMP; \
- }\
+ } \
script { \
public button_state = 0; \
} \
- parts { \
- part { name: "button_image";\
+ parts { \
+ part { name: "button_image"; \
type: IMAGE; \
scale: 1; \
description { state: "default" 0.0; \
- rel1 { relative: 0.0 0.0;} \
- rel2 { relative: 1.0 1.0;} \
+ min: TOGGLE_BTN_MIN_SIZE; \
+ color_class: bg_cc; \
image { \
- normal: BG_IMG_PATH"/call_btn_circle.png"; \
+ normal: BG_IMG_PATH"/call_noti_btn_bg.png"; \
+ middle: DEFAULT; \
} \
- aspect_preference: SOURCE;\
- color_class: bg_cc; \
} \
description { state: "clicked" 0.0; \
inherit: "default" 0.0; \
} \
description { state: "disabled" 0.0; \
inherit: "default" 0.0; \
- color_class: "AO014D"; \
- } \
- } \
- part { name: "focus_image"; \
- scale: 1; \
- mouse_events: 0; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- visible: 0; \
- rel1.to : "button_image"; \
- rel2.to : "button_image"; \
- image { \
- normal: BG_IMG_PATH"/vc_toggle_focus.png"; \
- border: COLOR_BG_ALPHA; \
- border_scale: 1; \
- } \
- } \
- description { state: "focused" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
+ color_class: "qp_mc_toogle_dim"; \
} \
} \
part { name: "content_image"; \
type: IMAGE; \
scale: 1; \
description { state: "default" 0.0; \
- rel1 { relative: BUTTON_BOTTOM_ICON_OFFSET_L CALL_QUICKPANEL_BTN_ICON_T; to: "button_image";} \
- rel2 { relative: BUTTON_BOTTOM_ICON_OFFSET_R CALL_QUICKPANEL_BTN_ICON_B; to: "button_image";} \
- image.normal: img; \
- color_class: img_cc; \
- align: 0.5 0.5; \
+ min: TOGGLE_BTN_MIN_SIZE; \
aspect_preference: SOURCE; \
+ color_class: qp_mc_toogle_icon; \
+ rel1 { to: "button_image"; } \
+ rel2 { to: "button_image"; } \
+ image { \
+ normal: img; \
+ middle: DEFAULT; \
+ } \
} \
description { state: "clicked" 0.0; \
inherit: "default" 0.0; \
- color_class: img_cc_p; \
+ color_class: qp_mc_toogle_icon; \
} \
description { state: "disabled" 0.0; \
inherit: "default" 0.0; \
- color_class: "ATO017"; \
+ color_class: "qp_mc_toogle_dim"; \
} \
} \
part { name: "over2"; \
type: RECT; \
repeat_events: 1; \
- ignore_flags: ON_HOLD; \
+ ignore_flags: "ON_HOLD"; \
description { state: "default" 0.0; \
color: COLOR_BG_ALPHA; \
} \
part { name: "disabler"; \
type: RECT; \
description { state: "default" 0.0; \
- color: COLOR_BG_ALPHA; \
visible: 0; \
+ color: COLOR_BG_ALPHA; \
} \
description { state: "disabled" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
+ color: COLOR_BG_ALPHA; \
} \
} \
} \
action: SIGNAL_EMIT "elm,action,press" ""; \
after: "button_click_anim"; \
} \
- program { name: "button_click_anim"; \
- action: STATE_SET "clicked" 0.0; \
- target: "button_image"; \
- target: "content_image"; \
- } \
program { name: "button_double_click"; \
signal: "mouse,down,1,double"; \
source: "over3"; \
after: "button_click_anim"; \
} \
- program { name: "button_unpress"; \
- action: SIGNAL_EMIT "elm,action,unpress" ""; \
- } \
program { name: "button_mouseout_clicked"; \
signal: "mouse,up,1"; \
source: "over3"; \
script { \
- if (get_int(button_state) != 1) \
- set_state(PART:"button_image", "default", 0.0); \
+ if (get_int(button_state) != 1) \
+ set_state(PART:"button_image", "default", 0.0); \
set_state(PART:"content_image", "default", 0.0); \
} \
- after: button_unpress; \
+ after: "button_unpress"; \
} \
program { name: "touch_snd"; \
signal: "mouse,clicked,1"; \
source: "over2"; \
action: RUN_PLUGIN "touch_sound"; \
- after: button_unclick3; \
- } \
- program { name: "button_unclick3"; \
- action: SIGNAL_EMIT "elm,action,click" ""; \
+ after: "button_unclick3"; \
} \
program { name: "disable"; \
signal: "elm,state,disabled"; \
target: "content_image"; \
target: "disabler"; \
} \
- program { name: "action_focus"; \
- signal: "elm,action,focus_highlight,show"; \
- source: "elm"; \
- action: STATE_SET "focused" 0.0; \
- target: "focus_image"; \
+ program { name: "button_click_anim"; \
+ action: STATE_SET "clicked" 0.0; \
+ target: "button_image"; \
+ target: "content_image"; \
} \
- program { name: "action_unfocus"; \
- signal: "elm,action,focus_highlight,hide"; \
- source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "focus_image"; \
+ program { name: "button_unpress"; \
+ action: SIGNAL_EMIT "elm,action,unpress" ""; \
+ } \
+ program { name: "button_unclick3"; \
+ action: SIGNAL_EMIT "elm,action,click" ""; \
} \
} \
}
type: RECT; \
description { state: "default" 0.0; \
visible: 0; \
- color: 0 0 0 0; \
+ color: COLOR_BG_ALPHA; \
} \
description { state: "ready" 0.0; \
inherit: "default" 0.0; \
description { state: "default" 0.0; \
rel1.to: "tizen_vg_shape"; \
rel2.to: "tizen_vg_shape"; \
- color: 0 0 0 0; \
+ color: COLOR_BG_ALPHA; \
} \
} \
} \
}
styles {
- style { name: "normal_hold";
- base: "font=Tizen:style=Regular font_size=36 align=center color=#FAFAFAFF style=shadow,bottom shadow_color=#000000FF ellipsis=1.0 wrap=none text_class=tizen";
- STYLE_TAGS
- }
- style { name: "disabled_hold";
- base: "font=Tizen:style=Regular font_size=36 align=center color=#FAFAFA80 style=shadow,bottom shadow_color=#000000FF ellipsis=1.0 wrap=none text_class=tizen";
- STYLE_TAGS
- }
- style { name: "normal_unhold";
- base: "font=Tizen:style=Regular font_size=36 align=center color=#87E22DFF style=shadow,bottom shadow_color=#000000FF ellipsis=1.0 wrap=none text_class=tizen";
- STYLE_TAGS
- }
- style { name: "disabled_unhold";
- base: "font=Tizen:style=Regular font_size=36 align=center color=#87E22D80 style=shadow,bottom shadow_color=#000000FF ellipsis=1.0 wrap=none text_class=tizen";
- STYLE_TAGS
- }
- style { name: "normal_swap";
- base: "font=Tizen:style=Regular font_size=36 align=center color=#FAFAFAFF style=shadow,bottom shadow_color=#000000FF ellipsis=1.0 wrap=none text_class=tizen";
- STYLE_TAGS
- }
- style { name: "disabled_swap";
- base: "font=Tizen:style=Regular font_size=36 align=center color=#00000080 style=shadow,bottom shadow_color=#00000066 ellipsis=1.0 wrap=none text_class=tizen";
- STYLE_TAGS
- }
- style { name: "end_button";
- base: "font=Tizen:style=Regular color=#FAFAFAFF text_class="ATO008"";
- STYLE_TAGS
- }
- style { name: "end_button_disabled";
- base: "font=Tizen:style=Regular color=#FAFAFAFF text_class="ATO008"";
- STYLE_TAGS
- }
- style { name: "end_button_disabled_visible";
- base: "font=Tizen:style=Regular color=#FAFAFAFF text_class="ATO008"";
- STYLE_TAGS
- }
style { name: "button_bottom";
base: "font=Tizen:style=Regular font_size="BUTTON_BOTTOM_TEXT_SIZE" align=center color=#ffffff color_class="ATO012" text_class="ATO012" ellipsis=1.0";
STYLE_TAGS
/* elm/button/base/style_call_icon_only_end */
/* This style is for End button in quickpanel view */
- TOGGLE_BTN(callui_qp_btn_end, "AO013", "AO013P", ICON_IMG_PATH"/call_noti_btn_end.png", "ATO017", "ATO017");
- TOGGLE_BTN(callui_qp_btn_call, "AO012P1", "AO012P", ICON_IMG_PATH"/call_noti_btn_send.png", "ATO017", "ATO017");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_end, "AO013", "AO013P", ICON_IMG_PATH"/call_noti_btn_end.png", "ATO017", "ATO017");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_call, "AO012P1", "AO012P", ICON_IMG_PATH"/call_noti_btn_send.png", "ATO017", "ATO017");
/* elm/button/base/callui_qp_btn_mute */
/* This style is for mute/unhold button in quickpanel view */
- TOGGLE_BTN(callui_qp_btn_mute, "AO001", "AO014P", ICON_IMG_PATH"/call_noti_btn_mute.png", "AO019", "AO019P");
- TOGGLE_BTN(callui_qp_btn_mute_on, "AO001", "AO014P", ICON_IMG_PATH"/call_noti_btn_mute.png", "AO018", "AO018P");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_mute, "qp_mc_toogle_norm", "qp_mc_toogle_norm", ICON_IMG_PATH"/call_noti_btn_mute.png", "AO019", "AO019P");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_mute_on, "qp_mc_toogle_off", "qp_mc_toogle_off", ICON_IMG_PATH"/call_noti_btn_mute.png", "AO018", "AO018P");
/* elm/button/base/callui_qp_btn_speaker */
/* This style is for speaker/unhold button in quickpanel view */
- TOGGLE_BTN(callui_qp_btn_speaker, "AO001", "AO014P", ICON_IMG_PATH"/call_noti_btn_speaker.png", "AO019", "AO019P");
- TOGGLE_BTN(callui_qp_btn_speaker_on, "AO001", "AO014P", ICON_IMG_PATH"/call_noti_btn_speaker.png", "AO018", "AO018P");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_speaker, "qp_mc_toogle_norm", "qp_mc_toogle_norm", ICON_IMG_PATH"/call_noti_btn_speaker.png", "AO019", "AO019P");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_speaker_on, "qp_mc_toogle_off", "qp_mc_toogle_off", ICON_IMG_PATH"/call_noti_btn_speaker.png", "AO018", "AO018P");
/* This style is for speaker/resume button in quickpanel view */
- TOGGLE_BTN(callui_qp_btn_resume, "AO001", "AO014P", ICON_IMG_PATH"/call_noti_btn_resume.png", "AO019", "AO019P");
- TOGGLE_BTN(callui_qp_btn_resume_on, "AO001", "AO014P", ICON_IMG_PATH"/call_noti_btn_resume.png", "AO018", "AO018P");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_resume, "qp_mc_toogle_norm", "qp_mc_toogle_norm", ICON_IMG_PATH"/call_noti_btn_resume.png", "AO019", "AO019P");
+ QP_MC_TOGGLE_BTN(callui_qp_btn_resume_on, "qp_mc_toogle_off", "qp_mc_toogle_off", ICON_IMG_PATH"/call_noti_btn_resume.png", "AO018", "AO018P");
group { name: "elm/button/base/end_call";
script {
}
images {
image: BG_IMG_PATH"/core_button_bg.#.png" COMP;
+ image: BG_IMG_PATH"/call_btn_circle.png" COMP;
}
parts {
part { name: "base";
if (get_int(multi_down) == 0) {
get_state(PART:"bg", st, 30, vl);
if (strcmp(st, "disabled")) {
- run_program(PROGRAM:"touch_sound");
- emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_sound");
+ emit("elm,action,click", "");
}
}
}
DEFAULT_CUSTOM_BG_BTN("active_noti_accept", AO037, AO037);
DEFAULT_CUSTOM_BG_BTN("active_noti_reject", AO038, AO038);
DEFAULT_CUSTOM_BG_BTN("active_noti_reject_with_msg", AO025, AO025);
-}
\ No newline at end of file
+}