Jump to content

Lack of contrast in mod selector


Lion.Kanzen
 Share

Recommended Posts

Every cell of the table can have a different color.

There could be support for a default color in every column, but if we want a separate color for rows (like in the lobby), then we still have to specify it in JS.

Dropdowns also have different colors per item sometimes (maplist).

You can move theat hardcoded color to a new global JS variable.

We have it in the gamesetup.js for example:

// At the top of the file
var g_ColorRandom = "orange";
var g_SenderFont = "sans-bold-13";

// Somewhere in the code
var text = '[color="'+ color +'"]' + text + '[/color]';
var text = '[font="'+ font +'"]' + text + '[/color]';
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...