Skip to content

1.8.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 14:37
· 9 commits to main since this release

Added

  • Follow the link colour (Style Settings, Links). A link the plugin inserted can be derived from the link colour of the note it sits in — the one your theme paints there, including a colour a cssclass gives a single note — and either turn its hue by Hue shift or replace it with Hue. Lightness and saturation stay the theme's, so such a link keeps its relationship to your other links when the theme, the accent colour or the note changes. It needs an Obsidian installer new enough for relative colours; without them the colour above is used, and nothing else changes.

Fixed

  • A link colour you picked lost to the theme's own. A theme's link rule is more specific than the plugin's, so the colour chosen in Style Settings reached the underline and the mark but not the link text, and a theme change or an accent-colour change could take it back. A colour you set is now answered at a weight no theme rule can outrank; a colour you leave alone still follows the theme, as before, and now follows it per note.
  • A colour set in a snippet rather than in the panel now reaches the link. The plugin's resolved copy of the theme's colours sat at the same weight as a snippet's own rule and won or lost by stylesheet order, which Obsidian reshuffles on a reload or a snippet edit; it now sits one step below, so both Style Settings and a snippet outrank it.
  • On Obsidian 1.13 the preview line highlight could bury the code on top of it. Base colours moved to OKLCH there, and the cap that keeps the theme's selection colour readable behind a snippet only understood rgb(), so it passed the colour through at full strength.
  • On Obsidian 1.13 a colour picker could come up blank, for the same reason: Style Settings draws a swatch only for #, rgb or hsl. A resolved colour is now always handed over in sRGB.

Internal

  • Whether a colour has been set is decided by resolving both the value in use and the one the stylesheet declares through the same probe, so a hex stored by Style Settings and a theme's rgb() compare as colours rather than as text. All four linkers share the mechanism.