1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

Added average color calculation of feeds' favicons for banded display.

This commit is contained in:
moontear
2013-04-15 12:28:52 +02:00
parent e43a9c4a01
commit 2cfbb448fb
5 changed files with 903 additions and 5 deletions

View File

@@ -528,8 +528,9 @@ class Feeds extends Handler_Protected {
$reply['content'] .= "<div class=\"cdm $expanded_class $class\"
id=\"RROW-$id\" $mouseover_attrs'>";
$reply['content'] .= "<div class=\"cdmHeader\">";
//setting feed headline background color, needs to change text color based on dark/light
$favColor = explode("|", $line['favicon_avg_color']);
$reply['content'] .= "<div class=\"cdmHeader\" style=\"background-color: rgb($favColor[0], $favColor[1], $favColor[2]);\">";
$reply['content'] .= "<div style=\"vertical-align : middle\">";
$reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"