diff -upN old/jquery_ui.install new/jquery_ui.install
--- old/jquery_ui.install	2008-06-15 07:15:11.000000000 +0200
+++ new/jquery_ui.install	2008-07-06 05:44:01.000000000 +0200
@@ -35,10 +35,3 @@ function jquery_ui_requirements($phase) 
 
   return $requirements;
 }
-
-/**
- * Implementation of hook_uninstall().
- */
-function jquery_ui_uninstall() {
-  variable_del('jquery_ui_compression_type');
-}
diff -upN old/jquery_ui.module new/jquery_ui.module
--- old/jquery_ui.module	2008-06-22 22:09:58.000000000 +0200
+++ new/jquery_ui.module	2008-07-06 12:40:11.000000000 +0200
@@ -13,9 +13,38 @@
 /**
  * Path to jQuery UI library.
  */
-define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
+ define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') .'/jquery.ui');
  
 /**
+ * Implementation of hook_form_alter().
+ */
+function jquery_ui_form_system_theme_settings_alter(&$form, &$form_state) {
+  // Determine which Drupal theme's settings page we're looking at.
+  $key = $form['var']['#value'];
+  $key = ($key == 'theme_settings') ? '' : preg_replace('/(^theme_|_settings$)/', '', $key);
+  
+  $themes   = jquery_ui_get_themes();
+  $settings = jquery_ui_get_settings($key);
+  
+  $form['jquery_ui'] = array(
+    '#type'          => 'fieldset',
+    '#title'         => t('jQuery UI'),
+    '#collapsible'   => TRUE,
+    '#collapsed'     => TRUE,
+    '#weight'        => -25,
+    '#tree'          => TRUE,
+  );
+  $form['jquery_ui']['theme'] = array(
+    '#type'          => 'select',
+    '#title'         => t('jQuery UI theme'),
+    '#description'   => t('The theme used by jQuery UI for its widgets.'),
+    '#options'       => $themes,
+    '#default_value' => $settings['theme'],
+  );
+
+}
+
+/**
  * Add the specified jQuery UI library files to this page.
  *
  * The ui.core file is always included automatically, as well as the
@@ -27,8 +56,9 @@ define('JQUERY_UI_PATH', drupal_get_path
  */
 function jquery_ui_add($files = array()) {
   static $loaded_files, $ui_core, $effects_core;
-  $jquery_ui_path = JQUERY_UI_PATH . '/ui';
-  $compression = variable_get('jquery_update_compression_type', 'mini');
+  
+  $jquery_ui_path = JQUERY_UI_PATH .'/ui';
+  $compression    = variable_get('jquery_update_compression_type', 'mini');
 
   // Convert file to an array if it's not one already, to compensate for
   // lazy developers. ;)
@@ -64,7 +94,7 @@ function jquery_ui_add($files = array())
           $file_path = "minified/$file.min.js";
           break;
       }
-      $js_path = $jquery_ui_path . '/' . $file_path;
+      $js_path = "{$jquery_ui_path}/{$file_path}";
       drupal_add_js($js_path);
       $loaded_files[$file] = $js_path; // or TRUE...
     }
@@ -72,14 +102,51 @@ function jquery_ui_add($files = array())
 }
 
 /**
+ * Retrieve the jQuery UI settings for the theme.
+ */
+function jquery_ui_get_settings($key) {
+  $default_settings = array(
+    'jquery_ui' => array(
+      'theme' => 'flora',
+    )
+  );
+  $settings = array_merge($default_settings, theme_get_settings($key));
+  
+  return $settings['jquery_ui'];
+}
+
+/**
+ * Retrieve list of themes that can be selected.
+ */
+function jquery_ui_get_themes() {
+  $themes_path = JQUERY_UI_PATH .'/themes';
+  $themes      = array();
+
+  // Find all files in the themes folder, without recursing. Loop through and
+  // check for directories with dirname.css files within them.
+  $files = file_scan_directory($themes_path, '.*', array('.', '..', 'CVS'), 0, FALSE, 'basename');
+  foreach ($files as $file => $info) {
+    if (is_dir($info->filename)) {
+      $css_path = "{$info->filename}/{$file}.css";
+      if (file_exists($css_path)) {
+        $themes[$file] = $file;
+      }
+    }
+  }
+
+  return $themes;
+}
+
+/**
  * Return the version of jQuery UI installed.
  */
 function jquery_ui_get_version() {
   $version = 0;
-
-  if (file_exists(JQUERY_UI_PATH . '/version.txt')) {
-    $version = file_get_contents(JQUERY_UI_PATH . '/version.txt');
+  $file    = JQUERY_UI_PATH .'/version.txt';
+  
+  if (file_exists($file)) {
+    $version = file_get_contents($file);
   }
-
+  
   return $version;
 }
