Revision: 4483 http://vexi.svn.sourceforge.net/vexi/?rev=4483&view=rev Author: clrg Date: 2013-01-30 03:32:10 +0000 (Wed, 30 Jan 2013) Log Message: ----------- Fix timefield/datetime fill effects
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/datetime.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2013-01-18 03:21:42 UTC (rev 4482) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2013-01-30 03:32:10 UTC (rev 4483) @@ -1,17 +1,13 @@ -<!-- Copyright 2011 - see COPYING for details [LGPL] --> +<!-- Copyright 2013 - see COPYING for details [LGPL] --> <vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" - xmlns:conf="vexi.conf" - xmlns:lib="org.vexi.lib" - xmlns:lay="vexi.layout" - xmlns:util="vexi.util" - xmlns:classic="org.vexi.theme.classic" - xmlns="vexi.theme"> + xmlns:conf="vexi.conf" + xmlns:lib="org.vexi.lib" + xmlns:lay="vexi.layout" + xmlns:util="vexi.util" + xmlns:classic="org.vexi.theme.classic" + xmlns="vexi.theme"> - <meta:doc> - <author>Charles Goodwin</author> - </meta:doc> - <lib:role.popupable /> <lib:role.focusable /> <util:date /> Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t 2013-01-18 03:21:42 UTC (rev 4482) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t 2013-01-30 03:32:10 UTC (rev 4483) @@ -1,16 +1,15 @@ -<!-- Copyright 2011 - see COPYING for details [LGPL] --> +<!-- Copyright 2013 - see COPYING for details [LGPL] --> -<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.theme"> - <meta:doc> - <author>Charles Goodwin</author> - </meta:doc> +<vexi xmlns:ui="vexi://ui" + xmlns="vexi.widget"> <ui:box margin="3" shrink="true"> - <datefield id="date" /> - <timefield id="time" /> + <datefield id="date" margin="0" /> + <timefield id="time" margin="0" /> thisbox.v_datefield = $date; thisbox.v_timefield = $time; + thisbox.v_fillbox = thisbox; thisbox.v_textbox = false; thisbox.valuetype; @@ -36,6 +35,12 @@ $time.enabled = v; } + thisbox.fill ++= function(v) { + $date.fill = v; + $time.fill = v; + return; + } + var storeval; thisbox.value ++= function(v) { Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t 2013-01-18 03:21:42 UTC (rev 4482) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t 2013-01-30 03:32:10 UTC (rev 4483) @@ -1,20 +1,17 @@ -<!-- Copyright 2011 - see COPYING for details [LGPL] --> +<!-- Copyright 2013 - see COPYING for details [LGPL] --> -<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.theme" - xmlns:lay="vexi.layout" - xmlns:conf="vexi.conf" - xmlns:util="vexi.util" - xmlns:role="org.vexi.lib.role" - xmlns:text="org.vexi.lib.text"> - <meta:doc> - <author>Charles Goodwin</author> - <name>Timefield</name> - <desc>A specialized spin/textfield for editing time</desc> - </meta:doc> +<vexi xmlns:ui="vexi://ui" + xmlns:lay="vexi.layout" + xmlns:conf="vexi.conf" + xmlns:util="vexi.util" + xmlns:role="org.vexi.lib.role" + xmlns:text="org.vexi.lib.text" + xmlns:classic="org.vexi.theme.classic" + xmlns="vexi.theme"> <role:focusable /> <bevel form="down" margin="3" shrink="true"> - <lay:pad id="bg" fill="white" orient="vertical" padding="3"> + <lay:pad orient="vertical" padding="3"> <ui:box id="timeview"> <util:digit id="hours" /> <util:digit id="sep1" fieldsize="1" shrink="true">text=":";</util:digit> @@ -37,6 +34,8 @@ </button> </ui:box> + thisbox.v_init = static.init; + thisbox.v_prevfill = .settings..fill; thisbox.v_textbox = false; thisbox.use24hours = conf.settings..time_use24hours; @@ -86,7 +85,6 @@ cascade = v; $more.enabled = v; $less.enabled = v; - $bg.fill = v ? "white" : "#d4d0c8"; $buttons.maxheight = v ? vexi.ui.maxdim : 0; form = v ? "down" : "thindown"; } @@ -263,7 +261,10 @@ } </bevel> + <classic:lib.finalize /> + static.init = { fill : .settings..fill }; + /** trap to invoke setTime */ static.setTime = function(v) { cascade = v; trapee.setTime(); } Modified: trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/datetime.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/datetime.t 2013-01-18 03:21:42 UTC (rev 4482) +++ trunk/org.vexi-vexi.widgets/src_poke/poke/widgets/datetime.t 2013-01-30 03:32:10 UTC (rev 4483) @@ -1,11 +1,11 @@ <vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> <w:surface /> <ui:box orient="vertical"> - <w:timefield id="time"/> - <w:datefield id="date"/> - <w:datetime id="datetime"/> - <w:monthfield /> - <w:yearfield /> + <w:timefield fill="#ffff99" id="time"/> + <w:datefield fill="#ffff99" id="date"/> + <w:datetime fill="#ffff99" id="datetime"/> + <w:monthfield fill="#ffff99" /> + <w:yearfield fill="#ffff99" /> <ui:box> <w:button id="enable" text="Enable/Disable" /> <w:button id="clear" text="Clear" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn