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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...