summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2017-10-11 14:02:25 -0500
committerStephen Houston <stephen@localhost.localdomain>2017-10-11 14:03:23 -0500
commitd415bef07668ed475c41b0c1d93d4634f200f338 (patch)
treea88f7f635c4c626d2de0a670b240fe2046038f89 /data
parent5a93b22d50554e928305ea48a5538d92f3fe600c (diff)
Luncher theme: Keep aspect on luncher preview - Don't force max sizes.
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/luncher.edc43
1 files changed, 10 insertions, 33 deletions
diff --git a/data/elementary/themes/edc/luncher.edc b/data/elementary/themes/edc/luncher.edc
index 6e8aa38aba..73a35b5666 100644
--- a/data/elementary/themes/edc/luncher.edc
+++ b/data/elementary/themes/edc/luncher.edc
@@ -356,24 +356,12 @@ group { name: "e/gadget/luncher/icon";
356} 356}
357 357
358group { name: "e/gadget/luncher/preview"; 358group { name: "e/gadget/luncher/preview";
359 script {
360 public message(Msg_Type:type, id, ...) {
361 if ((type == MSG_INT_SET) && (id == 1)) {
362 new size = getarg(2);
363
364 custom_state(PART:"icon", "default", 0.0);
365 set_state_val(PART:"icon", STATE_MIN, size, size);
366 set_state_val(PART:"icon", STATE_MAX, size, size);
367 set_state(PART:"icon", "custom", 0.0);
368 }
369 }
370 }
371 parts { 359 parts {
372 part { name: "base"; type: RECT; 360 part { name: "base"; type: RECT;
373 description { state: "default"; 361 description { state: "default";
374 color: 255 255 255 0; 362 color: 255 255 255 0;
375 rel1.offset: 0 0; 363 rel1.offset: -1 -1;
376 rel2.offset: -2 0; 364 rel2.offset: 2 2;
377 link.base: "e,state,unfocused" "e"; 365 link.base: "e,state,unfocused" "e";
378 link.transition: DECEL 0.1; 366 link.transition: DECEL 0.1;
379 } 367 }
@@ -413,26 +401,13 @@ group { name: "e/gadget/luncher/preview";
413 rel2.offset: -3 -1; 401 rel2.offset: -3 -1;
414 } 402 }
415 } 403 }
416 part { name: "icon"; type: SPACER;
417 description { state: "default";
418 rel1.to_y: "e.swallow.title";
419 rel1.relative: 0.0 1.0;
420 min: 64 64;
421 max: 64 64;
422 }
423 description { state: "menu";
424 inherit: "default" 0.0;
425 min: 48 48;
426 max: 48 48;
427 }
428 }
429 part { name: "border"; type: RECT; mouse_events: 0; 404 part { name: "border"; type: RECT; mouse_events: 0;
430 clip_to: "clip"; 405 clip_to: "clip";
431 description { state: "default"; 406 description { state: "default";
432 rel1.to: "e.swallow.icon"; 407 rel1.to: "e.swallow.icon";
433 rel2.to: "e.swallow.icon"; 408 rel2.to: "e.swallow.icon";
434 rel1.offset: -1 -1; 409 rel1.offset: -1 -1;
435 rel2.offset: 0.5 0.5; 410 rel2.offset: 0 0;
436 visible: 1; 411 visible: 1;
437 color: 255 255 255 255; 412 color: 255 255 255 255;
438 } 413 }
@@ -447,10 +422,12 @@ group { name: "e/gadget/luncher/preview";
447 description { state: "default"; 422 description { state: "default";
448 align: 0.5 0.5; 423 align: 0.5 0.5;
449 aspect: 1.0 1.0; aspect_preference: BOTH; 424 aspect: 1.0 1.0; aspect_preference: BOTH;
450 rel1.to: "icon"; 425 rel1.to_y: "e.swallow.title";
451 rel2.to: "icon"; 426 rel1.relative: 0.0 1.0;
452 rel1.offset: 1 3; 427 }
453 rel2.offset: -3 -5; 428 description { state: "menu";
429 inherit: "default" 0.0;
430 min: 48 48;
454 } 431 }
455 } 432 }
456 part { name: "event"; type: RECT; 433 part { name: "event"; type: RECT;
@@ -465,7 +442,7 @@ group { name: "e/gadget/luncher/preview";
465 action: STATE_SET "menu" 0.0; 442 action: STATE_SET "menu" 0.0;
466 target: "border"; 443 target: "border";
467 target: "e.swallow.title"; 444 target: "e.swallow.title";
468 target: "icon"; 445 target: "e.swallow.icon";
469 } 446 }
470 program { name: "go_alpha"; 447 program { name: "go_alpha";
471 signal: "e,state,icon,alpha"; source: "e"; 448 signal: "e,state,icon,alpha"; source: "e";