diff --git a/chrome/content/zotero/bindings/customcolorpicker.xml b/chrome/content/zotero/bindings/customcolorpicker.xml
index a42069136..6a9f4a567 100644
--- a/chrome/content/zotero/bindings/customcolorpicker.xml
+++ b/chrome/content/zotero/bindings/customcolorpicker.xml
@@ -15,7 +15,7 @@
-
+
@@ -90,17 +90,21 @@
let light = color.charAt(0) == 'L';
color = light ? color.substr(1) : color;
- var spacer = document.createElement('spacer');
- spacer.className = 'colorpickertile' + (light ? ' cp-light' : '');
- spacer.setAttribute('style', 'background-color: ' + color);
- spacer.setAttribute('color', color);
+ let image = document.createElement('image');
+ image.className = 'colorpickertile' + (light ? ' cp-light' : '');
+ image.setAttribute('color', color);
+
+ let dataURI = "data:image/svg+xml,";
+ image.setAttribute('src', dataURI);
+
if (tileWidth) {
- spacer.width = tileWidth;
+ image.width = tileWidth;
}
if (tileHeight) {
- spacer.height = tileHeight;
+ image.height = tileHeight;
}
- hbox.appendChild(spacer);
+ hbox.appendChild(image);
}
tiles.appendChild(hbox);
}
@@ -117,7 +121,7 @@
-
+