Compute border colours on album indices, too.

This commit is contained in:
Aaron committed 2017-11-09 17:00:35 +01:00
1 parent 1fe2e5057f
commit 90ed084783
2 files changed
+6 -6

No files matched your search

+1 -5
View File
@@ -139,12 +139,8 @@ class PhotosIndex extends SubTemplate
foreach ($photos as $image)
{
$color = $image->bestColor();
if ($color == 'FFFFFF')
$color = 'ccc';
echo '
<div style="border-color: #', $color, '" class="landscape">';
<div style="border-color: #', $this->color($image), '" class="landscape">';
$this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, 'top');