From 3fa88b3564c9ae165579f0cea9a8fd3d755d0ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Mon, 8 Aug 2016 11:24:21 +0200 Subject: [PATCH] Show random color button --- css/style.css | 3 ++- img/random.svg | 28 ++++++++++++++++++++++++++++ templates/colorpicker.html | 4 ++-- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 img/random.svg diff --git a/css/style.css b/css/style.css index 6de018da..0e653736 100644 --- a/css/style.css +++ b/css/style.css @@ -1523,9 +1523,10 @@ ol[dnd-list] .dndPlaceholder { } .colorpicker .colorpicker-list li.randomcolour { - background-image: url('../../img/random.svg'); + background-image: url('../img/random.svg'); background-repeat: no-repeat; background-position: center center; + cursor: pointer; } #app-navigation .app-navigation-entry-edit input.icon-close { diff --git a/img/random.svg b/img/random.svg new file mode 100644 index 00000000..fb98a3fe --- /dev/null +++ b/img/random.svg @@ -0,0 +1,28 @@ + + + + + + diff --git a/templates/colorpicker.html b/templates/colorpicker.html index c5058b0e..7f95e9fe 100644 --- a/templates/colorpicker.html +++ b/templates/colorpicker.html @@ -3,7 +3,7 @@ ng-class="{ selected: (color===selected) }" ng-click="pick(color)" ng-style="{ 'background-color':color}; "> - + ng-style="{ 'background-color':random}; ">