From 63daa91521584ef94a07571e9c63bac20fd4696d Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 13 Jun 2013 01:48:54 +0300 Subject: [PATCH] Fix ID coloring style Add 'border-radius' and 'padding' to IDs with black colored text. --- src/Miscellaneous/ColorUserIDs.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Miscellaneous/ColorUserIDs.coffee b/src/Miscellaneous/ColorUserIDs.coffee index fcd69847d..ba7647686 100644 --- a/src/Miscellaneous/ColorUserIDs.coffee +++ b/src/Miscellaneous/ColorUserIDs.coffee @@ -29,7 +29,7 @@ IDColor = apply: -> rgb = IDColor.ids[@] or IDColor.compute @ - "background-color: rgb(#{rgb[0]},#{rgb[1]},#{rgb[2]}); color: " + if rgb[3] then "black;" else "white; border-radius: 3px; padding: 0px 2px;" + "background-color: rgb(#{rgb[0]},#{rgb[1]},#{rgb[2]}); color: " + if rgb[3] then "black; border-radius: 3px; padding: 0px 2px;" else "white; border-radius: 3px; padding: 0px 2px;" hash: (str) -> msg = 0 @@ -38,4 +38,4 @@ IDColor = while i < j msg = ((msg << 5) - msg) + str.charCodeAt i ++i - msg \ No newline at end of file + msg