Author: richard
Date: Tue Feb 17 12:05:40 2009
New Revision: 4258

URL: http://svn.slimdevices.com/jive?rev=4258&view=rev
Log:
 r4...@harrypotter (orig r4257):  richard | 2009-02-17 20:04:15 +0000
 Bug: N/A
 Description:
 In the debug UI mode, add a green edge to show the widget border.
 
 

Modified:
    7.4/branches/pango/   (props changed)
    
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua

Propchange: 7.4/branches/pango/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Tue Feb 17 12:05:40 2009
@@ -4,7 +4,7 @@
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.2/trunk:2921
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.3/private-branches/jive-refresh:3653
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.3/trunk:4138
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.4/trunk:4248
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/7.4/trunk:4257
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:2013
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
 bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378

Modified: 
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua
URL: 
http://svn.slimdevices.com/jive/7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua?rev=4258&r1=4257&r2=4258&view=diff
==============================================================================
--- 
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua
 (original)
+++ 
7.4/branches/pango/squeezeplay/src/squeezeplay/share/applets/DebugSkin/DebugSkinMeta.lua
 Tue Feb 17 12:05:40 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