[Libreoffice-commits] online.git: loleaflet/css loleaflet/src

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 28 08:55:08 UTC 2020


 loleaflet/css/mobilewizard.css                   |    9 +++++++++
 loleaflet/src/control/Control.JSDialogBuilder.js |    4 +++-
 2 files changed, 12 insertions(+), 1 deletion(-)

New commits:
commit f91d9b38cab24e3c247f5cfa5fca7352e000ac6b
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Mar 11 14:13:24 2020 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Apr 28 10:54:48 2020 +0200

    jsdialog: style disabled checkboxes
    
    Change-Id: I274f342ee8fb24ab0d0ff3d91875ca3f7332ff7d
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93034
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/css/mobilewizard.css b/loleaflet/css/mobilewizard.css
index 8cc5259bc..aa99efa72 100644
--- a/loleaflet/css/mobilewizard.css
+++ b/loleaflet/css/mobilewizard.css
@@ -811,3 +811,12 @@ input[type=checkbox]#UseBandingColumnStyle, input[type=checkbox]#UseLastColumnSt
 	margin: 24px 0px;
 }
 div#enablecontour + p, #arrangelabel, #SetMinimalRowHeight {clear: both;}
+
+label.disabled {
+	color: grey !important;
+}
+
+input[type=checkbox][disabled] {
+	background-color: grey !important;
+	border-color: grey !important;
+}
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index cced20a66..4189b9bb9 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -746,8 +746,10 @@ L.Control.JSDialogBuilder = L.Control.extend({
 		var checkbox = L.DomUtil.createWithId('input', data.id, div);
 		checkbox.type = 'checkbox';
 
-		if (data.enabled == 'false')
+		if (data.enabled == 'false') {
+			$(checkboxLabel).addClass('disabled');
 			$(checkbox).attr('disabled', 'disabled');
+		}
 
 		checkbox.addEventListener('change', function() {
 			builder.callback('checkbox', 'change', checkbox, this.checked, builder);


More information about the Libreoffice-commits mailing list