Browse Source

quattro: icons for attachments

tags/2.38
Fabio Comuni 8 years ago
parent
commit
fe3e8ee854
29 changed files with 69 additions and 3 deletions
  1. BIN
      images/icons/10/audio.png
  2. BIN
      images/icons/10/image.png
  3. BIN
      images/icons/10/text.png
  4. BIN
      images/icons/10/video.png
  5. BIN
      images/icons/10/zip.png
  6. BIN
      images/icons/16/audio.png
  7. BIN
      images/icons/16/image.png
  8. BIN
      images/icons/16/text.png
  9. BIN
      images/icons/16/video.png
  10. BIN
      images/icons/16/zip.png
  11. BIN
      images/icons/22/audio.png
  12. BIN
      images/icons/22/image.png
  13. BIN
      images/icons/22/text.png
  14. BIN
      images/icons/22/video.png
  15. BIN
      images/icons/22/zip.png
  16. BIN
      images/icons/48/audio.png
  17. BIN
      images/icons/48/image.png
  18. BIN
      images/icons/48/text.png
  19. BIN
      images/icons/48/video.png
  20. BIN
      images/icons/48/zip.png
  21. +2
    -1
      images/icons/Makefile
  22. BIN
      images/icons/audio.png
  23. BIN
      images/icons/image.png
  24. BIN
      images/icons/text.png
  25. BIN
      images/icons/video.png
  26. BIN
      images/icons/zip.png
  27. +2
    -2
      include/text.php
  28. +5
    -0
      view/theme/quattro/icons.less
  29. +60
    -0
      view/theme/quattro/style.css

BIN
images/icons/10/audio.png View File

Before After
Width: 10  |  Height: 10  |  Size: 470 B

BIN
images/icons/10/image.png View File

Before After
Width: 10  |  Height: 10  |  Size: 455 B

BIN
images/icons/10/text.png View File

Before After
Width: 10  |  Height: 10  |  Size: 435 B

BIN
images/icons/10/video.png View File

Before After
Width: 10  |  Height: 10  |  Size: 454 B

BIN
images/icons/10/zip.png View File

Before After
Width: 10  |  Height: 10  |  Size: 468 B

BIN
images/icons/16/audio.png View File

Before After
Width: 16  |  Height: 16  |  Size: 599 B

BIN
images/icons/16/image.png View File

Before After
Width: 16  |  Height: 16  |  Size: 667 B

BIN
images/icons/16/text.png View File

Before After
Width: 16  |  Height: 16  |  Size: 503 B

BIN
images/icons/16/video.png View File

Before After
Width: 16  |  Height: 16  |  Size: 527 B

BIN
images/icons/16/zip.png View File

Before After
Width: 16  |  Height: 16  |  Size: 623 B

BIN
images/icons/22/audio.png View File

Before After
Width: 22  |  Height: 22  |  Size: 713 B

BIN
images/icons/22/image.png View File

Before After
Width: 22  |  Height: 22  |  Size: 916 B

BIN
images/icons/22/text.png View File

Before After
Width: 22  |  Height: 22  |  Size: 583 B

BIN
images/icons/22/video.png View File

Before After
Width: 22  |  Height: 22  |  Size: 616 B

BIN
images/icons/22/zip.png View File

Before After
Width: 22  |  Height: 22  |  Size: 785 B

BIN
images/icons/48/audio.png View File

Before After
Width: 48  |  Height: 48  |  Size: 1.3 KiB

BIN
images/icons/48/image.png View File

Before After
Width: 48  |  Height: 48  |  Size: 2.2 KiB

BIN
images/icons/48/text.png View File

Before After
Width: 48  |  Height: 48  |  Size: 972 B

BIN
images/icons/48/video.png View File

Before After
Width: 48  |  Height: 48  |  Size: 1022 B

BIN
images/icons/48/zip.png View File

Before After
Width: 48  |  Height: 48  |  Size: 1.6 KiB

+ 2
- 1
images/icons/Makefile View File

@@ -2,7 +2,8 @@
IMAGES=add.png edit.png gear.png info.png menu.png \
notify_off.png star.png delete.png feed.png group.png \
lock.png notice.png notify_on.png user.png link.png \
play.png plugin.png unlock.png
play.png plugin.png unlock.png zip.png audio.png video.png \
image.png text.png

DESTS=10/ 16/ 22/ 48/ \
$(addprefix 10/, $(IMAGES)) \


BIN
images/icons/audio.png View File

Before After
Width: 128  |  Height: 128  |  Size: 7.8 KiB

BIN
images/icons/image.png View File

Before After
Width: 128  |  Height: 128  |  Size: 14 KiB

BIN
images/icons/text.png View File

Before After
Width: 128  |  Height: 128  |  Size: 6.0 KiB

BIN
images/icons/video.png View File

Before After
Width: 128  |  Height: 128  |  Size: 6.0 KiB

BIN
images/icons/zip.png View File

Before After
Width: 128  |  Height: 128  |  Size: 9.6 KiB

+ 2
- 2
include/text.php View File

@@ -799,10 +799,10 @@ function prepare_body($item,$attach = false) {
case 'audio':
case 'image':
case 'text':
$icon = '<div class="attachtype type-' . $icontype . '"></div>';
$icon = '<div class="attachtype icon s22 type-' . $icontype . '"></div>';
break;
default:
$icon = '<div class="attachtype type-unkn"></div>';
$icon = '<div class="attachtype icon s22 type-unkn"></div>';
break;
}
$title = ((strlen(trim($matches[4]))) ? escape_tags(trim($matches[4])) : escape_tags($matches[1]));


+ 5
- 0
view/theme/quattro/icons.less View File

@@ -13,6 +13,11 @@
&.link { background-image: url("../../../images/icons/@{size}/link.png"); }
&.lock { background-image: url("../../../images/icons/@{size}/lock.png"); }
&.unlock { background-image: url("../../../images/icons/@{size}/unlock.png"); }
&.type-unkn { background-image: url("../../../images/icons/@{size}/zip.png"); }
&.type-audio{ background-image: url("../../../images/icons/@{size}/audio.png"); }
&.type-video{ background-image: url("../../../images/icons/@{size}/video.png"); }
&.type-image{ background-image: url("../../../images/icons/@{size}/image.png"); }
&.type-text { background-image: url("../../../images/icons/@{size}/text.png"); }
}



+ 60
- 0
view/theme/quattro/style.css View File

@@ -48,6 +48,21 @@
.icon.s10.unlock {
background-image: url("../../../images/icons/10/unlock.png");
}
.icon.s10.type-unkn {
background-image: url("../../../images/icons/10/zip.png");
}
.icon.s10.type-audio {
background-image: url("../../../images/icons/10/audio.png");
}
.icon.s10.type-video {
background-image: url("../../../images/icons/10/video.png");
}
.icon.s10.type-image {
background-image: url("../../../images/icons/10/image.png");
}
.icon.s10.type-text {
background-image: url("../../../images/icons/10/text.png");
}
.icon.s10.text {
padding: 2px 0px 0px 15px;
}
@@ -85,6 +100,21 @@
.icon.s16.unlock {
background-image: url("../../../images/icons/16/unlock.png");
}
.icon.s16.type-unkn {
background-image: url("../../../images/icons/16/zip.png");
}
.icon.s16.type-audio {
background-image: url("../../../images/icons/16/audio.png");
}
.icon.s16.type-video {
background-image: url("../../../images/icons/16/video.png");
}
.icon.s16.type-image {
background-image: url("../../../images/icons/16/image.png");
}
.icon.s16.type-text {
background-image: url("../../../images/icons/16/text.png");
}
.icon.s16.text {
padding: 4px 0px 0px 20px;
}
@@ -122,6 +152,21 @@
.icon.s22.unlock {
background-image: url("../../../images/icons/22/unlock.png");
}
.icon.s22.type-unkn {
background-image: url("../../../images/icons/22/zip.png");
}
.icon.s22.type-audio {
background-image: url("../../../images/icons/22/audio.png");
}
.icon.s22.type-video {
background-image: url("../../../images/icons/22/video.png");
}
.icon.s22.type-image {
background-image: url("../../../images/icons/22/image.png");
}
.icon.s22.type-text {
background-image: url("../../../images/icons/22/text.png");
}
.icon.s22.text {
padding: 10px 0px 0px 25px;
}
@@ -159,6 +204,21 @@
.icon.s48.unlock {
background-image: url("../../../images/icons/48/unlock.png");
}
.icon.s48.type-unkn {
background-image: url("../../../images/icons/48/zip.png");
}
.icon.s48.type-audio {
background-image: url("../../../images/icons/48/audio.png");
}
.icon.s48.type-video {
background-image: url("../../../images/icons/48/video.png");
}
.icon.s48.type-image {
background-image: url("../../../images/icons/48/image.png");
}
.icon.s48.type-text {
background-image: url("../../../images/icons/48/text.png");
}
/* global */
body {
font-family: Liberation Sans, helvetica, arial, clean, sans-serif;


Loading…
Cancel
Save