From: Andrew Dolgov Date: Mon, 11 Aug 2008 07:09:25 +0000 (+0100) Subject: tweaked score icons X-Git-Tag: 1.2.26~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1cce3aca13c360fdec6832ac5df30f9472a54360;p=tt-rss.git tweaked score icons --- diff --git a/functions.php b/functions.php index c70bdcc8..f2800552 100644 --- a/functions.php +++ b/functions.php @@ -5647,10 +5647,14 @@ } function get_score_pic($score) { - if ($score > 0) { + if ($score > 100) { return "score_high.png"; - } else if ($score < 0) { + } else if ($score > 0) { + return "score_half_high.png"; + } else if ($score < -100) { return "score_low.png"; + } else if ($score < 0) { + return "score_half_low.png"; } else { return "score_neutral.png"; } diff --git a/images/score_half_high.png b/images/score_half_high.png new file mode 100644 index 00000000..0bac7b86 Binary files /dev/null and b/images/score_half_high.png differ diff --git a/images/score_half_low.png b/images/score_half_low.png new file mode 100644 index 00000000..c88198d4 Binary files /dev/null and b/images/score_half_low.png differ diff --git a/images/score_neutral.png b/images/score_neutral.png index b4cd7e23..40e21273 100644 Binary files a/images/score_neutral.png and b/images/score_neutral.png differ