From 571636c5264d68e241cd769b5515b35f0f02215f Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 18 Oct 2022 22:26:14 -0700 Subject: [PATCH] Fixed cursor color being black --- styles/src/styleTree/app.ts | 2 +- styles/src/styleTree/terminal.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/styles/src/styleTree/app.ts b/styles/src/styleTree/app.ts index 0a15cc032a..3a800c415b 100644 --- a/styles/src/styleTree/app.ts +++ b/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: { diff --git a/styles/src/styleTree/terminal.ts b/styles/src/styleTree/terminal.ts index 046ebf4e01..a32a976fbf 100644 --- a/styles/src/styleTree/terminal.ts +++ b/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(),