comp theme now allows for modification of focus rect
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 10 Feb 2015 23:09:43 +0000 (18:09 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 10 Feb 2015 23:10:24 +0000 (18:10 -0500)
legacy/elementary/data/themes/edc/comp.edc

index 754547a..9c7eec1 100644 (file)
@@ -226,6 +226,31 @@ group { name: "e/comp/screen/overlay/noeffects";
 group { name: "e/comp/frame/default";
    images.image: "win_glow.png" COMP;
    images.image: "win_shadow.png" COMP;
+   script {
+      public message(Msg_Type:type, id, ...) {
+         if ((type == MSG_INT) && (id == 0)) {
+            /* set state */
+            new st;
+
+            st = getarg(2);
+            if (st == 1)
+              set_state(PART:"gspacer", "custom", 0.0);
+            else
+              set_state(PART:"gspacer", "default", 0.0);
+         } else if ((type == MSG_INT_SET) && (id == 1)) {
+            new l, r, t, b;
+
+            l = getarg(2);
+            r = getarg(3);
+            t = getarg(3);
+            b = getarg(3);
+
+            custom_state(PART:"gspacer", "default", 0.0);
+            set_state_val(PART:"gspacer", STATE_REL1_OFFSET, l - 10, t - 10);
+            set_state_val(PART:"gspacer", STATE_REL2_OFFSET, -r + 10, -b + 10);
+         }
+      }
+   }
    parts {
       part { name: "clipper"; type: RECT;
          description { state: "default" 0.0;
@@ -265,10 +290,8 @@ group { name: "e/comp/frame/default";
             image.normal: "win_glow.png";
             image.border: 9 9 9 9;
             image.middle: 0;
-            rel1.to: "e.swallow.content";
-            rel1.offset: -5  -5;
-            rel2.to: "e.swallow.content";
-            rel2.offset: 4 4;
+            rel1.to: "gspacer";
+            rel2.to: "gspacer";
             fill.smooth: 0;
             color: 255 255 255 0;
             visible: 0;
@@ -311,6 +334,14 @@ group { name: "e/comp/frame/default";
             rel2.to: "shower";
          }
       }
+      spacer { "gspacer";
+         desc {
+            rel1.to: "e.swallow.content";
+            rel1.offset: -5  -5;
+            rel2.to: "e.swallow.content";
+            rel2.offset: 4 4;
+         }
+      }
    }
    programs {
        program {