From: Amit Kamboj Date: Wed, 1 Aug 2012 11:08:24 +0000 (+0530) Subject: [check]ON/OFF style modified based on white theme UX-1.0 X-Git-Tag: submit/2.0alpha-wayland/20121130.000903~54^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0f1077df27467c65a55aab87f8d43a0cad0a355;p=profile%2Fivi%2Fefl-theme-tizen.git [check]ON/OFF style modified based on white theme UX-1.0 Change-Id: Ic7e12e924549184210c7b697da78d6a3a890c6f3 --- diff --git a/themes/images/tizen-hd/00_button_off_01_dim.png b/themes/images/tizen-hd/00_button_off_01_dim.png new file mode 100644 index 0000000..5f26001 Binary files /dev/null and b/themes/images/tizen-hd/00_button_off_01_dim.png differ diff --git a/themes/images/tizen-hd/00_button_off_dim.png b/themes/images/tizen-hd/00_button_off_dim.png new file mode 100644 index 0000000..7a92b48 Binary files /dev/null and b/themes/images/tizen-hd/00_button_off_dim.png differ diff --git a/themes/images/tizen-hd/00_button_on_01_dim.png b/themes/images/tizen-hd/00_button_on_01_dim.png new file mode 100644 index 0000000..9035605 Binary files /dev/null and b/themes/images/tizen-hd/00_button_on_01_dim.png differ diff --git a/themes/images/tizen-hd/00_button_on_dim.png b/themes/images/tizen-hd/00_button_on_dim.png new file mode 100644 index 0000000..4558662 Binary files /dev/null and b/themes/images/tizen-hd/00_button_on_dim.png differ diff --git a/themes/widgets/check.edc b/themes/widgets/check.edc index f29cb38..f43b2b8 100644 --- a/themes/widgets/check.edc +++ b/themes/widgets/check.edc @@ -976,11 +976,13 @@ CHECK_STYLE_FOR_GENLIST("default/genlist_edit", CHECK_STYLE_FAVORITE_DEFAULT_BG_ } //////////////////////////////////////////////////////////////////////////////// -#define CHECK_STYLE_ON_OFF(style_name, on_image, off_image) \ +#define CHECK_STYLE_ON_OFF(style_name, on_image, off_image, on_dim_image, off_dim_image) \ group { name: "elm/check/base/"style_name; \ images { \ image: on_image COMP; \ image: off_image COMP; \ + image: on_dim_image COMP; \ + image: off_dim_image COMP; \ } \ parts { \ part { name: "bg"; \ @@ -1021,6 +1023,14 @@ CHECK_STYLE_FOR_GENLIST("default/genlist_edit", CHECK_STYLE_FAVORITE_DEFAULT_BG_ inherit: "default" 0.0; \ image.normal: on_image; \ } \ + description { state: "visible_disable" 0.0; \ + inherit: "default" 0.0; \ + image.normal: on_dim_image; \ + } \ + description { state: "off_disable" 0.0; \ + inherit: "default" 0.0; \ + image.normal: off_dim_image; \ + } \ } \ part { name: "elm.swallow.content"; \ type: SWALLOW; \ @@ -1214,6 +1224,11 @@ CHECK_STYLE_FOR_GENLIST("default/genlist_edit", CHECK_STYLE_FAVORITE_DEFAULT_BG_ set_state(PART:"elm.text", "disabled_visible", 0.0); \ else \ set_state(PART:"elm.text", "disabled", 0.0); \ + get_state(PART:"check", st, 30, vl); \ + if (!strcmp(st, "visible")) \ + set_state(PART:"check", "visible_disable", 0.0); \ + else \ + set_state(PART:"check", "off_disable", 0.0); \ get_state(PART:"elm.swallow.content", st, 30, vl); \ if (!strcmp(st, "visible")) \ set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \ @@ -1238,6 +1253,11 @@ CHECK_STYLE_FOR_GENLIST("default/genlist_edit", CHECK_STYLE_FAVORITE_DEFAULT_BG_ set_state(PART:"elm.text", "visible", 0.0); \ else \ set_state(PART:"elm.text", "default", 0.0); \ + get_state(PART:"check", st, 30, vl); \ + if (!strcmp(st, "visible_disable")) \ + set_state(PART:"check", "visible", 0.0); \ + else \ + set_state(PART:"check", "default", 0.0); \ get_state(PART:"elm.swallow.content", st, 30, vl); \ if (!strcmp(st, "visible")) \ set_state(PART:"elm.swallow.content", "visible", 0.0); \ @@ -1248,9 +1268,9 @@ CHECK_STYLE_FOR_GENLIST("default/genlist_edit", CHECK_STYLE_FAVORITE_DEFAULT_BG_ } \ } /////////////////////////////////////////////////////////////////////////////////////// - CHECK_STYLE_ON_OFF("on&off", "00_button_on.png", "00_button_off.png") + CHECK_STYLE_ON_OFF("on&off", "00_button_on.png", "00_button_off.png","00_button_on_dim.png", "00_button_off_dim.png") - CHECK_STYLE_ON_OFF("on&off_01", "00_button_on_01.png", "00_button_off_01.png") + CHECK_STYLE_ON_OFF("on&off_01", "00_button_on_01.png", "00_button_off_01.png", "00_button_on_01_dim.png", "00_button_off_01_dim.png") /////////////////////////////////////////////////////////////////////////////////////// #define CHECK_STYLE_FAVORITE(style_name, min_width, min_height) \ group { name: "elm/check/base/"style_name; \