netstar pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=86b5b6128c310a51aa38a4217c6be71424210062

commit 86b5b6128c310a51aa38a4217c6be71424210062
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue Jul 7 15:53:50 2020 +0100

    ibox: Preview Theme Code
    
    Summary: Dependency for https://phab.enlightenment.org/D12046
    
    Reviewers: raster
    
    Reviewed By: raster
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D12047
---
 data/elementary/themes/edc/ibar-ibox.edc | 34 ++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/data/elementary/themes/edc/ibar-ibox.edc 
b/data/elementary/themes/edc/ibar-ibox.edc
index 3d34f3c5e4..d9076004a8 100644
--- a/data/elementary/themes/edc/ibar-ibox.edc
+++ b/data/elementary/themes/edc/ibar-ibox.edc
@@ -61,6 +61,28 @@ group { name: "e/modules/ibox/icon";
             rel2.relative: 1.0 0.85;
          }
       }
+
+      part { name: "e.swallow.preview"; type: SWALLOW;
+         clip_to: "item_clip";
+         description { state: "default" 0.0;
+            rel1.offset:  1 1;
+            rel2.offset: -2 -2;
+            rel1.relative: 0.1 0.1;
+            rel2.relative: 0.9 0.9;
+            align: 0.5 0.5;
+         }
+         description { state: "bounce1" 0.0;
+            inherit: "default" 0.0;
+            rel1.relative: 0.0 0.15;
+            rel2.relative: 1.0 1.15;
+         }
+         description { state: "bounce2" 0.0;
+            inherit: "default" 0.0;
+            rel1.relative: 0.0 -0.15;
+            rel2.relative: 1.0 0.85;
+         }
+      }
+
       part { name: "indicator";
          description { state: "default";
             min: 10 10;
@@ -142,24 +164,28 @@ group { name: "e/modules/ibox/icon";
          signal: "e,state,urgent"; source: "e";
          action: STATE_SET "bounce1" 0.0;
          target: "e.swallow.content";
+         target: "e.swallow.preview";
          after: "urg1";
       }
       program { name: "urg1";
          action: STATE_SET "bounce2" 0.0;
          transition: DECELERATE 0.2;
          target: "e.swallow.content";
+         target: "e.swallow.preview";
          after: "urg2";
       }
       program { name: "urg2";
          action: STATE_SET "bounce1" 0.0;
          transition: ACCELERATE 0.2;
          target: "e.swallow.content";
+         target: "e.swallow.preview";
          after: "urg1";
       }
       program {
          signal: "e,state,not_urgent"; source: "e";
          action: STATE_SET "default" 0.0;
          target: "e.swallow.content";
+         target: "e.swallow.preview";
       }
    }
 }
@@ -496,6 +522,14 @@ group { name: "e/modules/ibox/icon_overlay";
             rel2.to: "background";
          }
       }
+      part { name: "e.swallow.preview"; type: SWALLOW;
+         clip_to: "background";
+         description {
+            state: "default" 0.0;
+            rel1.to: "background";
+            rel2.to: "background";
+         }
+      }
       part { name: "bevel"; mouse_events: 0;
          description { state: "default" 0.0;
             rel1.offset: -9 -5;

-- 


Reply via email to