File tree Expand file tree Collapse file tree
src/vs/base/browser/ui/checkbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 opacity : 1 ;
4444 background-size : 16px !important ;
4545}
46+
47+ .monaco-custom-checkbox .monaco-simple-checkbox .checked {
48+ background : url ('check-light.svg' ) center center no-repeat;
49+ }
50+
51+ .monaco-custom-checkbox .monaco-simple-checkbox .checked {
52+ background : url ('check-dark.svg' ) center center no-repeat;
53+ }
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export class Checkbox extends Widget {
9999
100100 this . domNode = document . createElement ( 'div' ) ;
101101 this . domNode . title = this . _opts . title ;
102- this . domNode . className = 'monaco-custom-checkbox codicon ' + ( this . _opts . actionClassName || '' ) + ' ' + ( this . _checked ? 'codicon-check ' : 'unchecked' ) ;
102+ this . domNode . className = 'monaco-custom-checkbox codicon ' + ( this . _opts . actionClassName || '' ) + ' ' + ( this . _checked ? 'checked ' : 'unchecked' ) ;
103103 this . domNode . tabIndex = 0 ;
104104 this . domNode . setAttribute ( 'role' , 'checkbox' ) ;
105105 this . domNode . setAttribute ( 'aria-checked' , String ( this . _checked ) ) ;
@@ -143,9 +143,9 @@ export class Checkbox extends Widget {
143143 this . _checked = newIsChecked ;
144144 this . domNode . setAttribute ( 'aria-checked' , String ( this . _checked ) ) ;
145145 if ( this . _checked ) {
146- this . domNode . classList . add ( 'codicon-check ' ) ;
146+ this . domNode . classList . add ( 'checked ' ) ;
147147 } else {
148- this . domNode . classList . remove ( 'codicon-check ' ) ;
148+ this . domNode . classList . remove ( 'checked ' ) ;
149149 }
150150
151151 this . applyStyles ( ) ;
You can’t perform that action at this time.
0 commit comments