(marker: Marker, theme: Theme)
| 377 | } |
| 378 | |
| 379 | function wordBackground(marker: Marker, theme: Theme): Color { |
| 380 | switch (marker) { |
| 381 | case '+': |
| 382 | return theme.addWord |
| 383 | case '-': |
| 384 | return theme.deleteWord |
| 385 | case ' ': |
| 386 | return theme.background |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | function decorationColor(marker: Marker, theme: Theme): Color { |
| 391 | switch (marker) { |