(value = !this.state.m3Enabled)
| 221 | } |
| 222 | |
| 223 | toggleM3(value = !this.state.m3Enabled) { |
| 224 | // We need to diff this one since it's a bit more expensive to toggle. |
| 225 | if (value !== this.state.m3Enabled) { |
| 226 | (document.getElementById('theme-styles') as HTMLLinkElement).href = value |
| 227 | ? 'theme-m3.css' |
| 228 | : 'theme.css'; |
| 229 | } |
| 230 | |
| 231 | this._iconRegistry.setDefaultFontSetClass( |
| 232 | value ? 'material-symbols-outlined' : 'material-icons', |
| 233 | ); |
| 234 | this.state.m3Enabled = value; |
| 235 | setAppState(this.state); |
| 236 | } |
| 237 | |
| 238 | toggleColorApiBackCompat(value = !this.state.colorApiBackCompat) { |
| 239 | this.state.colorApiBackCompat = value; |
no test coverage detected