From: tasn Date: Tue, 22 Feb 2011 16:33:38 +0000 (+0000) Subject: Elementary theme-bubble: revert 55839 that introduced bugs with no-icon. X-Git-Tag: REL_F_I9500_20120323_1~17^2~3120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3df1d9c5ad47164a5ce8d84e264b39284993651c;p=framework%2Fuifw%2Felementary.git Elementary theme-bubble: revert 55839 that introduced bugs with no-icon. The commit caused bugs when there was no icon, exactly what it claimed to have fixed. I took a look at the commit and it looked a bit messy, too messy for me to try to fix. A rewrite makes more sense. Previous commit message: From: Sohyun Kim Subject: [E-devel] [Patch] elm_bubble theme patch I'm Sohyun Kim. Nice to meet you. This is a patch for bubble theme. The bubble has a region for icon, label and info text. However, it has the region, if icon, label and info text are not set. I modified theme and added edje signals. 1. add edje signal for label and info text state 2. remove text size for label and info text default state -> set it on "visible" state 3. add base image state for info text only git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@57244 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/data/themes/default.edc b/data/themes/default.edc index 5068151..9139cb7 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -9058,7 +9058,6 @@ collections { description { state: "default" 0.0; align: 0.0 0.0; fixed: 0 1; - visible: 0; rel1 { to_x: "elm.swallow.icon"; relative: 1.0 0.0; @@ -9069,10 +9068,6 @@ collections { relative: 0.0 0.0; offset: -5 4; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 255; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9090,7 +9085,6 @@ collections { description { state: "default" 0.0; align: 1.0 0.0; fixed: 1 1; - visible: 0; rel1 { relative: 1.0 0.0; offset: -5 4; @@ -9099,10 +9093,6 @@ collections { relative: 1.0 0.0; offset: -5 4; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 64; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9128,10 +9118,6 @@ collections { image.middle: SOLID; fill.smooth: 0; } - description { state: "infobase" 0.0; - inherit: "default" 0.0; - rel1.to_y: "elm.info"; - } } part { name: "elm.swallow.content"; type: SWALLOW; @@ -9178,62 +9164,15 @@ collections { name: "icon_show"; signal: "elm,state,icon,visible"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base0", st, 30, vl); - if (!strcmp(st, "infobase")) - set_state(PART:"base0", "default", 0.0); - set_state(PART:"elm.swallow.icon", "visible", 0.0); - } + action: STATE_SET "visible" 0.0; + target: "elm.swallow.icon"; } program { name: "icon_hide"; signal: "elm,state,icon,hidden"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.info", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.swallow.icon", "default", 0.0); - } - } - program { - name: "text_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { - name: "text_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - name: "info_show"; - signal: "elm,state,info,visible"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.swallow.icon", st, 30, vl); - if (!strcmp(st, "default")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.info", "visible", 0.0); - } - } - program { - name: "info_hide"; - signal: "elm,state,info,hidden"; - source: "elm"; action: STATE_SET "default" 0.0; - target: "elm.info"; - target: "base0"; + target: "elm.swallow.icon"; } } } @@ -9281,7 +9220,6 @@ collections { description { state: "default" 0.0; align: 0.0 0.0; fixed: 0 1; - visible: 0; rel1 { relative: 0.0 0.0; offset: 4 4; @@ -9291,10 +9229,6 @@ collections { relative: 0.0 0.0; offset: -5 4; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 255; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9312,7 +9246,6 @@ collections { description { state: "default" 0.0; align: 1.0 0.0; fixed: 1 1; - visible: 0; rel1 { relative: 1.0 0.0; offset: -5 4; @@ -9322,10 +9255,6 @@ collections { relative: 0.0 0.0; offset: -5 4; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 64; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9351,10 +9280,6 @@ collections { image.middle: SOLID; fill.smooth: 0; } - description { state: "infobase" 0.0; - inherit: "default" 0.0; - rel1.to_y: "elm.info"; - } } part { name: "elm.swallow.content"; type: SWALLOW; @@ -9401,62 +9326,15 @@ collections { name: "icon_show"; signal: "elm,state,icon,visible"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base0", st, 30, vl); - if (!strcmp(st, "infobase")) - set_state(PART:"base0", "default", 0.0); - set_state(PART:"elm.swallow.icon", "visible", 0.0); - } + action: STATE_SET "visible" 0.0; + target: "elm.swallow.icon"; } program { name: "icon_hide"; signal: "elm,state,icon,hidden"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.info", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.swallow.icon", "default", 0.0); - } - } - program { - name: "text_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { - name: "text_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - name: "info_show"; - signal: "elm,state,info,visible"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.swallow.icon", st, 30, vl); - if (!strcmp(st, "default")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.info", "visible", 0.0); - } - } - program { - name: "info_hide"; - signal: "elm,state,info,hidden"; - source: "elm"; action: STATE_SET "default" 0.0; - target: "elm.info"; - target: "base0"; + target: "elm.swallow.icon"; } } } @@ -9504,7 +9382,6 @@ collections { description { state: "default" 0.0; align: 0.0 1.0; fixed: 0 1; - visible: 0; rel1 { to_x: "elm.swallow.icon"; relative: 1.0 1.0; @@ -9515,10 +9392,6 @@ collections { relative: 0.0 1.0; offset: -5 -5; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 255; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9536,7 +9409,6 @@ collections { description { state: "default" 0.0; align: 1.0 1.0; fixed: 1 1; - visible: 0; rel1 { relative: 1.0 1.0; offset: -5 -5; @@ -9545,10 +9417,6 @@ collections { relative: 1.0 1.0; offset: -5 -5; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 64; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9574,10 +9442,6 @@ collections { image.middle: SOLID; fill.smooth: 0; } - description { state: "infobase" 0.0; - inherit: "default" 0.0; - rel2.to_y: "elm.info"; - } } part { name: "elm.swallow.content"; type: SWALLOW; @@ -9617,62 +9481,15 @@ collections { name: "icon_show"; signal: "elm,state,icon,visible"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base0", st, 30, vl); - if (!strcmp(st, "infobase")) - set_state(PART:"base0", "default", 0.0); - set_state(PART:"elm.swallow.icon", "visible", 0.0); - } + action: STATE_SET "visible" 0.0; + target: "elm.swallow.icon"; } program { name: "icon_hide"; signal: "elm,state,icon,hidden"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.info", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.swallow.icon", "default", 0.0); - } - } - program { - name: "text_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { - name: "text_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - name: "info_show"; - signal: "elm,state,info,visible"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.swallow.icon", st, 30, vl); - if (!strcmp(st, "default")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.info", "visible", 0.0); - } - } - program { - name: "info_hide"; - signal: "elm,state,info,hidden"; - source: "elm"; action: STATE_SET "default" 0.0; - target: "elm.info"; - target: "base0"; + target: "elm.swallow.icon"; } } } @@ -9720,7 +9537,6 @@ collections { description { state: "default" 0.0; align: 0.0 1.0; fixed: 0 1; - visible: 0; rel1 { relative: 0.0 1.0; offset: 4 -5; @@ -9730,10 +9546,6 @@ collections { relative: 0.0 1.0; offset: -5 -5; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 255; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9751,7 +9563,6 @@ collections { description { state: "default" 0.0; align: 1.0 1.0; fixed: 1 1; - visible: 0; rel1 { relative: 1.0 1.0; offset: -5 -5; @@ -9761,10 +9572,6 @@ collections { relative: 0.0 1.0; offset: -5 -5; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; color: 0 0 0 64; text { font: "Sans:style=Bold,Edje-Vera-Bold"; @@ -9790,10 +9597,6 @@ collections { image.middle: SOLID; fill.smooth: 0; } - description { state: "infobase" 0.0; - inherit: "default" 0.0; - rel2.to_y: "elm.info"; - } } part { name: "elm.swallow.content"; type: SWALLOW; @@ -9833,62 +9636,15 @@ collections { name: "icon_show"; signal: "elm,state,icon,visible"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base0", st, 30, vl); - if (!strcmp(st, "infobase")) - set_state(PART:"base0", "default", 0.0); - set_state(PART:"elm.swallow.icon", "visible", 0.0); - } + action: STATE_SET "visible" 0.0; + target: "elm.swallow.icon"; } program { name: "icon_hide"; signal: "elm,state,icon,hidden"; source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.info", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.swallow.icon", "default", 0.0); - } - } - program { - name: "text_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { - name: "text_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - name: "info_show"; - signal: "elm,state,info,visible"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.swallow.icon", st, 30, vl); - if (!strcmp(st, "default")) - set_state(PART:"base0", "infobase", 0.0); - set_state(PART:"elm.info", "visible", 0.0); - } - } - program { - name: "info_hide"; - signal: "elm,state,info,hidden"; - source: "elm"; action: STATE_SET "default" 0.0; - target: "elm.info"; - target: "base0"; + target: "elm.swallow.icon"; } } }