Maybe I'm going about this the wrong way. What I'm trying to do is use
two different styles on a Label widget, one highlighted and one normal,
using the widget's setStyle method. Currently I set these in
jive.ui.style directly:-


Code:
--------------------
    
  ...
  style.lyrics_normal.fg = { 0xE7, 0xE7, 0xE7 }
  style.lyrics_current.fg = { 0x28, 0xe3, 0x17 }
  ...
  
--------------------


But this doesn't seem right. I tried using window:setSkin like this:


Code:
--------------------
    
  self.window:setSkin({
  lyrics_normal = {
                   padding = { 10, 0, 0, 10 },
                   font = Font:load("fonts/" .. "FreeSansBold.ttf", 14),
                   fg = { 0xE7, 0xE7, 0xE7 },
                   sh = { 0x37, 0x37, 0x37 },
                   align = "left"
                },
                lyrics_current = {
                   padding = { 10, 0, 0, 10 },
                   font = Font:load("fonts/" .. "FreeSansBold.ttf", 14),
                   fg = { 0x28, 0xe3, 0x17 },
                   align = "left"
                }
  })
  
--------------------

But it had no effect - I just get unstyled widgets.


-- 
lsmithso
------------------------------------------------------------------------
lsmithso's Profile: http://forums.slimdevices.com/member.php?userid=339
View this thread: http://forums.slimdevices.com/showthread.php?t=56850

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive

Reply via email to