summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-01-22 10:06:42 +0000
committerAndy Williams <andy@andywilliams.me>2017-01-22 10:07:03 +0000
commit633bcfbefbd24d1699a10cec537e2209f0e7a7e0 (patch)
treee89c95ca78bec2c4da18a31f1141cac85e63845e
parentca075ce21f9c267aa7186b96a6e4dc51d36c1206 (diff)
luncher: Until we fix expansion zoom a little less.
This allows an area in the middle where you are only over 1 icon... clicktastic
-rw-r--r--data/elementary/themes/edc/luncher.edc13
1 files changed, 7 insertions, 6 deletions
diff --git a/data/elementary/themes/edc/luncher.edc b/data/elementary/themes/edc/luncher.edc
index 2c3f915688..1a70743c65 100644
--- a/data/elementary/themes/edc/luncher.edc
+++ b/data/elementary/themes/edc/luncher.edc
@@ -43,13 +43,14 @@ group { name: "e/gadget/luncher/icon";
43 script { 43 script {
44 public urgent; 44 public urgent;
45 public style; 45 public style;
46 public Float:engage_scale(cursorpos, iconpos, size) { 46 public Float:engage_scale(cursorpos, iconpos, size) {
47 new Float:scale = 2.25 - (abs(cursorpos-(iconpos+size/2)) / (size*2)); 47 new Float:zoom = 1.5;
48 if (scale < 1.0) scale = 1.0; 48 new Float:scale = (zoom+0.25) - (abs(cursorpos-(iconpos+size/2)) / (size*2));
49 if (scale > 2.0) scale = 2.0; 49 if (scale < 1.0) scale = 1.0;
50 if (scale > zoom) scale = zoom;
50 51
51 return scale; 52 return scale;
52 } 53 }
53 public message(Msg_Type:type, id, ...) { 54 public message(Msg_Type:type, id, ...) {
54 55
55//Style Variable - Used to Identify Style - Name Must Match an Item in the Data List of e/gadget/luncher/bar 56//Style Variable - Used to Identify Style - Name Must Match an Item in the Data List of e/gadget/luncher/bar