Skip to content

v1.6.0

Latest

Choose a tag to compare

@EmilHvitfeldt EmilHvitfeldt released this 02 Aug 23:13

Added

  • Window chrome (#10). The chrome code fence argument picks the window buttons: mac (the default) keeps the three round buttons on the left, windows puts minimize, maximize and close on the right, and none drops them entirely.
  • Custom properties for the window geometry (--codewindow-radius, --codewindow-header-height, --codewindow-header-pad, --codewindow-tab-radius, --codewindow-tab-gap, --codewindow-tab-padding and --codewindow-tab-inactive-opacity), so tab and header shape can be themed the same way the colors already were.
  • Color customization (#6). Every color is now backed by a CSS custom property (--codewindow-bg, --codewindow-header-bg, --codewindow-tab-bg, --codewindow-tab-active-bg, --codewindow-color, --codewindow-shadow-color) for deck-wide theming, and can be set per window with the matching bg, header-bg, tab-bg, tab-active-bg, color and shadow-color code fence arguments. A .codewindow-dark class gives a dark window, with syntax highlighting remapped to suit.
  • rmd file icon, with rmarkdown as an alias (#3).
  • stan and mplus file icons (#11).
  • 15 new file icons: sql, markdown, yaml, json, git and bash for common formats and tooling; sas, spss, stata, matlab, cpp and fortran for statistical and scientific languages; and typescript, rust and go.
  • Class aliases for existing icons, so the obvious spelling works: scss, md, yml, qmd, jl, f90, ts, javascript, golang, and sh/zsh/shell/console for terminal.

Fixed

  • code-line-numbers highlighting inside a codewindow. Quarto stacks a clone of the code block for each step and relies on an opaque code background to hide the one underneath, which the window unset, so the first step showed through and its lines never dimmed.