hermet pushed a commit to branch master.
commit 90887530ad32477ee3ab1be283c22ef481894d70
Author: ChunEon Park <[email protected]>
Date: Tue Aug 20 17:34:19 2013 +0900
themes/dark - now work flipselector on disabled style.
---
edje/edc/elm/flipselector.edc | 89 +++++++++++++++++++++++++++++++++----------
1 file changed, 69 insertions(+), 20 deletions(-)
diff --git a/edje/edc/elm/flipselector.edc b/edje/edc/elm/flipselector.edc
index 7ace61a..ab43748 100644
--- a/edje/edc/elm/flipselector.edc
+++ b/edje/edc/elm/flipselector.edc
@@ -7,6 +7,8 @@ group { name: "elm/flipselector/base/default";
image: "flip_shad.png" COMP;
image: "sym_up_light_normal.png" COMP;
image: "sym_down_light_normal.png" COMP;
+ image: "sym_up_dark_normal.png" COMP;
+ image: "sym_down_dark_normal.png" COMP;
image: "shine.png" COMP;
}
data {
@@ -208,6 +210,7 @@ group { name: "elm/flipselector/base/default";
part { name: "bottom_text_prev";
type: TEXT;
effect: SHADOW BOTTOM;
+ clip_to: "bottom_clipper";
mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
@@ -221,6 +224,10 @@ group { name: "elm/flipselector/base/default";
}
color: FN_COL_DEFAULT;
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: FN_COL_DISABLE;
+ }
}
part { name: "bottom_shadow";
mouse_events: 0;
@@ -273,6 +280,7 @@ group { name: "elm/flipselector/base/default";
part { name: "elm.bottom";
type: TEXT;
effect: SHADOW BOTTOM;
+ clip_to: "bottom_clipper";
mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
@@ -292,6 +300,10 @@ group { name: "elm/flipselector/base/default";
visible: 0;
rel2.relative: 1.0 0.5; /* FIXME: same visual effect? --> MAP! */
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: FN_COL_DISABLE;
+ }
}
part { name: "top_prev";
type: RECT;
@@ -321,6 +333,11 @@ group { name: "elm/flipselector/base/default";
color: 205 205 205 255;
color3: 0 0 0 128;
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 16 16 16 255;
+ color3: 255 255 255 25;
+ }
}
part { name: "top_shine_prev";
type: IMAGE;
@@ -371,6 +388,11 @@ group { name: "elm/flipselector/base/default";
visible: 0;
rel1.relative: 0.0 0.5;
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 16 16 16 255;
+ color3: 255 255 255 25;
+ }
}
part { name: "top_shine_cur";
type: IMAGE;
@@ -391,7 +413,6 @@ group { name: "elm/flipselector/base/default";
}
part { name: "arrow_top";
mouse_events: 0;
- clip_to: "disclip";
scale: 1;
description { state: "default" 0.0;
min: 15 15;
@@ -405,10 +426,13 @@ group { name: "elm/flipselector/base/default";
inherit: "default" 0.0;
visible: 0;
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "sym_up_dark_normal.png";
+ }
}
part { name: "arrow_bottom";
mouse_events: 0;
- clip_to: "disclip";
scale: 1;
description { state: "default" 0.0;
min: 15 15;
@@ -422,11 +446,14 @@ group { name: "elm/flipselector/base/default";
inherit: "default" 0.0;
visible: 0;
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "sym_down_dark_normal.png";
+ }
}
part { name: "top_clipper";
type: RECT;
mouse_events: 0;
- clip_to: "disclip";
description { state: "default" 0.0;
rel1.to: "top";
rel2.to: "top";
@@ -434,28 +461,18 @@ group { name: "elm/flipselector/base/default";
}
part { name: "bottom_clipper";
type: RECT;
- clip_to: "disclip";
description { state: "default" 0.0;
rel1.to: "bottom";
rel2.to: "bottom";
}
}
- part { name: "disclip";
- type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "enabled" 0.0;
- color: 100 100 100 100;
- }
- }
part { name: "event_blocker";
type: RECT;
description { state: "default" 0.0;
color: 0 0 0 0;
visible: 0;
}
- description { state: "enabled" 0.0;
+ description { state: "disabled" 0.0;
inherit: "default" 0.0;
visible: 1;
}
@@ -513,16 +530,48 @@ group { name: "elm/flipselector/base/default";
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
- action: STATE_SET "enabled" 0.0;
- target: "disclip";
- target: "event_blocker";
+ script {
+ new st[31];
+ new Float:vl;
+ set_state(PART:"event_blocker", "disabled", 0.0);
+ set_state(PART:"elm.bottom", "disabled", 0.0);
+ set_state(PART:"elm.top", "disabled", 0.0);
+ set_state(PART:"bottom_text_prev", "disabled", 0.0);
+ set_state(PART:"top_text_prev", "disabled", 0.0);
+
+ get_state(PART:"arrow_bottom", st, 30, vl);
+ if (strcmp(st, "hidden"))
+ set_state(PART:"arrow_bottom", "disabled", 0.0);
+
+ get_state(PART:"arrow_top", st, 30, vl);
+ if (strcmp(st, "hidden"))
+ set_state(PART:"arrow_top", "disabled", 0.0);
+
+ get_state(PART:"top_cur", st, 30, vl);
+ if (strcmp(st, "shrink"))
+ set_state(PART:"top_shine_cur", "visible", 0.0);
+ }
}
program { name: "enable";
signal: "elm,state,enabled";
source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disclip";
- target: "event_blocker";
+ script {
+ new st[31];
+ new Float:vl;
+ set_state(PART:"event_blocker", "default", 0.0);
+ set_state(PART:"elm.bottom", "default", 0.0);
+ set_state(PART:"elm.top", "default", 0.0);
+ set_state(PART:"bottom_text_prev", "default", 0.0);
+ set_state(PART:"top_text_prev", "default", 0.0);
+
+ get_state(PART:"arrow_bottom", st, 30, vl);
+ if (strcmp(st, "hidden"))
+ set_state(PART:"arrow_bottom", "default", 0.0);
+
+ get_state(PART:"arrow_top", st, 30, vl);
+ if (strcmp(st, "hidden"))
+ set_state(PART:"arrow_top", "default", 0.0);
+ }
}
}
}
--
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk