summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-18 15:05:01 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-20 14:05:14 +0100
commite15d696372a8f64a9c7cfa67f155e3d2b98494dd (patch)
tree6991857bd0f89e869c3471b9360276954eb25df8 /data
parent20ddd4c67906f69d4242aeb845eadda46ef636e8 (diff)
theme: hide next and prev buttons when title is hidden
This ensures that a button is hidden when not beeing able to be visible. fixes T6891 Differential Revision: https://phab.enlightenment.org/D7420
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/naviframe.edc20
1 files changed, 15 insertions, 5 deletions
diff --git a/data/elementary/themes/edc/elm/naviframe.edc b/data/elementary/themes/edc/elm/naviframe.edc
index f166f70..c362bf6 100644
--- a/data/elementary/themes/edc/elm/naviframe.edc
+++ b/data/elementary/themes/edc/elm/naviframe.edc
@@ -129,7 +129,7 @@ group { name: "elm/naviframe/item/basic/default";
129 } \ 129 } \
130 } 130 }
131 BOTTOMMAX() 131 BOTTOMMAX()
132 132
133 part { name: "title1"; type: TEXT; 133 part { name: "title1"; type: TEXT;
134 scale: 1; 134 scale: 1;
135 description { state: "default" 0.0; 135 description { state: "default" 0.0;
@@ -375,7 +375,7 @@ group { name: "elm/naviframe/item/basic/default";
375 max: 1 1; 375 max: 1 1;
376 fixed: 1 1; 376 fixed: 1 1;
377 } 377 }
378 description { state: "hidden" 0.0; 378 description { state: "title-hidden" 0.0;
379 inherit: "default" 0.0; 379 inherit: "default" 0.0;
380 visible: 0; 380 visible: 0;
381 } 381 }
@@ -396,7 +396,7 @@ group { name: "elm/naviframe/item/basic/default";
396 max: 1 1; 396 max: 1 1;
397 fixed: 1 1; 397 fixed: 1 1;
398 } 398 }
399 description { state: "hidden" 0.0; 399 description { state: "title-hidden" 0.0;
400 inherit: "default" 0.0; 400 inherit: "default" 0.0;
401 visible: 0; 401 visible: 0;
402 } 402 }
@@ -463,6 +463,8 @@ group { name: "elm/naviframe/item/basic/default";
463 target: "shadow"; 463 target: "shadow";
464 target: "elm.swallow.content"; 464 target: "elm.swallow.content";
465 target: "buttons_clip"; 465 target: "buttons_clip";
466 target: "elm.swallow.prev_btn";
467 target: "elm.swallow.next_btn";
466 } 468 }
467 program { 469 program {
468 signal: "elm,action,title,show"; source: "elm"; 470 signal: "elm,action,title,show"; source: "elm";
@@ -477,6 +479,8 @@ group { name: "elm/naviframe/item/basic/default";
477 action: STATE_SET "default" 0.0; 479 action: STATE_SET "default" 0.0;
478 target: "buttons_clip"; 480 target: "buttons_clip";
479 after: "title_transition_finished"; 481 after: "title_transition_finished";
482 target: "elm.swallow.prev_btn";
483 target: "elm.swallow.next_btn";
480 } 484 }
481 program { 485 program {
482 signal: "elm,state,title,hide"; source: "elm"; 486 signal: "elm,state,title,hide"; source: "elm";
@@ -485,11 +489,15 @@ group { name: "elm/naviframe/item/basic/default";
485 target: "top"; 489 target: "top";
486 target: "shadow"; 490 target: "shadow";
487 target: "elm.swallow.content"; 491 target: "elm.swallow.content";
492 target: "elm.swallow.prev_btn";
493 target: "elm.swallow.next_btn";
488 } 494 }
489 program { 495 program {
490 signal: "elm,action,title,hide"; source: "elm"; 496 signal: "elm,action,title,hide"; source: "elm";
491 action: STATE_SET "title-hidden" 0.0; 497 action: STATE_SET "title-hidden" 0.0;
492 target: "buttons_clip"; 498 target: "buttons_clip";
499 target: "elm.swallow.prev_btn";
500 target: "elm.swallow.next_btn";
493 after: "titlehide2"; 501 after: "titlehide2";
494 } 502 }
495 program { name: "titlehide2"; 503 program { name: "titlehide2";
@@ -506,21 +514,23 @@ group { name: "elm/naviframe/item/basic/default";
506 program { 514 program {
507 signal: "elm,state,prev_btn,show"; source: "elm"; 515 signal: "elm,state,prev_btn,show"; source: "elm";
508 action: STATE_SET "default" 0.0; 516 action: STATE_SET "default" 0.0;
517 filter: "elm.swallow.content" "default";
509 target: "elm.swallow.prev_btn"; 518 target: "elm.swallow.prev_btn";
510 } 519 }
511 program { 520 program {
512 signal: "elm,state,prev_btn,hide"; source: "elm"; 521 signal: "elm,state,prev_btn,hide"; source: "elm";
513 action: STATE_SET "hidden" 0.0; 522 action: STATE_SET "title-hidden" 0.0;
514 target: "elm.swallow.prev_btn"; 523 target: "elm.swallow.prev_btn";
515 } 524 }
516 program { 525 program {
517 signal: "elm,state,next_btn,show"; source: "elm"; 526 signal: "elm,state,next_btn,show"; source: "elm";
518 action: STATE_SET "default" 0.0; 527 action: STATE_SET "default" 0.0;
528 filter: "elm.swallow.content" "default";
519 target: "elm.swallow.next_btn"; 529 target: "elm.swallow.next_btn";
520 } 530 }
521 program { 531 program {
522 signal: "elm,state,next_btn,hide"; source: "elm"; 532 signal: "elm,state,next_btn,hide"; source: "elm";
523 action: STATE_SET "hidden" 0.0; 533 action: STATE_SET "title-hidden" 0.0;
524 target: "elm.swallow.next_btn"; 534 target: "elm.swallow.next_btn";
525 } 535 }
526 program { 536 program {