commento.js: update avatar colors to be more distinct

This commit is contained in:
Adhityaa Chandrasekar 2018-12-18 19:02:01 -05:00
parent 610b61831d
commit 1f8f3b3a36

View File

@ -528,13 +528,13 @@
function colorGet(name) { function colorGet(name) {
var colors = [ var colors = [
// some visually distincy "#396ab1",
"#35b2de", // some kind of teal/cyan "#da7c30",
"#62cd0a", // fresh lemon green "#3e9651",
"#383838", // shade of gray "#cc2529",
"#e4a90f", // comfy yellow "#535154",
"#f80707", // sharp red "#6b4c9a",
"#f0479c", // bright pink "#922428",
]; ];
var total = 0; var total = 0;
@ -622,7 +622,7 @@
var sticky = create("button"); var sticky = create("button");
var children = commentsRecurse(parentMap, comment.commentHex); var children = commentsRecurse(parentMap, comment.commentHex);
var contents = create("div"); var contents = create("div");
var color = colorGet(commenter.name); var color = colorGet(comment.commenterHex + "-" + commenter.name);
var name; var name;
if (commenter.link != "undefined" && commenter.link != "https://undefined" && commenter.link != "") if (commenter.link != "undefined" && commenter.link != "https://undefined" && commenter.link != "")
name = create("a"); name = create("a");