diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ae5a7dca..05908fe2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased +### Fixed + +- Selected text background colour contrast in editor dark mode (#1150) + +### Changed + +- Toned down the match highlighting colour in editor dark mode (#1150) + ## [0.28.11] - 2024-12-03 ### Fixed diff --git a/src/assets/themes/editorDarkTheme.js b/src/assets/themes/editorDarkTheme.js index 04538e106..66ef7154e 100644 --- a/src/assets/themes/editorDarkTheme.js +++ b/src/assets/themes/editorDarkTheme.js @@ -17,8 +17,11 @@ export const editorDarkTheme = EditorView.theme( "background-color": "inherit", color: "inherit", }, - "&.cm-focused .cm-selectionBackground, ::selection": { - background: "#144866", + "&.cm-focused.ΝΌ3 .cm-selectionLayer .cm-selectionBackground": { + backgroundColor: "#144866", + }, + ".cm-selectionMatch": { + backgroundColor: "rgba(153, 255, 119, 0.2)", }, "&.cm-focused .cm-cursor": { borderLeftColor: "white",