From c25da847c2fb56de887ccc6f004e1713e7edc1aa Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sat, 27 Jul 2024 23:21:44 +0200 Subject: [PATCH] Apply color inversion until dark syntax styles are chosen Bug: T365311 Change-Id: I72cf4e5ca776e7fda11b07174493696bfde7fde0 --- resources/ext.CodeMirror.WikiEditor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/ext.CodeMirror.WikiEditor.js b/resources/ext.CodeMirror.WikiEditor.js index a5972219..0e3c29fb 100644 --- a/resources/ext.CodeMirror.WikiEditor.js +++ b/resources/ext.CodeMirror.WikiEditor.js @@ -237,6 +237,9 @@ function init() { $codeMirror.addClass( 'cm-mw-colorblind-colors' ); } + // T365311: Apply color inversion until dark syntax styles are chosen + $codeMirror.addClass( 'notheme skin-invert' ); + // T305333: Reload CodeMirror to fix a cursor caret issue. codeMirror.refresh();