From f451459819a9142b3c2da093cdb114ec5f98ba32 Mon Sep 17 00:00:00 2001 From: shilpa singh Date: Wed, 4 Apr 2012 17:58:22 +0530 Subject: [PATCH] [colorselector]: event area expansion. Change-Id: I43f2748c7533f82bd0ae0c601a6d1e159573e2b4 --- themes/inc/tizen-black-hd-inc.edc | 1 + themes/inc/tizen-black-inc.edc | 1 + themes/inc/tizen-hd-inc.edc | 1 + themes/inc/tizen-inc.edc | 1 + themes/widgets/colorselector.edc | 12 +++++++----- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/themes/inc/tizen-black-hd-inc.edc b/themes/inc/tizen-black-hd-inc.edc index 2ffe37f..c3667dd 100644 --- a/themes/inc/tizen-black-hd-inc.edc +++ b/themes/inc/tizen-black-hd-inc.edc @@ -1058,6 +1058,7 @@ #define COLORSELECTOR_ARROW_BG_RIGHT_PADDING 133 #define COLORSELECTOR_ARROW_MIN_WIDTH 16 #define COLORSELECTOR_ARROW_MIN_HEIGHT 80 +#define COLORSELECTOR_DRAGGABLE_EVENT_AREA 80 80 #define COLORSELECTOR_BUTTON_LEFT_PADDING 42 #define COLORSELECTOR_BUTTON_RIGHT_PADDING 42 #define COLORSELECTOR_BUTTON_WIDTH 74 diff --git a/themes/inc/tizen-black-inc.edc b/themes/inc/tizen-black-inc.edc index c3e1c43..b181f3b 100644 --- a/themes/inc/tizen-black-inc.edc +++ b/themes/inc/tizen-black-inc.edc @@ -1045,6 +1045,7 @@ #define COLORSELECTOR_ARROW_BG_RIGHT_PADDING 82 #define COLORSELECTOR_ARROW_MIN_WIDTH 10 #define COLORSELECTOR_ARROW_MIN_HEIGHT 50 +#define COLORSELECTOR_DRAGGABLE_EVENT_AREA 50 50 #define COLORSELECTOR_BUTTON_LEFT_PADDING 27 #define COLORSELECTOR_BUTTON_RIGHT_PADDING 27 #define COLORSELECTOR_BUTTON_WIDTH 46 diff --git a/themes/inc/tizen-hd-inc.edc b/themes/inc/tizen-hd-inc.edc index 7b45251..04c3d75 100644 --- a/themes/inc/tizen-hd-inc.edc +++ b/themes/inc/tizen-hd-inc.edc @@ -1064,6 +1064,7 @@ #define COLORSELECTOR_ARROW_BG_RIGHT_PADDING 133 #define COLORSELECTOR_ARROW_MIN_WIDTH 16 #define COLORSELECTOR_ARROW_MIN_HEIGHT 80 +#define COLORSELECTOR_DRAGGABLE_EVENT_AREA 80 80 #define COLORSELECTOR_BUTTON_LEFT_PADDING 42 #define COLORSELECTOR_BUTTON_RIGHT_PADDING 42 #define COLORSELECTOR_BUTTON_WIDTH 74 diff --git a/themes/inc/tizen-inc.edc b/themes/inc/tizen-inc.edc index fb39d6c..d958024 100644 --- a/themes/inc/tizen-inc.edc +++ b/themes/inc/tizen-inc.edc @@ -1058,6 +1058,7 @@ #define COLORSELECTOR_ARROW_BG_RIGHT_PADDING 82 #define COLORSELECTOR_ARROW_MIN_WIDTH 10 #define COLORSELECTOR_ARROW_MIN_HEIGHT 50 +#define COLORSELECTOR_DRAGGABLE_EVENT_AREA 50 50 #define COLORSELECTOR_BUTTON_LEFT_PADDING 27 #define COLORSELECTOR_BUTTON_RIGHT_PADDING 27 #define COLORSELECTOR_BUTTON_WIDTH 46 diff --git a/themes/widgets/colorselector.edc b/themes/widgets/colorselector.edc index 5463b6c..7b2c044 100644 --- a/themes/widgets/colorselector.edc +++ b/themes/widgets/colorselector.edc @@ -421,8 +421,8 @@ group{ } part{ name: "elm.arrow"; - type: SWALLOW; - mouse_events: 1; + type: RECT; + mouse_events: 0; scale: 1; description{ state: "default" 0.0; @@ -442,7 +442,7 @@ group{ part{ name: "elm.arrow_icon"; type: SWALLOW; - mouse_events: 1; + mouse_events: 0; scale: 1; description{ state: "default" 0.0; @@ -459,8 +459,10 @@ group{ scale: 1; description{ state: "default" 0.0; - rel1 {to_x: "elm.arrow_icon";} - rel2 {to_x: "elm.arrow_icon"; to_y: "elm.arrow_bg";} + min: COLORSELECTOR_DRAGGABLE_EVENT_AREA; + fixed: 1 1; + rel1.to: "elm.arrow_icon"; + rel2.to: "elm.arrow_icon"; color: 0 0 0 0; } dragable{ -- 2.7.4