NightDev Community Forums

Add tags.color to make the default colon match the nickname

Hi!

Is it possible to add the tags.color to the colon default so that it can match the nickname? I don’t know how to grab the color from a sibling via CSS; but, if it’s provided by default, I know how to turn it off.

Believe it’s this block here:

  var $formattedUser = $('<span></span>');
  $formattedUser.addClass('nick');
  $formattedUser.css('color', tags.color);
  $formattedUser.html(tags.displayName ? tags.displayName : nick);
  $newLine.append($formattedUser);
  action ? $newLine.append('&nbsp;') : $newLine.append('<span class="colon">:</span>&nbsp;');

If not, is there a workaround in CSS? I’m not the best at it.

Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.