From 4fd2bf1895375d0fdee82eeab6afd02de1f9a81c Mon Sep 17 00:00:00 2001 From: AnPod Date: Thu, 15 Oct 2026 16:40:06 +0200 Subject: [PATCH] Theme standalone Obsidian data file selections and active lines --- default/themed/obsidian.css.tpl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/default/themed/obsidian.css.tpl b/default/themed/obsidian.css.tpl index e3702d450b3d..a997a518b538 100644 --- a/default/themed/obsidian.css.tpl +++ b/default/themed/obsidian.css.tpl @@ -97,3 +97,22 @@ .search-result-file-title { color: var(--interactive-accent); } + +/* Standalone data file source view */ +.datafile-source-view.mod-cm6 { + --datafile-active-line: color-mix(in srgb, var(--text-selection) 70%, var(--background-primary)); +} + +.datafile-source-view.mod-cm6 .cm-selectionLayer .cm-selectionBackground { + background: var(--text-selection) !important; +} + +.datafile-source-view.mod-cm6 .cm-content ::selection { + background: transparent !important; + color: var(--text-normal) !important; +} + +.datafile-source-view.mod-cm6 .cm-activeLine, +.datafile-source-view.mod-cm6 .cm-gutterElement.cm-activeLineGutter { + background: var(--datafile-active-line); +}