Author: richard
Date: Tue Feb 17 12:04:15 2009
New Revision: 4257

URL: http://svn.slimdevices.com/jive?rev=4257&view=rev
Log:
Bug: N/A
Description:
In the debug UI mode, add a green edge to show the widget border.


Modified:
    
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua

Modified: 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua?rev=4257&r1=4256&r2=4257&view=diff
==============================================================================
--- 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua 
(original)
+++ 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua 
Tue Feb 17 12:04:15 2009
@@ -37,6 +37,14 @@
 function _debugWidget(meta, screen, widget)
        if meta.mouseEvent and widget:mouseInside(meta.mouseEvent) then
                local x,y,w,h = widget:getBounds()
+               local l,t,r,b = widget:getBorder()
+
+               screen:filledRectangle(x-l,y-t, x+w+r,y, 0x00FF003F)
+               screen:filledRectangle(x-l,y+h, x+w+r,y+h+b, 0x00FF003F)
+
+               screen:filledRectangle(x-l,y, x,y+h, 0x00FF003F)
+               screen:filledRectangle(x+w,y, x+w+r,y+h, 0x00FF003F)
+
                screen:filledRectangle(x,y, x+w,y+h, 0xFF00003F)
 
                log:info("-> ", widget, " (", x, ",", y, " ", w, "x", h, ")")

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

Reply via email to