From 02160b6edf47b33a570396888b1354a01473ab11 Mon Sep 17 00:00:00 2001 From: jkusa Date: Fri, 4 Feb 2022 00:01:14 -0600 Subject: [PATCH] Add column-style-checkbox css variables --- rust/perspective-viewer/src/less/column-style.less | 6 +++--- rust/perspective-viewer/src/themes/material.less | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rust/perspective-viewer/src/less/column-style.less b/rust/perspective-viewer/src/less/column-style.less index 71d67c90f2..db9f384ecf 100644 --- a/rust/perspective-viewer/src/less/column-style.less +++ b/rust/perspective-viewer/src/less/column-style.less @@ -64,13 +64,13 @@ } input[type="checkbox"] { - appearance: none; + appearance: var(--column-style-checkbox--appearance, auto); font-family: var(--button--font-family, inherit); font-size: 16px; text-align: center; &:checked:after { - content: "\E834"; + content: var(--column-style-checkbox-checked--content, none); } &:not([disabled]):checked:after { @@ -78,7 +78,7 @@ } &:after { - content: "\E835"; + content: var(--column-style-checkbox-unchecked--content, none); color: var(--inactive--color, #999); } } diff --git a/rust/perspective-viewer/src/themes/material.less b/rust/perspective-viewer/src/themes/material.less index bf06292045..d238ab4694 100644 --- a/rust/perspective-viewer/src/themes/material.less +++ b/rust/perspective-viewer/src/themes/material.less @@ -41,6 +41,9 @@ perspective-expression-editor[theme="Material Light"], --column-style-radio--appearance: none; --column-style-radio-checked--content: "radio_button_checked"; --column-style-radio-unchecked--content: "radio_button_unchecked"; + --column-style-checkbox--appearance: none; + --column-style-checkbox-checked--content: "check_box"; + --column-style-checkbox-unchecked--content: "check_box_outline_blank"; } .perspective-viewer-material--dimensions {