From 0872f641dd41dce2ded8f3694ef5089077defd8c Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 11 Jun 2013 14:30:13 +0200 Subject: [PATCH] darker low threshold color for file size and age fading, better contrast --- apps/files/js/filelist.js | 2 +- apps/files/templates/part.list.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c24d1fd8244..e19a35bbc5b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -51,7 +51,7 @@ var FileList={ }else{ simpleSize=t('files', 'Pending'); } - var sizeColor = Math.round(200-Math.pow((size/(1024*1024)),2)); + var sizeColor = Math.round(160-Math.pow((size/(1024*1024)),2)); var lastModifiedTime = Math.round(lastModified.getTime() / 1000); td = $('').attr({ "class": "filesize", diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 1719d25e660..1e94275dcba 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -3,12 +3,12 @@ 200) $relative_date_color = 200; + if($relative_date_color>160) $relative_date_color = 160; $name = rawurlencode($file['name']); $name = str_replace('%2F', '/', $name); $directory = rawurlencode($file['directory']); -- 2.39.5