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
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with
3 additions and
3 deletions
-
apps/files/css/files.scss
-
core/Controller/SvgController.php
|
|
|
@ -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 { |
|
|
|
|
|
|
|
@ -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); |
|
|
|
|
|
|
|
|