Fixed cursor color being black

Mikayla Maki created

Change summary

styles/src/styleTree/app.ts      | 2 +-
styles/src/styleTree/terminal.ts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

styles/src/styleTree/app.ts 🔗

@@ -50,7 +50,7 @@ export default function app(colorScheme: ColorScheme): Object {
     },
     updateNotification: updateNotification(colorScheme),
     tooltip: tooltip(colorScheme),
-    terminal: terminal(colorScheme.lowest),
+    terminal: terminal(colorScheme.lowest, colorScheme.players[0].cursor),
     colorScheme: {
       ...colorScheme,
       lowest: {

styles/src/styleTree/terminal.ts 🔗

@@ -1,6 +1,6 @@
 import { Elevation } from "../themes/common/colorScheme";
 
-export default function terminal(elevation: Elevation) {
+export default function terminal(elevation: Elevation, cursor_color: string) {
   /**
    * Colors are controlled per-cell in the terminal grid.
    * Cells can be set to any of these more 'theme-capable' colors
@@ -37,7 +37,7 @@ export default function terminal(elevation: Elevation) {
     /**
      * Default color for the cursor
      */
-    cursor: elevation.ramps.blue(0).hex(),
+    cursor: cursor_color,
     dimBlack: elevation.ramps.neutral(1).hex(),
     dimRed: elevation.ramps.red(0.75).hex(),
     dimGreen: elevation.ramps.green(0.75).hex(),