Revision: 1919
          http://svn.sourceforge.net/vexi/?rev=1919&view=rev
Author:   mkpg2
Date:     2007-07-03 23:06:19 -0700 (Tue, 03 Jul 2007)

Log Message:
-----------
Fix. Removing hardcode vexi.theme
Adding org.vexi.theme.win2k.init for initialising the win2k theme.

Modified Paths:
--------------
    widgets/trunk/org.vexi.demo/org/vexi/demo/main.t

Added Paths:
-----------
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/init.t

Removed Paths:
-------------
    widgets/trunk/org.vexi.widgets/src/vexi/theme/

Modified: widgets/trunk/org.vexi.demo/org/vexi/demo/main.t
===================================================================
--- widgets/trunk/org.vexi.demo/org/vexi/demo/main.t    2007-07-04 06:00:43 UTC 
(rev 1918)
+++ widgets/trunk/org.vexi.demo/org/vexi/demo/main.t    2007-07-04 06:06:19 UTC 
(rev 1919)
@@ -1,6 +1,11 @@
 <!-- Copyright 2006 - see COPYING for details [LGPL] -->
 
-<vexi xmlns:ui="vexi://ui" xmlns="org.vexi.demo" xmlns:wi="vexi.widget">
+<vexi xmlns:ui="vexi://ui" xmlns="org.vexi.demo" xmlns:wi="vexi.widget" 
xmlns:th="org.vexi.theme.win2k">
+    /* * Set up the theme. * *
+    th:init is by convention where the initialisation is done
+    it must be done before the widgets are used, so we do it
+    here as a preapply before the initial surface*/
+    <th:init/>
     <wi:surface />
     <ui:box orient="vertical" fill="#d4d0c8" maxwidth="500" maxheight="400">
         

Added: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/init.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/init.t              
                (rev 0)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/init.t      
2007-07-04 06:06:19 UTC (rev 1919)
@@ -0,0 +1,15 @@
+<!-- Copyright 2006 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" >
+    <meta:doc>
+        Author: Mike Goodwin
+    </meta:doc>
+
+    <ui:box>
+        // move checks into widgets lib
+        var keys = keysof(vexi..vexi.theme);
+        if(keys.size!=0)
+            vexi.log.warn("Overriding existing theme!");
+        vexi..vexi.theme ++= vexi..org.vexi.theme.win2k;
+    </ui:box>
+</vexi>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to