Index: /home/co/SPtest/share/jive/applets/QVGAportraitSkin/QVGAportraitSkinApplet.lua =================================================================== --- /home/co/SPtest/share/jive/applets/QVGAportraitSkin/QVGAportraitSkinApplet.lua (revision 1) +++ /home/co/SPtest/share/jive/applets/QVGAportraitSkin/QVGAportraitSkinApplet.lua (revision 23) @@ -82,6 +82,12 @@ NOWPLAYING_TRACKINFO_LINES = 2, nowPlayingScreenStyles = { { + style = 'nowplaying_classical', + artworkSize = '240x240', + itemheight = '27' , + text = self:string('CLASSICAL_ART'), + }, + { style = 'nowplaying', artworkSize = '240x240', text = self:string('LARGE_ART'), @@ -407,6 +413,8 @@ local NP_ARTISTALBUM_FONT_SIZE = 15 local NP_TRACK_FONT_SIZE = 21 + local NP_CLASSICAL_FONT_SIZE = 18 + local NP_LINE_DISTANCE = 9 local controlHeight = 38 local controlWidth = 45 @@ -610,6 +618,92 @@ }, }) + s.nowplaying_classical = _uses(s.nowplaying, { + npcomposer = { + zOrder = 10, + hidden = 0, + border = _tracklayout.border, + padding = {0,5,0,0}, + position = _tracklayout.position, + w = _tracklayout.w, + align = "center", + lineHeight = NP_CLASSICAL_FONT_SIZE, + fg = _tracklayout.fg, + font = _font(NP_CLASSICAL_FONT_SIZE), + }, + npinfo0 = { + zOrder = 10, + hidden = 0, + border = _tracklayout.border, + padding = {0,1*(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE)+5,0,0}, + position = _tracklayout.position, + w = _tracklayout.w, + align = "center", + lineHeight = NP_CLASSICAL_FONT_SIZE, + fg = _tracklayout.fg, + font = _font(NP_CLASSICAL_FONT_SIZE), + } , + npprogress = { + border = {0,3*(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE),0,0}, + }, + npinfo2 = { + zOrder = 10, + hidden = 0, + border = _tracklayout.border, + padding = {0,4*(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE),0,0}, + position = _tracklayout.position, + w = _tracklayout.w, + align = "center", + lineHeight = NP_CLASSICAL_FONT_SIZE, + fg = _tracklayout.fg, + font = _font(NP_CLASSICAL_FONT_SIZE), + } , + npinfo3 = { + zOrder = 10, + hidden = 0, + border = _tracklayout.border, + padding = {0,5*(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE),0,0}, + position = _tracklayout.position, + w = _tracklayout.w, + align = "center", + lineHeight = NP_CLASSICAL_FONT_SIZE, + fg = _tracklayout.fg, + font = _font(NP_CLASSICAL_FONT_SIZE), + } , + npinfo4 = { + zOrder = 10, + hidden = 0, + border = _tracklayout.border, + padding = {0,6*(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE),0,0}, + position = _tracklayout.position, + w = _tracklayout.w, + align = "center", + lineHeight = NP_CLASSICAL_FONT_SIZE, + fg = _tracklayout.fg, + font = _font(NP_CLASSICAL_FONT_SIZE), + } , + + npartwork = { + hidden = 0, + zOrder = 1, +-- position = LAYOUT_WEST, + position = LAYOUT_SOUTH, + artwork = { +-- padding = { 0, 7*(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE), 0, 0 }, +-- padding = {0, 0,0,0}, +-- border = {0, 10,0,0}, + }, + }, + npartistalbum = { + hidden = 1, + }, + nptitle = { + hidden = 0, + border = { 0,(NP_CLASSICAL_FONT_SIZE+NP_LINE_DISTANCE+NP_TRACK_FONT_SIZE),0,0}, + }, + + }) + s.nowplaying.pressed = s.nowplaying s.nowplaying_small_art.pressed = s.nowplaying_small_art @@ -623,7 +717,11 @@ s.linein = _uses(s.nowplaying, { bgImg = false, }) +-- need to correct bug in LUA: with position set to LAYOUT_SOUTH in baseskin then widget is in wrong place +s.button_time.position = LAYOUT_EAST +s.button_time.border = {0,300,0,0} + end