#define MULTIBUTTONENTRY_BUTTON_TEXT_MAX_INC 382
#define MULTIBUTTONENTRY_BUTTON_NINEPATCH_INC 8 8 6 8
#define MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC 32
-#define MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC 255 255 255 255
+#define MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC "#FFFFFF"
#define MULTIBUTTONENTRY_NUMBER_TEXT_COLOR_INC 128 128 128 255 // same as multibuttonentry label
#define MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC 64
group {
name: "elm/multibuttonentry/btn/default";
+ styles {
+ style {
+ name: "multibuttonentry_btn_text_style";
+ base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" text_class=tizen";
+ }
+ style {
+ name: "multibuttonentry_btn_text_ellipsis_style";
+ base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" ellipsis=1 text_class=tizen";
+ }
+ }
+
images {
image: "00_contacts_button.png" COMP;
image: "00_contacts_button_press.png" COMP;
}
- data.item: "button_max_size" MULTIBUTTONENTRY_BUTTON_MAX_INC;
+ data.item: "button_left_pad" MULTIBUTTONENTRY_BUTTON_PAD_INC;
+ data.item: "button_right_pad" MULTIBUTTONENTRY_BUTTON_PAD_INC;
parts {
part {
}
part {
name: "elm.btn.text";
- type: TEXT;
+ type: TEXTBLOCK;
mouse_events: 0;
+ multiline: 0;
scale: 1;
description {
state: "default" 0.0;
- color: MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC;
text {
- font: "Tizen:style=Regular";
- size: MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC;
+ style: "multibuttonentry_btn_text_style";
min: 1 0;
- text_class: "tizen";
}
rel1 {
relative: 1.0 0.0;
description {
state: "ellipsis" 0.0;
inherit: "default" 0.0;
- min: MULTIBUTTONENTRY_BUTTON_TEXT_MAX_INC 0;
- text.min: 0 0;
+ text {
+ style: "multibuttonentry_btn_text_ellipsis_style";
+ min: 0 0;
+ }
}
}
part { name: "events";