Skip to content

Commit

Permalink
feat: add background color to penrose display (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuma-mizuno committed Feb 17, 2024
1 parent f5b2b6f commit dfb5ad6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widget/src/penroseDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default function(props: DiagramData & {pos: DocumentPosition}): JSX.Eleme
)

const colForeground = getCssColour('--vscode-editor-foreground')
const colBackground = getCssColour('--vscode-editor-background')
const colTooltipBackground = getCssColour('--vscode-editorHoverWidget-background')
const colTooltipForeground = getCssColour('--vscode-editorHoverWidget-foreground')
const colTooltipBorder = getCssColour('--vscode-editorHoverWidget-border')
Expand All @@ -52,6 +53,7 @@ export default function(props: DiagramData & {pos: DocumentPosition}): JSX.Eleme
`
theme {
color foreground = ${colForeground}
color background = ${colBackground}
color tooltipBackground = ${colTooltipBackground}
color tooltipForeground = ${colTooltipForeground}
color tooltipBorder = ${colTooltipBorder}
Expand Down

0 comments on commit dfb5ad6

Please sign in to comment.