summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kamboj <amit.kamboj@samsung.com>2012-08-01 16:38:24 +0530
committerAmit Kamboj <amit.kamboj@samsung.com>2012-08-01 16:38:24 +0530
commite0f1077df27467c65a55aab87f8d43a0cad0a355 (patch)
tree5da208e22837bf8c6d6d7011be6080ebb516ae92
parent24e919faef273b39e7c4820b7acf169b840b33cd (diff)
downloadefl-theme-tizen-e0f1077df27467c65a55aab87f8d43a0cad0a355.tar.gz
efl-theme-tizen-e0f1077df27467c65a55aab87f8d43a0cad0a355.tar.bz2
efl-theme-tizen-e0f1077df27467c65a55aab87f8d43a0cad0a355.zip
[check]ON/OFF style modified based on white theme UX-1.0
Change-Id: Ic7e12e924549184210c7b697da78d6a3a890c6f3
-rw-r--r--themes/images/tizen-hd/00_button_off_01_dim.pngbin0 -> 3999 bytes
-rw-r--r--themes/images/tizen-hd/00_button_off_dim.pngbin0 -> 4150 bytes
-rw-r--r--themes/images/tizen-hd/00_button_on_01_dim.pngbin0 -> 3601 bytes
-rw-r--r--themes/images/tizen-hd/00_button_on_dim.pngbin0 -> 4371 bytes
-rw-r--r--themes/widgets/check.edc26
5 files changed, 23 insertions, 3 deletions
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 00000000..5f26001a
--- /dev/null
+++ b/themes/images/tizen-hd/00_button_off_01_dim.png
Binary files 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 00000000..7a92b482
--- /dev/null
+++ b/themes/images/tizen-hd/00_button_off_dim.png
Binary files 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 00000000..90356055
--- /dev/null
+++ b/themes/images/tizen-hd/00_button_on_01_dim.png
Binary files 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 00000000..45586621
--- /dev/null
+++ b/themes/images/tizen-hd/00_button_on_dim.png
Binary files differ
diff --git a/themes/widgets/check.edc b/themes/widgets/check.edc
index f29cb38c..f43b2b89 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; \