From cce21bb1849fbcd8784ddd11b2975e21388e1364 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 12 Mar 2015 13:05:34 +1030 Subject: [PATCH] Brighten up avatar colors --- ember/app/styles/flarum/user.less | 1 + ember/app/utils/string-to-color.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ember/app/styles/flarum/user.less b/ember/app/styles/flarum/user.less index f1b9a2287..3ec630c5e 100644 --- a/ember/app/styles/flarum/user.less +++ b/ember/app/styles/flarum/user.less @@ -50,6 +50,7 @@ float: left; margin-left: -130px; border: 4px solid #fff; + .box-shadow(0 2px 6px @fl-shadow-color); } & .badges { margin-left: 10px; diff --git a/ember/app/utils/string-to-color.js b/ember/app/utils/string-to-color.js index 150beb70a..81741b0fb 100644 --- a/ember/app/utils/string-to-color.js +++ b/ember/app/utils/string-to-color.js @@ -31,6 +31,6 @@ export default function(string) { num += string.charCodeAt(i); } var hue = num % 360; - var rgb = hsvToRgb(hue / 360, 100 / 255, 200 / 255); + var rgb = hsvToRgb(hue / 360, 0.4, 0.9); return ''+rgb.r.toString(16)+rgb.g.toString(16)+rgb.b.toString(16); };