From ffeaf7e05057a663b8ba15fff7f6e6c664b10af2 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 11 Mar 2022 21:51:30 +0100 Subject: [PATCH] add draw helpers + pianoroll --- repl/public/global.css | 18 ++++++++++++++++++ repl/src/App.tsx | 12 ++++++------ repl/src/draw.mjs | 43 ++++++++++++++++++++++++++++++++++++++++++ repl/src/evaluate.ts | 7 +++++-- repl/src/pianoroll.mjs | 41 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 113 insertions(+), 8 deletions(-) create mode 100644 repl/src/draw.mjs create mode 100644 repl/src/pianoroll.mjs diff --git a/repl/public/global.css b/repl/public/global.css index 668d4a6c..16e72fa9 100644 --- a/repl/public/global.css +++ b/repl/public/global.css @@ -2,7 +2,25 @@ @tailwind components; @tailwind utilities; +body { + background-color: #2a3236; +} + .react-codemirror2, .CodeMirror { height: 100% !important; + background-color: transparent !important; + //font-size: 15px; +} + +.CodeMirror-line span { + background-color: #2a323660; +} + +.CodeMirror-code { + //padding: 10px; +} + +.CodeMirror-linenumber { + background-color: transparent !important; } diff --git a/repl/src/App.tsx b/repl/src/App.tsx index 79ae1dc4..f06fab03 100644 --- a/repl/src/App.tsx +++ b/repl/src/App.tsx @@ -80,8 +80,8 @@ function App() { }); return ( -
-
+
+
logo

Strudel REPL

@@ -106,14 +106,14 @@ function App() {
-
+