Skip to content

Commit

Permalink
change notebook text output background
Browse files Browse the repository at this point in the history
  • Loading branch information
jshinonome committed Jul 17, 2022
1 parent 8675951 commit 73c31e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { kTypeName } from '../client/util/k-map';
import './style.css';

const darkColor={
'info':'#5E35B1',
'error':'#B71C1C',
'info':'rgb(158, 158, 158, 0.05)',
'error':'rgb(244, 67, 54, 0.11)',
};

const lightColor = {
'info':'#EDE7F6',
'error':'#FFEBEE',
'info':'rgb(158, 158, 158, 0.05)',
'error':'rgb(244, 67, 54, 0.11)',
};


Expand Down Expand Up @@ -41,7 +41,7 @@ export const QNotebookCell: FunctionComponent<{ queryResult: Readonly<QueryResul
};

const CodeCell: FunctionComponent<{ color: Readonly<string>, text: string }> = ({ color, text }) => {
return <div style={'max-height:50em;overflow:auto'}><pre style={'padding:5px;border-left:5px solid '+color}>
return <div style={'max-height:50em;overflow:auto;background:'+color}><pre style={'padding:5px'}>
<code class="vscode-code-block" data-vscode-code-block-lang="q"><div class="monaco-tokenized-source">{text}</div></code>
</pre></div>;
};
Expand Down

0 comments on commit 73c31e2

Please sign in to comment.