From: Jan-Christoph Borchardt Date: Tue, 11 Jun 2013 12:30:13 +0000 (+0200) Subject: darker low threshold color for file size and age fading, better contrast X-Git-Tag: v6.0.0alpha2~657^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0872f641dd41dce2ded8f3694ef5089077defd8c;p=nextcloud-server.git darker low threshold color for file size and age fading, better contrast --- 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']);