Skip to content

Commit 5c3aaed

Browse files
author
Miguel Solorio
committed
Revert "Replace checkbox icon with icon font"
This reverts commit 5f27d2a.
1 parent baac06c commit 5c3aaed

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/vs/base/browser/ui/checkbox/checkbox.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@
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+
}

src/vs/base/browser/ui/checkbox/checkbox.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)