diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 3cae045..39d8cdd 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -11,6 +11,7 @@
 use Drupal\Component\Utility\Environment;
 use Drupal\Core\Block\BlockPluginInterface;
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\Extension\InfoParser;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Language\LanguageInterface;
 use Drupal\Core\Render\Element\Textfield;
@@ -164,8 +165,55 @@ function color_get_info($theme) {
       'blend_target' => '#ffffff',
     );
     $theme_info[$theme] = $info;
-    return $info;
+//    return $info;
+  }
+  /* PeterX */
+  $file = DRUPAL_ROOT . '/' . $path . '/' . $theme . '.info';
+  $info_parser = new InfoParser();
+  $info = $info_parser->parse($file);
+  if (!empty($info['color'])) {
+    $field_translate = array();
+    if (!empty($info['color']['field'])) {
+      $field_translate = $info['color']['field'];
+      $theme_info[$theme]['fields'] = $info['color']['field'];
+      unset($info['color']['field']);
+    }
+    foreach ($info['color'] as $scheme => $scheme_field) {
+      $scheme_clean = _color_get_info_clean($scheme);
+      $theme_info[$theme]['schemes'][$scheme_clean]['title'] = $scheme;
+      foreach ($scheme_field as $field => $color) {
+        $clean_color = _color_get_info_color_clean($color);
+        $field_clean = _color_get_info_clean($field);
+        if (empty($field_translate)) {
+          // We do not translate the field.
+          $theme_info[$theme]['schemes'][$scheme_clean]['colors'][$field_clean] = $clean_color;
+          $theme_info[$theme]['fields'][$field_clean] = $field;
+        }
+        else {
+          // Translate the long field name into the internal name.
+          $field_key = array_search($field, $field_translate);
+          if ($field_key !== FALSE) {
+            $theme_info[$theme]['schemes'][$scheme_clean]['colors'][$field_key] = $clean_color;
+          }
+          else {
+            $theme_info[$theme]['schemes'][$scheme_clean]['colors'][$field_clean] = $clean_color;
+          }
+        }
+      }
+    }
   }
+  if (isset($theme_info[$theme])) {
+    return $theme_info[$theme];
+  }
+}
+
+// The following functions to be refined based on what is legal in .info files.
+function _color_get_info_clean($string) {
+  return str_replace(' ', '_', strtolower($string));
+}
+
+function _color_get_info_color_clean($string) {
+  return '#' . str_replace(array('_', '#'), '', _color_get_info_clean($string));
 }
 
 /**
