<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>preloadCssImages.jQuery_v5.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,8 @@
 /* $Id:$ */
 
+March 5, 2009
+  o Style &gt; Color module
+
 Feburary 15, 2009
   o Beta testing functionality to change styles on the fly
   o Working on merging codebase with Color.module</diff>
      <filename>CHANGELOG.txt</filename>
    </modified>
    <modified>
      <diff>@@ -103,6 +103,15 @@ Style.module is a skinning system that overrides stylesheets in themes.
       and YOUR_DRUPAL/path_to_files/themes/moo/styles/night
       
       are treated the same.
+      
+===========================
+  Mark up
+===========================
+  Style.module does not require a &quot;color&quot; file.
+  
+  Go into the stylesheet(s) of your choice. Add /* style: &lt;YOURLABEL&gt; */
+  
+  Now this attribute is editable. It doesn't have to be color.
 
 ===========================
   Tips</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -50,7 +50,6 @@ function style_scan_styles2($theme_name) {
   $local_dir = style_get_local_skin_dir($theme_name);
     
   $styles = array();
-  drupal_set_message(&quot;files {$files_dir} | local: {$local_dir}&quot;); 
  
   if (is_dir($files_dir) &amp;&amp; style_styles_exist($files_dir)) {
      $styles += style_file_tree($files_dir);
@@ -114,10 +113,6 @@ function style_scan_styles($dir, $refresh = FALSE) {
 function style_file_tree($dir, $refresh = FALSE) {
   static $style;
 
-  if (!is_dir($dir)) {
-    drupal_set_message(&quot;{$dir} is not a directory&quot;);
-  }
-
   // Caching, can be bypassed with $refresh
   if (isset($style[$dir]) &amp;&amp; $refresh !== TRUE) {
     return $style[$dir];
@@ -466,6 +461,29 @@ function style_form_alter(&amp;$form, $form_state, $form_id) {
             '#value' =&gt; '&lt;div id=\'style-postgen-note\'&gt;&lt;/div&gt;',
           );
          }             
+          $theme_info_file = drupal_get_path('theme', $theme_name) . '/' . $theme_name . '.info';
+          $theme_info = drupal_parse_info_file($theme_info_file);
+          $style_list = $theme_info['stylesheets']['all'];
+            $regex = &quot;~(?:\s*)(.*)(?::\s*)(.+)(?:.*;\s*)(?:/\*\s*(?:style:\s*(.*))\s*\*/)~i&quot;;
+        
+          $form['style'][$theme_name] = array(
+              
+                '#type' =&gt; 'fieldset',
+                '#title' =&gt; 'Stylesheets',
+              
+            );
+          
+          $array = $style_list;
+            drupal_set_message(kprint_r($array, TRUE));
+        
+          foreach ($array as $filename) {
+            
+            
+                $style = drupal_load_stylesheet(drupal_get_path('theme', $theme_name) . '/' . $filename, FALSE);
+                $new_style = preg_replace_callback($regex, &quot;_style_stylesheet&quot;, $style);
+                    $form['style'][$theme_name][$filename] = _style_stylesheet('', $filename, TRUE);
+        
+          }
 
         // If style extensions have not yet been created, let's make it.
         if (count($form['style']['extensions']) &gt; 0) {
@@ -480,6 +498,57 @@ function style_form_alter(&amp;$form, $form_state, $form_id) {
       }
     }
   }
+  
+
+  
+
+
+  
+    
+
+}
+
+function _style_stylesheet($matches = NULL, $stylesheet = NULL, $return = NULL) {
+  
+  static $form_items;
+  if (!isset($form_items) || $form_items == NULL) {
+    
+      $form_items = array();
+  }
+    
+  $property_type = $matches['1'];
+  $property_value = $matches['2'];
+  $property_label = $matches['3'];
+  
+  if (strlen($property_label) &gt; 0) {
+    $form_items[$property_label] = array(
+      '#type' =&gt; 'textfield',
+      '#title' =&gt; $property_label,
+      '#value' =&gt; $property_value,
+      '#attributes' =&gt; array('class' =&gt; $property_type),
+    );
+  }
+   
+
+  if ($return == TRUE) {
+    drupal_set_message($stylesheet);
+    if (count($form_items) &gt; 0) {
+      $form = array();
+      $form +=  array(  
+          '#type' =&gt; 'fieldset',
+          '#title' =&gt; $stylesheet,
+        );
+      $form += $form_items;
+      
+      $form_items = NULL;
+      return $form;
+    } 
+  }
+  else {
+    return $matches;
+  
+  }
+  
 }
 
 function style_test_ahah() {</diff>
      <filename>style.module</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0913d41293faf047f55fe4ab2c80487726c9322b</id>
    </parent>
  </parents>
  <author>
    <name>Tony Narlock</name>
    <email>kiwi@kiwi.(none)</email>
  </author>
  <url>http://github.com/skiquel/drupal-style/commit/b93d821cd72a5d5c334ad9286115d09dcb6b71d5</url>
  <id>b93d821cd72a5d5c334ad9286115d09dcb6b71d5</id>
  <committed-date>2009-03-05T00:55:52-08:00</committed-date>
  <authored-date>2009-03-05T00:55:52-08:00</authored-date>
  <message>w00t. style &gt; color module</message>
  <tree>fac4fe55be35291eb182abcf6477c6a6cff719a9</tree>
  <committer>
    <name>Tony Narlock</name>
    <email>kiwi@kiwi.(none)</email>
  </committer>
</commit>
