Browse Source

Fixed svg generator regex && added missing icons

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/9984/head
John Molakvoæ (skjnldsv) 7 years ago
committed by Julius Härtl
parent
commit
61946819ba
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 4
      apps/files/css/files.scss
  2. 2
      core/Controller/SvgController.php

4
apps/files/css/files.scss

@ -90,7 +90,7 @@
@include icon-color('recent', 'files', $color-black);
}
.nav-icon-favorites {
@include icon-color('star-dark', 'files', $color-black);
@include icon-color('star-dark', 'files', $color-black, 2, true);
}
.nav-icon-sharingin,
.nav-icon-sharingout {
@ -106,7 +106,7 @@
@include icon-color('delete', 'files', $color-black);
}
.nav-icon-deletedshares {
background-image: url('../img/unshare.svg?v=1');
@include icon-color('unshare', 'files', $color-black);
}
#app-navigation .nav-files a.nav-icon-files {

2
core/Controller/SvgController.php

@ -111,7 +111,7 @@ class SvgController extends Controller {
}
// add fill (fill is not present on black elements)
$fillRe = '/<((circle|rect|path)((?!fill)[a-z0-9 =".\-#])+)\/>/mi';
$fillRe = '/<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;])+)\/>/mi';
$svg = preg_replace($fillRe, '<$1 fill="#' . $color . '"/>', $svg);

Loading…
Cancel
Save