You can now set additional skin parameters directly on a window object.

Here's an example, from the SetupNetTest applet:


Code:
--------------------
    
  self.window:setSkin({
  nettest = {
  icon = {
  padding = { 20, 3, 20, 1 }
  },
  graphtitle = {
  padding = { 20, 7, 0, 0 },
  fg = { 0xE7, 0xE7, 0xE7 }
  },
  graphaxis = {
  padding = { 20, 1, 0, 0 },
  fg = { 0xE7, 0xE7, 0xE7 }
  }
  }
  })
  
  
--------------------


If you had many windows to apply these skin params to, I'd abstract it
out to a separate method, like so


Code:
--------------------
    
  
  self.window:_customSkin()
  
  function _customSkin(self)
  
  self:setSkin({
  nettest = {
  icon = {
  padding = { 20, 3, 20, 1 }
  },
  graphtitle = {
  padding = { 20, 7, 0, 0 },
  fg = { 0xE7, 0xE7, 0xE7 }
  },
  graphaxis = {
  padding = { 20, 1, 0, 0 },
  fg = { 0xE7, 0xE7, 0xE7 }
  }
  }
  })
  end
  
--------------------


hope that helps...
#!/ben


-- 
bklaas

Logitech Developer: 
Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
Community Developer: Nokia770Skin

http://www.last.fm/user/bklaas/
'KHAAAN!' (http://khaaan.com/)...'BUNNIES!'
(http://home.pacbell.net/bettychu/2003allbreedbisris/BIS.html)
------------------------------------------------------------------------
bklaas's Profile: http://forums.slimdevices.com/member.php?userid=58
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