diff options
author | shilpa singh <shilpa.singh@samsung.com> | 2013-07-03 21:23:32 +0530 |
---|---|---|
committer | Sungho Kwak <sungho1.kwak@samsung.com> | 2013-07-08 15:52:03 +0900 |
commit | 6e72beab4290917a1849b2545cfcdb8f0cf1d061 (patch) | |
tree | 9137821553b44f41c5ebef9166c70deba36cc55f | |
parent | 844e795842abbc76a78963c62e95acfe69f4a620 (diff) | |
download | efl-theme-tizen-6e72beab4290917a1849b2545cfcdb8f0cf1d061.tar.gz efl-theme-tizen-6e72beab4290917a1849b2545cfcdb8f0cf1d061.tar.bz2 efl-theme-tizen-6e72beab4290917a1849b2545cfcdb8f0cf1d061.zip |
[colorselector]: landscape support added.
Change-Id: I3244565f21048a36bfdf6c877ad1a062a5da04c5
-rw-r--r-- | themes/images/HD/dark/Controls/00_color_picker_brightness_h.png | bin | 0 -> 3340 bytes | |||
-rw-r--r-- | themes/images/HD/dark/Controls/00_color_picker_color_h.png | bin | 0 -> 3370 bytes | |||
-rw-r--r-- | themes/images/HD/dark/Controls/00_color_picker_saturation_h.png | bin | 0 -> 10641 bytes | |||
-rw-r--r-- | themes/images/HD/light/Controls/00_color_picker_brightness_h.png | bin | 0 -> 3340 bytes | |||
-rw-r--r-- | themes/images/HD/light/Controls/00_color_picker_color_h.png | bin | 0 -> 3370 bytes | |||
-rw-r--r-- | themes/images/HD/light/Controls/00_color_picker_saturation_h.png | bin | 0 -> 10641 bytes | |||
-rw-r--r-- | themes/widgets/colorselector.edc | 120 |
7 files changed, 105 insertions, 15 deletions
diff --git a/themes/images/HD/dark/Controls/00_color_picker_brightness_h.png b/themes/images/HD/dark/Controls/00_color_picker_brightness_h.png Binary files differnew file mode 100644 index 00000000..bd2c5e4b --- /dev/null +++ b/themes/images/HD/dark/Controls/00_color_picker_brightness_h.png diff --git a/themes/images/HD/dark/Controls/00_color_picker_color_h.png b/themes/images/HD/dark/Controls/00_color_picker_color_h.png Binary files differnew file mode 100644 index 00000000..e860aa11 --- /dev/null +++ b/themes/images/HD/dark/Controls/00_color_picker_color_h.png diff --git a/themes/images/HD/dark/Controls/00_color_picker_saturation_h.png b/themes/images/HD/dark/Controls/00_color_picker_saturation_h.png Binary files differnew file mode 100644 index 00000000..87a8a724 --- /dev/null +++ b/themes/images/HD/dark/Controls/00_color_picker_saturation_h.png diff --git a/themes/images/HD/light/Controls/00_color_picker_brightness_h.png b/themes/images/HD/light/Controls/00_color_picker_brightness_h.png Binary files differnew file mode 100644 index 00000000..bd2c5e4b --- /dev/null +++ b/themes/images/HD/light/Controls/00_color_picker_brightness_h.png diff --git a/themes/images/HD/light/Controls/00_color_picker_color_h.png b/themes/images/HD/light/Controls/00_color_picker_color_h.png Binary files differnew file mode 100644 index 00000000..e860aa11 --- /dev/null +++ b/themes/images/HD/light/Controls/00_color_picker_color_h.png diff --git a/themes/images/HD/light/Controls/00_color_picker_saturation_h.png b/themes/images/HD/light/Controls/00_color_picker_saturation_h.png Binary files differnew file mode 100644 index 00000000..87a8a724 --- /dev/null +++ b/themes/images/HD/light/Controls/00_color_picker_saturation_h.png diff --git a/themes/widgets/colorselector.edc b/themes/widgets/colorselector.edc index aa24cbd5..7d432125 100644 --- a/themes/widgets/colorselector.edc +++ b/themes/widgets/colorselector.edc @@ -568,6 +568,7 @@ group{ name: "elm/colorselector/image/colorbar_0/default"; images{ image: "00_color_picker_color.png" COMP; + image: "00_color_picker_color_h.png" COMP; } parts{ part{ @@ -575,11 +576,9 @@ group{ type: RECT; mouse_events: 1; scale: 1; - description{ + description { state: "default" 0.0; visible: 1; - rel1 {relative: 0.0 0.0; offset: 0 0;} - rel2 {relative: 1.0 1.0; offset: 0 0;} color: 0 0 0 0; } } @@ -587,21 +586,53 @@ group{ name: "colorbar_0_image"; type: IMAGE; mouse_events: 1; - description{ + description { state: "default" 0.0; visible: 1; - rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; } - rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; } - image.normal: "00_color_picker_color.png"; + rel1.to: "bg"; + rel2.to: "bg"; + image.normal: "00_color_picker_color.png"; + } + description { + state: "landscape" 0.0; + inherit: "default" 0.0; + image.normal: "00_color_picker_color_h.png"; } } } + programs { + program { name: "landscape_mode"; + source: "elm"; + signal: "elm,state,orient,90"; + action: STATE_SET "landscape" 0.0; + target: "colorbar_0_image"; + } + program { name: "landscape_mode2"; + source: "elm"; + signal: "elm,state,orient,270"; + action: STATE_SET "landscape" 0.0; + target: "colorbar_0_image"; + } + program { name: "portrait_mode"; + source: "elm"; + signal: "elm,state,orient,0"; + action: STATE_SET "default" 0.0; + target: "colorbar_0_image"; + } + program { name: "portrait_mode2"; + source: "elm"; + signal: "elm,state,orient,180"; + action: STATE_SET "default" 0.0; + target: "colorbar_0_image"; + } + } } group{ name: "elm/colorselector/image/colorbar_1/default"; images{ image: "00_color_picker_saturation.png" COMP; + image: "00_color_picker_saturation_h.png" COMP; } parts{ part{ @@ -612,8 +643,6 @@ group{ description{ state: "default" 0.0; visible: 1; - rel1 {relative: 0.0 0.0; offset: 0 0;} - rel2 {relative: 1.0 1.0; offset: 0 0;} color: 0 0 0 0; } } @@ -624,10 +653,41 @@ group{ description{ state: "default" 0.0; visible: 1; - rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; } - rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; } + rel1.to: "bg"; + rel2.to: "bg"; image.normal: "00_color_picker_saturation.png"; } + description { + state: "landscape" 0.0; + inherit: "default" 0.0; + image.normal: "00_color_picker_saturation_h.png"; + } + } + } + programs { + program { name: "landscape_mode"; + source: "elm"; + signal: "elm,state,orient,90"; + action: STATE_SET "landscape" 0.0; + target: "colorbar_1_image"; + } + program { name: "landscape_mode2"; + source: "elm"; + signal: "elm,state,orient,270"; + action: STATE_SET "landscape" 0.0; + target: "colorbar_1_image"; + } + program { name: "portrait_mode"; + source: "elm"; + signal: "elm,state,orient,0"; + action: STATE_SET "default" 0.0; + target: "colorbar_1_image"; + } + program { name: "portrait_mode2"; + source: "elm"; + signal: "elm,state,orient,180"; + action: STATE_SET "default" 0.0; + target: "colorbar_1_image"; } } } @@ -636,6 +696,7 @@ group{ name: "elm/colorselector/image/colorbar_2/default"; images{ image: "00_color_picker_brightness.png" COMP; + image: "00_color_picker_brightness_h.png" COMP; } parts{ part{ @@ -646,8 +707,6 @@ group{ description{ state: "default" 0.0; visible: 1; - rel1 {relative: 0.0 0.0; offset: 0 0;} - rel2 {relative: 1.0 1.0; offset: 0 0;} color: 0 0 0 0; } } @@ -658,10 +717,41 @@ group{ description{ state: "default" 0.0; visible: 1; - rel1 {relative: 0.0 0.0; offset: 0 0; to: "bg"; } - rel2 {relative: 1.0 1.0; offset: -1 -1; to: "bg"; } + rel1.to: "bg"; + rel2.to: "bg"; image.normal: "00_color_picker_brightness.png"; } + description { + state: "landscape" 0.0; + inherit: "default" 0.0; + image.normal: "00_color_picker_brightness_h.png"; + } + } + } + programs { + program { name: "landscape_mode"; + source: "elm"; + signal: "elm,state,orient,90"; + action: STATE_SET "landscape" 0.0; + target: "colorbar_2_image"; + } + program { name: "landscape_mode2"; + source: "elm"; + signal: "elm,state,orient,270"; + action: STATE_SET "landscape" 0.0; + target: "colorbar_2_image"; + } + program { name: "portrait_mode"; + source: "elm"; + signal: "elm,state,orient,0"; + action: STATE_SET "default" 0.0; + target: "colorbar_2_image"; + } + program { name: "portrait_mode2"; + source: "elm"; + signal: "elm,state,orient,180"; + action: STATE_SET "default" 0.0; + target: "colorbar_2_image"; } } } |