}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/tickernoti";
+ group { name: "elm/button/base/expandable_number";
+ alias: "elm/button/base/text_only/expandable_number";
+ data {
+ item: "focus_highlight" "on";
+ }
images {
- image: "00_notification_button.png" COMP;
- image: "00_notification_button_press.png" COMP;
- image: "00_notification_button_dim.png" COMP;
+ image: "00_button_01.png" COMP;
+ image: "00_button_01_press.png" COMP;
+ image: "00_button_01_dim.png" COMP;
+ image: "00_arrow_expand.png" COMP;
+ image: "00_button_01_focus.png" COMP;
+ }
+ styles{
+ style { name: "btn_base_exapandable_number";
+ base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
+ style { name: "btn_base_exapandable_number_pressed";
+ base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
+ style { name: "btn_base_exapandable_number_dim";
+ base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
+ style { name: "btn_base_exapandable_number_focus";
+ base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
}
script {
public button_state = BUTTON_STATE_ENABLED;
part { name: "button_image";
scale: 1;
description { state: "default" 0.0;
- min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
- max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
+ min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
+ max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
image {
- normal: "00_notification_button.png";
- border: BUTTON_TICKERNOTI_BG_BORDER_INC;
+ normal: "00_button_01.png";
+ border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_notification_button_press.png";
+ image.normal: "00_button_01_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image.normal: "00_notification_button_dim.png";
+ image.normal: "00_button_01_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_notification_button_press.png";
+ image.normal: "00_button_01_press.png";
}
}
- part { name: "padding_left_top";
- type: RECT;
+ part { name: "focus_image";
scale: 1;
mouse_events: 0;
+ repeat_events: 1;
description { state: "default" 0.0;
+ min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
+ max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
visible: 0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
- fixed: 1 1;
+ rel1.to : "button_image";
+ rel2.to : "button_image";
+ image {
+ normal: "00_button_01_focus.png";
+ border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
+ border_scale: 1;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
}
}
- part { name: "bg";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "icononly" 0.0;
- inherit: "default" 0.0;
+ align: 0.0 0.0;
+ rel2.relative: 0.0 0.0;
+ min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
+ fixed: 1 1;
}
}
part { name: "padding_right_bottom";
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
+ visible: 0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
+ min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
fixed: 1 1;
- visible: 0;
}
}
part { name: "icon_rect";
mouse_events: 0;
description { state: "default" 0.0;
visible: 0;
- min: 0 0;
- fixed: 1 0;
- rel1 {
- relative: 1.0 1.0;
- to: "padding_left_top";
- }
- rel2 {
- relative: 1.0 0.0;
- to_x: "padding_left_top";
- to_y: "padding_right_bottom";
- }
- align: 0.0 0.5;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
- max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
- }
- description { state: "icononly" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "padding_after_icon";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0; //when only icon or no icon is there
- visible: 0;
- fixed: 1 0;
- min: 0 0;
- align: 0.0 0.0;
- rel1 {
- relative: 1.0 0.0;
- to: "icon_rect";
- }
- rel2.to: "icon_rect";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
- }
- description { state: "icononly" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "padding_before_text";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0; //when only icon or no icon is there
- visible: 0;
- align: 1.0 0.5;
+ min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
+ max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
fixed: 1 0;
- min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
rel1 {
relative: 0.0 1.0;
- to_x: "elm.text";
+ to_x: "padding_right_bottom";
to_y: "padding_left_top";
}
rel2 {
relative: 0.0 0.0;
- to_x: "elm.text";
- to_y: "padding_right_bottom";
+ to: "padding_right_bottom";
}
+ align: 1.0 0.5;
}
}
- part { name: "elm.swallow.content";
- type: SWALLOW;
+ part { name: "arrow_expand";
scale: 1;
- clip_to: "clipper";
+ clip_to: "icon_clipper";
+ mouse_events: 0;
description { state: "default" 0.0;
- visible: 0;
- fixed: 1 0;
align: 0.0 0.5;
- rel1 {
- relative: 1.0 1.0;
- to: "padding_left_top";
- }
- rel2 {
- relative: 1.0 0.0;
- to_x: "padding_left_top";
- to_y: "padding_right_bottom";
- }
- }
- description { state: "visible" 0.0;
- fixed: 1 0;
- min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
- max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
- align: 1.0 0.5;
- rel1 {
- relative: 0.0 1.0;
- to_x: "padding_before_text";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to_x: "padding_before_text";
- to_y: "padding_right_bottom";
- }
- }
- description { state: "icononly" 0.0;
- min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
- max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
+ min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
+ max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
+ fixed: 0 0;
+ rel1.to: "icon_rect";
+ rel2.to: "icon_rect";
+ image.normal:"00_arrow_expand.png";
}
}
part { name: "elm.text";
- type: TEXT;
+ type: TEXTBLOCK;
mouse_events: 0;
- effect: FAR_SHADOW BOTTOM;
scale: 1;
- clip_to: "clipper";
description { state: "default" 0.0;
- visible: 0;
+ min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
+ max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
+ fixed:1 0;
rel1 {
relative: 1.0 1.0;
- to_x: "padding_after_icon";
- to_y: "padding_left_top";
+ to: "padding_left_top";
}
rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
+ relative: 1.0 1.0;
+ to_x:"padding_left_top";
+ to_y:"padding_right_bottom";
}
- color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
- color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
+ align: 0.0 0.5;
text {
- font: "Tizen:style=Regular";
- size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
- text_class: "tizen";
+ style: "btn_base_exapandable_number";
+ min: 0 0;
+ fit: 1 1;
+ size_range: 28 32;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
- visible: 1;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
+ text {
+ style: "btn_base_exapandable_number_pressed";
+ min: 0 0;
+ fit: 1 1;
+ size_range: 28 32;
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "disabled_visible" 0.0;
inherit: "default" 0.0;
- color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
- color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
- visible: 1;
+ text {
+ style: "btn_base_exapandable_number_dim";
+ }
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
+ text {
+ style: "btn_base_exapandable_number_focus";
+ }
+ }
+ }
+ part { name: "icon_clipper";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
+ }
+ description { state: "clicked" 0.0;
+ color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
+ }
+ description { state: "disabled" 0.0;
+ color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
}
}
part { name: "over2";
color: 0 0 0 0;
}
}
- part { name: "clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
- }
- }
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
program { name: "button_click_anim";
action: STATE_SET "clicked" 0.0;
target: "button_image";
+ target: "icon_clipper";
after: "text_clicked";
}
program { name: "text_clicked";
signal: "mouse,up,1";
source: "over3";
script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (strcmp(st, "icononly"))
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
{
- emit("elm,action,default,text,set", "");
+ set_state(PART:"button_image", "default", 0.0);
set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"icon_clipper", "default", 0.0);
}
- if (get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
signal: "elm,state,text,visible";
source: "elm";
script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- set_state(PART:"bg", "visible", 0.0);
- }
if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
signal: "elm,state,text,hidden";
source: "elm";
script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- set_state(PART:"bg", "icononly", 0.0);
- }
set_state(PART:"elm.text", "default", 0.0);
}
}
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- set_state(PART:"bg", "visible", 0.0);
- }
- else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- set_state(PART:"bg", "icononly", 0.0);
- }
- }
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- target: "padding_after_icon";
- target: "icon_rect";
- target: "bg";
- }
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
action: STATE_SET "disabled" 0.0;
target: "button_image";
target: "disabler";
- target: "clipper";
+ target: "icon_clipper";
after: "disable_text";
}
program { name: "disable_text";
action: STATE_SET "default" 0.0;
target: "button_image";
target: "disabler";
- target: "clipper";
+ target: "icon_clipper";
after: "enable_text";
}
program { name: "enable_text";
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
- program { name: "focused";
- //signal: "elm,action,focus";
- //source: "elm";
+ program { name: "action_focus";
+ signal: "elm,action,focus_highlight,show";
+ source: "elm";
action: STATE_SET "focused" 0.0;
- target: "button_image";
- target: "elm.text";
+ target: "focus_image";
}
- program { name: "unfocused";
- //signal: "elm,action,unfocus";
- //source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- after: "unfocus_text";
- }
- program { name: "unfocus_text";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- }
- }
-
-///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/expandable_number";
- alias: "elm/button/base/text_only/expandable_number";
- data {
- item: "focus_highlight" "on";
- }
- images {
- image: "00_button_01.png" COMP;
- image: "00_button_01_press.png" COMP;
- image: "00_button_01_dim.png" COMP;
- image: "00_arrow_expand.png" COMP;
- image: "00_button_01_focus.png" COMP;
- }
- styles{
- style { name: "btn_base_exapandable_number";
- base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- }
- style { name: "btn_base_exapandable_number_pressed";
- base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- }
- style { name: "btn_base_exapandable_number_dim";
- base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- }
- style { name: "btn_base_exapandable_number_focus";
- base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- }
- }
- script {
- public button_state = BUTTON_STATE_ENABLED;
- }
- parts {
- part { name: "button_image";
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
- max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
- image {
- normal: "00_button_01.png";
- border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
- border_scale: 1;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_01_press.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_01_dim.png";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_01_press.png";
- }
- }
- part { name: "focus_image";
- scale: 1;
- mouse_events: 0;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
- max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
- visible: 0;
- rel1.to : "button_image";
- rel2.to : "button_image";
- image {
- normal: "00_button_01_focus.png";
- border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
- border_scale: 1;
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "padding_left_top";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
- fixed: 1 1;
- }
- }
- part { name: "padding_right_bottom";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
- fixed: 1 1;
- }
- }
- part { name: "icon_rect";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
- max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
- fixed: 1 0;
- rel1 {
- relative: 0.0 1.0;
- to_x: "padding_right_bottom";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
- }
- align: 1.0 0.5;
- }
- }
- part { name: "arrow_expand";
- scale: 1;
- clip_to: "icon_clipper";
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
- max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
- fixed: 0 0;
- rel1.to: "icon_rect";
- rel2.to: "icon_rect";
- image.normal:"00_arrow_expand.png";
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
- max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
- fixed:1 0;
- rel1 {
- relative: 1.0 1.0;
- to: "padding_left_top";
- }
- rel2 {
- relative: 1.0 1.0;
- to_x:"padding_left_top";
- to_y:"padding_right_bottom";
- }
- align: 0.0 0.5;
- text {
- style: "btn_base_exapandable_number";
- min: 0 0;
- fit: 1 1;
- size_range: 28 32;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- text {
- style: "btn_base_exapandable_number_pressed";
- min: 0 0;
- fit: 1 1;
- size_range: 28 32;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- text {
- style: "btn_base_exapandable_number_dim";
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- text {
- style: "btn_base_exapandable_number_focus";
- }
- }
- }
- part { name: "icon_clipper";
- scale: 1;
- type: RECT;
- description { state: "default" 0.0;
- color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
- }
- description { state: "clicked" 0.0;
- color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
- }
- }
- part { name: "over2";
- type: RECT;
- repeat_events: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "over3";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "over2";
- 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: "icon_clipper";
- after: "text_clicked";
- }
- program { name: "text_clicked";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
- }
- }
- program { name: "button_double_click";
- signal: "mouse,down,1,double";
- source: "over2";
- 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) != BUTTON_STATE_DISABLED)
- {
- set_state(PART:"button_image", "default", 0.0);
- set_state(PART:"elm.text", "visible", 0.0);
- set_state(PART:"icon_clipper", "default", 0.0);
- }
- }
- after: button_unpress;
- }
- program { name: "touch_snd";
- signal: "mouse,clicked,1";
- source: "over2";
- action: PLAY_SAMPLE "touch_sound" 1.0;
- after: button_unclick3;
- }
- program { name: "button_unclick3";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- if (get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "button_image";
- target: "disabler";
- target: "icon_clipper";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- set_int(button_state, BUTTON_STATE_DISABLED);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "disabler";
- target: "icon_clipper";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- set_int(button_state, BUTTON_STATE_ENABLED);
- }
- }
- program { name: "action_focus";
- signal: "elm,action,focus_highlight,show";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "focus_image";
- }
- program { name: "action_unfocus";
- signal: "elm,action,focus_highlight,hide";
- source: "elm";
+ program { name: "action_unfocus";
+ signal: "elm,action,focus_highlight,hide";
+ source: "elm";
action: STATE_SET "default" 0.0;
target: "focus_image";
}
}
}
-////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/bubble_sent";
- inherit: "elm/button/base/style1";
- images {
- image: "00_messagebubble_button_sent.png" COMP;
- image: "00_messagebubble_button_sent_press.png" COMP;
- image: "00_messagebubble_button_sent_dim.png" COMP;
- }
- parts {
- part { name: "button_image";
- scale: 1;
- description { state: "default" 0.0;
- image {
- normal: "00_messagebubble_button_sent.png";
- border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
- border_scale: 1;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_button_sent_press.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_button_sent_dim.png";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_button_sent_press.png";
- }
- }
- part { name: "elm.text";
- type: TEXT;
- mouse_events: 0;
- effect: FAR_SHADOW BOTTOM;
- scale: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- visible: 0;
- rel1 {
- relative: 1.0 1.0;
- to_x: "padding_after_icon";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
- }
- color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
- color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
- text {
- font: "Tizen:style=Regular";
- size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
- min: 0 0;
- max: 1 0;
- text_class: "tizen";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
- visible: 1;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
- }
- }
- }
- }
-
-////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/bubble_sent/multiline";
- inherit: "elm/button/base/bubble_sent";
- styles{
- style { name: "bubble_sent_multiline";
- base: "font=Tizen:style=Regular font_size="BUTTON_SENT_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- }
- }
- parts {
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- effect: FAR_SHADOW BOTTOM;
- scale: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 1.0;
- to_x: "padding_after_icon";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
- }
- color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
- color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
- text {
- style: "bubble_sent_multiline";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
- visible: 1;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
- }
- }
- }
- }
-
-///////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/bubble_receive";
- inherit: "elm/button/base/style1";
- images {
- image: "00_messagebubble_button_receive.png" COMP;
- image: "00_messagebubble_button_receive_press.png" COMP;
- image: "00_messagebubble_button_receive_dim.png" COMP;
- }
- parts {
- part { name: "button_image";
- scale: 1;
- description { state: "default" 0.0;
- image {
- normal: "00_messagebubble_button_receive.png";
- border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
- border_scale: 1;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_button_receive_press.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_button_receive_dim.png";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_button_receive_press.png";
- }
- }
- part { name: "elm.text";
- type: TEXT;
- mouse_events: 0;
- effect: SHADOW BOTTOM;
- scale: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- visible: 0;
- rel1 {
- relative: 1.0 1.0;
- to_x: "padding_after_icon";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
- }
- color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
- color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
- text {
- font: "Tizen:style=Regular";
- size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
- min: 0 0;
- max: 1 0;
- text_class: "tizen";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
- visible: 1;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
- }
- }
- }
- }
-
-///////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/bubble_receive/multiline";
- inherit: "elm/button/base/bubble_receive";
- styles{
- style { name: "bubble_receive_multiline";
- base: "font=Tizen:style=Regular font_size="BUTTON_RECEIVE_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- }
- }
- parts {
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- effect: SHADOW BOTTOM;
- scale: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 1.0;
- to_x: "padding_after_icon";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
- }
- color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
- color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
- text {
- style: "btn_style1_multiline";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
- visible: 1;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
- }
- }
- }
- }
-
-///////////////////////////////////////////////////////////////////////
-group { name: "elm/button/base/bubble_circle/receive";
- images {
- image: "00_messagebubble_circle_receive.png" COMP;
- image: "00_messagebubble_circle_receive_press.png" COMP;
- image: "00_messagebubble_circle_receive_dim.png" COMP;
- image: "00_button_right.png" COMP;
- image: "00_button_right_press.png" COMP;
- }
- parts {
- part { name: "button_image";
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
- max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
- image.normal: "00_messagebubble_circle_receive.png";
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_circle_receive_press.png";
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_circle_receive_dim.png";
- }
- }
- part { name: "image";
- scale: 1;
- clip_to: "icon_clipper";
- description { state: "default" 0.0;
- min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
- max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
- image.normal: "00_button_right.png";
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_right_press.png";
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "icon_clipper";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
- }
- description { state: "clicked" 0.0;
- color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
- }
- }
- part { name: "over1";
- type: RECT;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "over2";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "over1";
- 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: "image";
- target: "icon_clipper";
- }
- program { name: "button_double_click";
- signal: "mouse,down,1,double";
- source: "over1";
- after: "button_click_anim";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "button_unclick_anim";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "image";
- target: "icon_clipper";
- }
- program { name: "touch_snd";
- signal: "mouse,clicked,1";
- source: "over1";
- action: PLAY_SAMPLE "touch_sound" 1.0;
- after: button_unclick3;
- }
- program { name: "button_unclick3";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- target: "button_image";
- target: "icon_clipper";
-
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- target: "button_image";
- target: "icon_clipper";
- }
- }
- }
-
-///////////////////////////////////////////////////////////////////////
-group { name: "elm/button/base/bubble_circle/sent";
- images {
- image: "00_messagebubble_circle_sent.png" COMP;
- image: "00_messagebubble_circle_sent_press.png" COMP;
- image: "00_messagebubble_circle_sent_dim.png" COMP;
- image: "00_button_right.png" COMP;
- image: "00_button_right_press.png" COMP;
- }
- parts {
- part { name: "button_image";
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
- max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
- image.normal: "00_messagebubble_circle_sent.png";
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_circle_sent_press.png";
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_messagebubble_circle_sent_dim.png";
- }
- }
- part { name: "image";
- scale: 1;
- clip_to: "icon_clipper";
- description { state: "default" 0.0;
- min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
- max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
- image.normal: "00_button_right.png";
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_right_press.png";
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "icon_clipper";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
- }
- description { state: "clicked" 0.0;
- color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
- }
- }
- part { name: "over1";
- type: RECT;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "over2";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "over1";
- 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: "image";
- target: "icon_clipper";
- }
- program { name: "button_double_click";
- signal: "mouse,down,1,double";
- source: "over1";
- after: "button_click_anim";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "button_unclick_anim";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "image";
- target: "icon_clipper";
- }
- program { name: "touch_snd";
- signal: "mouse,clicked,1";
- source: "over1";
- action: PLAY_SAMPLE "touch_sound" 1.0;
- after: button_unclick3;
- }
- program { name: "button_unclick3";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- target: "button_image";
- target: "icon_clipper";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- target: "button_image";
- target: "icon_clipper";
- }
- }
- }
-
//////////////////////////////////////////////////////////////////////////////////////
group { name: "elm/button/base/editfield_clear";
images {