content: sub init()
      SetLocals()
      SetControls()
      SetupFontsColor()
  end sub
  
  sub SetLocals()
      m.fonts = m.global.fonts
      m.theme = m.global.appTheme
      m.appConfig = m.global.appConfig
      m.scalePerc = 0.224
  end sub
  
  sub SetControls()
      m.gSubRowName = m.top.findNode("gSubRowName")
      m.lRowName = m.top.findNode("lRowName")
      m.lgRowlistContentVertical = m.top.findNode("lgRowlistContentVertical")
      m.borderMask = m.top.findNode("borderMask")
      m.pVideoImage = m.top.findNode("pVideoImage")
      m.itemLabel = m.top.findNode("itemLabel")
  end sub
  
  sub SetupFontsColor()
      m.itemLabel.font = m.fonts.openSansBold28
      m.itemLabel.color = m.theme.White
  end sub
  
  sub ItemContent_Changed()
      itemcontent = m.top.itemContent
      m.lgRowlistContentVertical.visible = true
      boudingRect = m.pVideoImage.boundingRect()
      maskSize = [boudingRect.width, boudingRect.height]
      if m.global.designresolution = "720p"
          maskSize = [maskSize[0]/1.5,maskSize[1]/1.5]
      end if
      m.borderMask.maskSize = maskSize
      m.lgRowlistContentVertical.translation = [5,5]
  
      if itemContent.thumbnail <> invalid and itemContent.thumbnail <> ""
          m.pVideoImage.uri = itemcontent.thumbnail
      else
          m.pVideoImage.uri = "pkg:/images/focus/horiz-mask.png"
          m.pVideoImage.blendColor = m.theme.DarkGray
          m.lRowName.text = itemcontent.title
          m.lRowName.color = m.theme.White
          m.lRowName.font = m.fonts.openSansBold40
          m.gSubRowName.visible = true
      end if
      if itemcontent.typename <> "HomeRowList"
          m.itemLabel.text = itemcontent.title
          ItemLableboundingRect = m.itemLabel.boundingRect()
          m.itemLabel.translation = [(410-ItemLableboundingRect.Width)/2,240]
          m.itemLabel.visible = true
      end if
  end sub
  