Ticket #3205: lobby_colors_fix.patch

File lobby_colors_fix.patch, 1.5 KB (added by fpre_O_O_O_O_O_O, 9 years ago)

quick fix for dark colors

  • gui/lobby/lobby.js

    old new  
    394394            // 'waiting' games are highlighted in orange, 'running' in red, and 'init' in green.
    395395            let name;
    396396            if (g.state == 'init')
    397                 name = '[color="0 125 0"]' + g.name + '[/color]';
     397                name = '[color="0 219 0"]' + g.name + '[/color]';
    398398            else if (g.state == 'waiting')
    399399                name = '[color="255 127 0"]' + g.name + '[/color]';
    400400            else
    401                 name = '[color="255 0 0"]' + g.name + '[/color]';
     401                name = '[color="219 0 0"]' + g.name + '[/color]';
    402402            list_name.push(name);
    403403            list_ip.push(g.ip);
    404404            list_mapName.push(translate(g.niceMapName));
     
    443443    switch (presence)
    444444    {
    445445    case "playing":
    446         color = "125 0 0";
     446        color = "191 0 0";
    447447        status = translate("Busy");
    448448        break;
    449449    case "gone":
     
    452452        status = translate("Away");
    453453        break;
    454454    case "available":
    455         color = "0 125 0";
     455        color = "0 219 0";
    456456        status = translate("Online");
    457457        break;
    458458    case "offline":
     
    10171017    // us much more variety if we generate in RGB. Unfortunately, enforcing that RGB values are a certain lightness is very difficult, so
    10181018    // we convert to HSL to do the computation. Since our GUI code only displays RGB colors, we have to convert back.
    10191019    var [h, s, l] = rgbToHsl(hash >> 24 & 0xFF, hash >> 16 & 0xFF, hash >> 8 & 0xFF);
    1020     return hslToRgb(h, s, Math.max(0.4, l)).join(" ");
     1020    return hslToRgb(h, s, Math.max(0.7, l)).join(" ");
    10211021}
    10221022
    10231023function repeatString(times, string) {