From 17ac038ae447fd3a5432ebfe80916e05752351db Mon Sep 17 00:00:00 2001 From: Steph Toyofuku Date: Tue, 25 Jun 2024 14:30:30 -0700 Subject: [PATCH] Invert mathematical formulas in visual editor Add the skin-invert class to latex symbols (insert chemical formula and math formula dialogues) so that they appear legible in night mode. This is likely the only way we can accomplish this until mathml is fully rolled out, at which I believe this will no longer be necessary Bug: T366737 Change-Id: Ia0dfa4ab684f5205d109da7f9aefad927be70eb0 --- modules/ve-math/ve.ui.MWLatexDialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ve-math/ve.ui.MWLatexDialog.js b/modules/ve-math/ve.ui.MWLatexDialog.js index c2211b0b3..6f75cbb4d 100644 --- a/modules/ve-math/ve.ui.MWLatexDialog.js +++ b/modules/ve-math/ve.ui.MWLatexDialog.js @@ -160,6 +160,10 @@ ve.ui.MWLatexDialog.prototype.initialize = function () { if ( symbol.largeLayout ) { classes.push( 've-ui-mwLatexDialog-symbol-largeLayout' ); } + + // T366737 - make sure the symbols appear in night mode + classes.push( 'skin-invert' ); + symbol.label = ''; symbol.classes = classes;