diff --git a/components/ItemGrid/Alpha.xml b/components/ItemGrid/Alpha.xml index 743061be..64c48a22 100644 --- a/components/ItemGrid/Alpha.xml +++ b/components/ItemGrid/Alpha.xml @@ -2,7 +2,7 @@ invalid - m.itemPoster.loadDisplayMode = topParent.imageDisplayMode + if m.topParent.imageDisplayMode <> invalid + m.itemPoster.loadDisplayMode = m.topParent.imageDisplayMode end if end sub @@ -84,15 +84,17 @@ end sub ' 'Display or hide title Visibility on focus change sub focusChanged() - if m.top.itemHasFocus = true m.itemText.visible = true m.itemText.repeatCount = -1 + m.posterMask.scale = [1, 1] else m.itemText.visible = m.alwaysShowTitles m.itemText.repeatCount = 0 + if m.topParent.alphaActive = true + m.posterMask.scale = [0.85, 0.85] + end if end if - end sub 'Hide backdrop and text when poster loaded diff --git a/components/ItemGrid/ItemGrid.brs b/components/ItemGrid/ItemGrid.brs index 66bc1bfd..a2592154 100644 --- a/components/ItemGrid/ItemGrid.brs +++ b/components/ItemGrid/ItemGrid.brs @@ -272,7 +272,7 @@ end sub ' 'Handle loaded data, and add to Grid sub ItemDataLoaded(msg) - + m.top.alphaActive = false itemData = msg.GetData() m.loadItemsTask.unobserveField("content") m.loadItemsTask.content = [] @@ -543,12 +543,14 @@ function onKeyEvent(key as string, press as boolean) as boolean photoPlayer.control = "RUN" return true end if - else if key = "right" and topGrp.isinFocusChain() + else if key = "left" and topGrp.isinFocusChain() + m.top.alphaActive = true topGrp.setFocus(false) alpha = m.Alpha.getChild(0).findNode("Alphamenu") alpha.setFocus(true) return true - else if key = "left" and m.Alpha.isinFocusChain() + else if key = "right" and m.Alpha.isinFocusChain() + m.top.alphaActive = false m.Alpha.setFocus(false) m.Alpha.visible = true topGrp.setFocus(true) diff --git a/components/ItemGrid/ItemGrid.xml b/components/ItemGrid/ItemGrid.xml index fd7f3172..1e1a0fb3 100644 --- a/components/ItemGrid/ItemGrid.xml +++ b/components/ItemGrid/ItemGrid.xml @@ -39,6 +39,7 @@ +