} \
}
-#define FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, vg_effect_start_koeff, vg_effect_end_koeff, part_ext) \
+#define FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, image_pressed, color_normal, color_press, color_dim, min_width, min_height, vg_effect_start_koeff, vg_effect_end_koeff, part_ext) \
group { name: "elm/button/base/email.flat.square."style_name; \
data.item: "vector_ux" "no_bg"; \
data.item: "corner_radius" FLAT_SQUARE_BTN_CORNER_RADIUS; \
images { \
image: image_normal COMP; \
+ image: image_pressed COMP; \
} \
script { \
public mouse_down = 0; \
} \
description { state: "pressed" 0.0; \
inherit: "default" 0.0; \
+ image.normal: image_pressed; \
color: color_press; \
} \
description { state: "disabled" 0.0; \
FLAT_CIRCLE_BTN_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, 0.7, 1.0)
#define FLAT_SQUARE_BTN_VI_OUTER_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height) \
- FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, 1.0, 1.3,)
+ FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, image_normal, color_normal, color_press, color_dim, min_width, min_height, 1.0, 1.3,)
#define FLAT_SQUARE_BTN_VI_INNER_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height) \
- FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, 0.7, 1.0,)
+ FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, image_normal, color_normal, color_press, color_dim, min_width, min_height, 0.7, 1.0,)
#define FLAT_SQUARE_BTN_VI_OUTER_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, part_ext) \
- FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, 1.0, 1.3, part_ext)
+ FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, image_normal, color_normal, color_press, color_dim, min_width, min_height, 1.0, 1.3, part_ext)
#define FLAT_SQUARE_BTN_VI_INNER_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, part_ext) \
- FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, color_normal, color_press, color_dim, min_width, min_height, 0.7, 1.0, part_ext)
+ FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_normal, image_normal, color_normal, color_press, color_dim, min_width, min_height, 0.7, 1.0, part_ext)
+
+#define FLAT_SQUARE_TOGGLE_BTN_VI_INNER_STYLE(style_name, image_unpressed, image_pressed, color_normal, color_press, color_dim, min_width, min_height) \
+ FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_unpressed, image_pressed, color_normal, color_press, color_dim, min_width, min_height, 0.7, 1.0, )
+
+#define FLAT_SQUARE_TOGGLE_BTN_VI_OUTER_STYLE(style_name, image_unpressed, image_pressed, color_normal, color_press, color_dim, min_width, min_height) \
+ FLAT_SQUARE_BTN_CUSTOM_STYLE(style_name, image_unpressed, image_pressed, color_normal, color_press, color_dim, min_width, min_height, 1.0, 1.3, )
#define FLAT_TEXT_BTN_VI_OUTER_STYLE(style_name, text_style_normal, text_style_press, text_style_dim) \
FLAT_TEXT_BTN_STYLE(style_name, text_style_normal, text_style_press, text_style_dim, 1.0, 1.3)