(theme: Theme)
| 208 | } |
| 209 | |
| 210 | function getModifiedSelectionStyle(theme: Theme) { |
| 211 | const lines: string[] = []; |
| 212 | const modifiedSelectionColor = getSelectionColor(theme); |
| 213 | const backgroundColorSelection = modifiedSelectionColor.backgroundColorSelection; |
| 214 | const foregroundColorSelection = modifiedSelectionColor.foregroundColorSelection; |
| 215 | ['::selection', '::-moz-selection'].forEach((selection) => { |
| 216 | lines.push(`${selection} {`); |
| 217 | lines.push(` background-color: ${backgroundColorSelection} !important;`); |
| 218 | lines.push(` color: ${foregroundColorSelection} !important;`); |
| 219 | lines.push('}'); |
| 220 | }); |
| 221 | return lines.join('\n'); |
| 222 | } |
| 223 | |
| 224 | function getModifiedScrollbarStyle(theme: Theme) { |
| 225 | let colorTrack: string; |
no test coverage detected