cloud tiles: use folder-o for folders and set the icon colour to something a bit less harsh than the link colour for system icons. Dark solid blue folders are a bit overwhelming, as is the default text_colour (black)

This commit is contained in:
zotlabs 2017-11-19 21:51:21 -08:00
parent 6a49e3124e
commit 250d947667
4 changed files with 10 additions and 5 deletions

View file

@ -492,10 +492,11 @@ class Ping extends \Zotlabs\Web\Controller {
$t3 = dba_timer();
if($vnotify & (VNOTIFY_NETWORK|VNOTIFY_CHANNEL)) {
$r = q("SELECT id, item_wall FROM item
WHERE item_unseen = 1 and uid = %d
$item_normal
AND author_xchan != '%s'",
AND author_xchan != '%s' $sql_extra ",
intval(local_channel()),
dbesc($ob_hash)
);

View file

@ -2704,8 +2704,8 @@ function linkify_tags($a, &$body, $uid, $diaspora = false) {
function getIconFromType($type) {
$iconMap = array(
//Folder
t('Collection') => 'fa-folder',
'multipart/mixed' => 'fa-folder', //dirs in attach use this mime type
t('Collection') => 'fa-folder-o',
'multipart/mixed' => 'fa-folder-o', //dirs in attach use this mime type
//Common file
'application/octet-stream' => 'fa-file-o',
//Text

View file

@ -105,6 +105,10 @@ a,
color: $link_colour;
}
.cloud-icon.tiles i {
color: #aaa;
}
a:hover,
a:focus,
.fakelink:hover,

View file

@ -3,7 +3,7 @@
{{if $parentpath}}
<div class="cloud-container" >
<div class="cloud-icon"><a href="{{$parentpath.path}}">
<div class="cloud-icon tiles"><a href="{{$parentpath.path}}">
<i class="fa fa-fw fa-level-up" ></i>
</a>
</div>
@ -14,7 +14,7 @@
{{foreach $entries as $item}}
<div class="cloud-container">
<div class="cloud-icon"><a href="{{$item.fullPath}}">
<div class="cloud-icon tiles"><a href="{{$item.fullPath}}">
{{if $item.photo_icon}}
<img src="{{$item.photo_icon}}" title="{{$item.type}}" >
{{else}}