<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ require 'English'
 require File.dirname(__FILE__) + '/escape'
 #require File.dirname(__FILE__) + '/osx/plist'
 
-$:.push(File.dirname(__FILE__) + '/../../../zerenity/lib/')
+$:.push(File.dirname(__FILE__) + '/zerenity/lib/')
 require 'zerenity'
 
 TM_DIALOG = e_sh ENV['DIALOG'] unless defined?(TM_DIALOG)
@@ -42,18 +42,21 @@ module TextMate
         color  = string
         prefix, string = string.match(/(#?)([0-9A-F]{3,6})/i)[1,2]
         string = $1 * 2 + $2 * 2 + $3 * 2 if string =~ /^(.)(.)(.)$/
-        def_col = ' default color {' + string.scan(/../).map { |i| i.hex * 257 }.join(&quot;,&quot;) + '}'
-        col = `osascript 2&gt;/dev/null -e 'tell app &quot;TextMate&quot; to choose color#{def_col}'`
-        return nil if col == &quot;&quot; # user cancelled -- when it happens, an exception is written to stderr
-        col = col.scan(/\d+/).map { |i| &quot;%02X&quot; % (i.to_i / 257) }.join(&quot;&quot;)
-    
-        color = prefix
-        if /(.)\1(.)\2(.)\3/.match(col) then
-          color &lt;&lt; $1 + $2 + $3
-        else
-          color &lt;&lt; col
-        end
-        return color
+        return_value = Zerenity::ColorSelection(params)
+        return_value
+        # def_col = ' default color {' + string.scan(/../).map { |i| i.hex * 257 }.join(&quot;,&quot;) + '}'
+        # col = `osascript 2&gt;/dev/null -e 'tell app &quot;TextMate&quot; to choose color#{def_col}'`
+        # return nil if col == &quot;&quot; # user cancelled -- when it happens, an exception is written to stderr
+        # col = col.scan(/\d+/).map { |i| &quot;%02X&quot; % (i.to_i / 257) }.join(&quot;&quot;)
+        #     
+        # color = prefix
+        # if /(.)\1(.)\2(.)\3/.match(col) then
+        #   color &lt;&lt; $1 + $2 + $3
+        # else
+        #   color &lt;&lt; col
+        # end
+        # return color
+        
       end
   
       # options should contain :title, :summary, and :log</diff>
      <filename>Support/lib/ui.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>70aa64bca89f7f63418dbe5b1ab17b9809ee934b</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </author>
  <url>http://github.com/danlucraft/redcar-bundles/commit/5267d8fe409c8d06c11813d277656c2d87bc46d2</url>
  <id>5267d8fe409c8d06c11813d277656c2d87bc46d2</id>
  <committed-date>2009-02-24T04:58:28-08:00</committed-date>
  <authored-date>2009-02-24T04:58:28-08:00</authored-date>
  <message>Expects Zerenity in Support/lib/</message>
  <tree>d6cc0d131601ec2974108ce2748a883266478663</tree>
  <committer>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </committer>
</commit>
