From dcea5e083a09e8928f43c25b464eaf57d1af38c8 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Wed, 12 Jun 2013 15:20:34 +0900 Subject: [PATCH] [button] Remove shadow effect of title_icon button style to use an image with shadow Change-Id: Ic99c83faab3957a5786585bd5cde6064eafbd3db --- themes/inc/tizen-dark-inc.edc | 1 - themes/widgets/button.edc | 30 +----------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/themes/inc/tizen-dark-inc.edc b/themes/inc/tizen-dark-inc.edc index 05181d7..1502015 100755 --- a/themes/inc/tizen-dark-inc.edc +++ b/themes/inc/tizen-dark-inc.edc @@ -389,7 +389,6 @@ #define BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC 255 255 255 255 #define BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC 255 255 255 76 -#define BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC 255 255 255 255 #define BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC 250 250 250 255 #define BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC 93 131 255 255 #define BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC 250 250 250 76 diff --git a/themes/widgets/button.edc b/themes/widgets/button.edc index 31e28c6..2873b16 100644 --- a/themes/widgets/button.edc +++ b/themes/widgets/button.edc @@ -5881,19 +5881,7 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png") visible: 1; } } - part { name: "elm.swallow.icon.proxy"; - type: PROXY; - scale: 1; - clip_to: "elm.icon.proxy.clipper"; - description { state: "default" 0.0; - source: "elm.swallow.content"; - rel1.to: "elm.swallow.content"; - rel1.offset: 0 -2; - rel2.to: "elm.swallow.content"; - rel2.offset: 0 -2; - } - } - part { name: "elm.icon.proxy.clipper"; + part { name: "elm.icon.clipper"; type: RECT; description { state: "default" 0.0; color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC; @@ -5905,18 +5893,6 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png") color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC; } } - part { name: "elm.icon.clipper"; - type: RECT; - description { state: "default" 0.0; - color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC; - } - description { state: "clicked" 0.0; - color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC; - } - description { state: "disabled" 0.0; - color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC; - } - } part { name: "over2"; type: RECT; ignore_flags: ON_HOLD; @@ -5953,7 +5929,6 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png") program { name: "button_click_anim"; script { set_state(PART:"elm.icon.clipper", "clicked", 0.0); - set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0); } } program { name: "button_double_click"; @@ -5969,7 +5944,6 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png") source: "over3"; action: STATE_SET "default" 0.0; target: "elm.icon.clipper"; - target: "elm.icon.proxy.clipper"; after: button_unpress; } program { name: "touch_snd"; @@ -5999,7 +5973,6 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png") script { set_state(PART:"disabler", "disabled", 0.0); set_state(PART:"elm.icon.clipper", "disabled", 0.0); - set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0); } } program { name: "enable"; @@ -6008,7 +5981,6 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png") script { set_state(PART:"disabler", "default", 0.0); set_state(PART:"elm.icon.clipper", "default", 0.0); - set_state(PART:"elm.icon.proxy.clipper", "default", 0.0); } } program { name: "change_to_landscape"; -- 2.7.4