From 10bb0115ddecf3277fdeaca75ab5eb44692bbea6 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Sat, 19 Nov 2022 15:39:45 -0500 Subject: [PATCH] Auto stash before merge of "feature/jf-photo-slideshow" and "jimdogx/feature/jf-photo-slideshow" --- components/photos/PhotoDetails.brs | 18 +++++++++++------- components/photos/PhotoDetails.xml | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/components/photos/PhotoDetails.brs b/components/photos/PhotoDetails.brs index 81b474b1..7de2e8d6 100644 --- a/components/photos/PhotoDetails.brs +++ b/components/photos/PhotoDetails.brs @@ -9,6 +9,10 @@ sub init() m.statusTimer.observeField("fire", "statusUpdate") m.slideshow = get_user_setting("photos.slideshow") m.shuffle = get_user_setting("photos.shuffle") + + m.showStatusAnimation = m.top.findNode("showStatusAnimation") + m.hideStatusAnimation = m.top.findNode("hideStatusAnimation") + itemContentChanged() end sub @@ -56,9 +60,7 @@ end sub sub statusUpdate() m.statusTimer.control = "stop" - m.textBackground.visible = false - m.status.visible = false - m.status.text = "" + m.hideStatusAnimation.control = "start" end sub function onKeyEvent(key as string, press as boolean) as boolean @@ -85,14 +87,16 @@ function onKeyEvent(key as string, press as boolean) as boolean ' stop the slideshow if the user hits "pause" m.slideshowTimer.control = "stop" m.status.text = tr("Slideshow Paused") - m.status.visible = true - m.textBackground.visible = true + if m.textBackground.opacity = 0 + m.showStatusAnimation.control = "start" + end if m.statusTimer.control = "start" else ' start the slideshow if the user hits "play" m.status.text = tr("Slideshow Resumed") - m.status.visible = true - m.textBackground.visible = true + if m.textBackground.opacity = 0 + m.showStatusAnimation.control = "start" + end if m.slideshow = "true" m.statusTimer.control = "start" m.slideshowTimer.control = "start" diff --git a/components/photos/PhotoDetails.xml b/components/photos/PhotoDetails.xml index a53aa236..12867c1d 100644 --- a/components/photos/PhotoDetails.xml +++ b/components/photos/PhotoDetails.xml @@ -2,11 +2,21 @@ - -