summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/widgets/button.edc155
1 files changed, 1 insertions, 154 deletions
diff --git a/themes/widgets/button.edc b/themes/widgets/button.edc
index 3db0e40a..df5772ee 100644
--- a/themes/widgets/button.edc
+++ b/themes/widgets/button.edc
@@ -7467,160 +7467,6 @@ group { name: "elm/button/base/bubble_circle/sent";
}
}
- group { name: "elm/button/base/focus";
- parts {
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- 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;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,press" "";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "over3";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- }
- program { name: "button_click3";
- signal: "mouse,clicked,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- }
- }
-
-#define BUTTON_DIALOGUE_FOCUS_STYLES(style_name, image_normal) \
- group { name: "elm/button/base/"style_name; \
- data { \
- item: "focus_highlight" "on"; \
- } \
- images { \
- image: image_normal COMP; \
- } \
- parts { \
- part { name: "focus_image_left_padding"; \
- type: SPACER; \
- scale: 1; \
- description { state: "default" 0.0; \
- fixed: 1 0; \
- min: BUTTON_FOCUS_DIALOGUE_LEFT_PADDING_INC; \
- rel2.relative: 0.0 1.0; \
- align: 0.0 0.5; \
- } \
- } \
- part { name: "focus_image_right_padding"; \
- type: SPACER; \
- scale: 1; \
- description { state: "default" 0.0; \
- fixed: 1 0; \
- min: BUTTON_FOCUS_DIALOGUE_RIGHT_PADDING_INC; \
- rel1.relative: 1.0 0.0; \
- align: 1.0 0.5; \
- } \
- } \
- part { name: "elm.swallow.content"; \
- type: SWALLOW; \
- scale: 1; \
- description { state: "default" 0.0; \
- } \
- } \
- part { name: "focus_image"; \
- scale: 1; \
- mouse_events: 0; \
- repeat_events: 1; \
- description { state: "default" 0.0; \
- visible: 0; \
- rel1 { \
- relative: 1.0 0.0; \
- to_x: "focus_image_left_padding"; \
- } \
- rel2 { \
- relative: 0.0 1.0; \
- to_x: "focus_image_right_padding"; \
- } \
- image { \
- normal: image_normal; \
- border: 6 6 6 6; \
- border_scale: 1; \
- } \
- } \
- description { state: "focused" 0.0; \
- inherit: "default" 0.0; \
- visible: 1; \
- } \
- } \
- 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; \
- } \
- } \
- } \
- programs { \
- program { name: "button_click"; \
- signal: "mouse,down,1"; \
- source: "over2"; \
- action: SIGNAL_EMIT "elm,action,press" ""; \
- } \
- program { name: "button_unclick"; \
- signal: "mouse,up,1"; \
- source: "over3"; \
- action: SIGNAL_EMIT "elm,action,unpress" ""; \
- } \
- program { name: "button_click3"; \
- signal: "mouse,clicked,1"; \
- source: "over2"; \
- action: SIGNAL_EMIT "elm,action,click" ""; \
- } \
- 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"; \
- action: STATE_SET "default" 0.0; \
- target: "focus_image"; \
- } \
- } \
- } \
-
-BUTTON_DIALOGUE_FOCUS_STYLES("dialogue_focus_top", "00_list_group_bg_top_focus.png")
-BUTTON_DIALOGUE_FOCUS_STYLES("dialogue_focus_center", "00_list_group_bg_center_focus.png")
-BUTTON_DIALOGUE_FOCUS_STYLES("dialogue_focus_bottom", "00_list_group_bg_bottom_focus.png")
-
#define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
group { name: "elm/button/base/"style_name; \
data { \
@@ -7700,6 +7546,7 @@ BUTTON_DIALOGUE_FOCUS_STYLES("dialogue_focus_bottom", "00_list_group_bg_bottom_f
} \
} \
+BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")