[SSE] Fix agruments highlighting in dark theme

This commit is contained in:
Julia.Radzhabova
2025-09-22 14:49:42 +03:00
parent 86e3440a5a
commit f29503d7ac
2 changed files with 11 additions and 2 deletions

View File

@ -58,6 +58,15 @@
.tooltip[dir=auto] & {
text-align: unset;
}
span.contrast {
font-weight: bold;
color: #000;
.theme-type-dark & {
color: #fff;
}
}
}
.link-tooltip .tooltip-inner {

View File

@ -3262,7 +3262,7 @@ define([], function () {
let argcount = arr.length;
for (var j = 0; j < types.length; j++) {
var str = me.getArgumentName(argcount, argsNames, repeatedArg, minArgCount, maxArgCount, repeatedIdx);
activeArg && (argcount===activeArg-1) && (str = '<b>' + str + '</b>');
activeArg && (argcount===activeArg-1) && (str = '<span class="contrast">' + str + '</span>');
arr.push(str);
argcount++;
}
@ -3288,7 +3288,7 @@ define([], function () {
}
repeatedArg && arr.push('...');
hint = this.api.asc_getFormulaLocaleName(name);
!activeArg && (hint = '<b>' + hint + '</b>');
!activeArg && (hint = '<span class="contrast">' + hint + '</span>');
hint += '(' + arr.join(this.api.asc_getFunctionArgumentSeparator() + ' ') + ')';
} else {
if (funcdesc && funcdesc[name]) {