loleaflet/src/control/ColorPicker.js             |    2 ++
 loleaflet/src/control/Control.JSDialogBuilder.js |    1 +
 2 files changed, 3 insertions(+)

New commits:
commit 4c80e125f200dd01517c107756067ebe299e2a0b
Author:     Marco Cecchetti <marco.cecche...@collabora.com>
AuthorDate: Tue Oct 22 14:26:50 2019 +0200
Commit:     Marco Cecchetti <marco.cecche...@collabora.com>
CommitDate: Tue Oct 22 14:27:18 2019 +0200

    loleaflet: color picker: add a specific class for selected basic color
    
    Change-Id: I6af2cf744db0dd33e1c604fd88972434e244d48d

diff --git a/loleaflet/src/control/ColorPicker.js 
b/loleaflet/src/control/ColorPicker.js
index 2826e93ba..7c230bf0b 100644
--- a/loleaflet/src/control/ColorPicker.js
+++ b/loleaflet/src/control/ColorPicker.js
@@ -246,6 +246,7 @@ L.ColorPicker = L.Class.extend({
                if (sampleElem && sampleElem.firstChild) {
                        if (colorType === L.ColorPicker.BASIC_COLOR) {
                                sampleElem.removeChild(sampleElem.firstChild);
+                               L.DomUtil.removeClass(sampleElem, 
'colors-container-selected-basic-color');
                        } else if (colorType === L.ColorPicker.TINT) {
                                sampleElem.firstChild.style.visibility = 
'hidden';
                        }
@@ -257,6 +258,7 @@ L.ColorPicker = L.Class.extend({
                if (sampleElem) {
                        if (colorType === L.ColorPicker.BASIC_COLOR) {
                                
sampleElem.appendChild(this._basicColorSelectionMark);
+                               L.DomUtil.addClass(sampleElem, 
'colors-container-selected-basic-color');
                        } else if (colorType === L.ColorPicker.TINT && 
sampleElem.firstChild) {
                                sampleElem.firstChild.style.visibility = 
'visible';
                        }
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js 
b/loleaflet/src/control/Control.JSDialogBuilder.js
index a59d5d6f8..bd3e1f047 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -666,6 +666,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
                        }
                } else if (data.selected && data.mark) {
                        colorSample.appendChild(data.mark);
+                       L.DomUtil.addClass(colorSample, 
'colors-container-selected-basic-color');
                }
 
                 builder._setupHandlers(colorSample, data.handlers);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to