Fixed svg generator regex && added missing icons
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
dccfed8d1c
commit
61946819ba
|
@ -90,7 +90,7 @@
|
||||||
@include icon-color('recent', 'files', $color-black);
|
@include icon-color('recent', 'files', $color-black);
|
||||||
}
|
}
|
||||||
.nav-icon-favorites {
|
.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-sharingin,
|
||||||
.nav-icon-sharingout {
|
.nav-icon-sharingout {
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
@include icon-color('delete', 'files', $color-black);
|
@include icon-color('delete', 'files', $color-black);
|
||||||
}
|
}
|
||||||
.nav-icon-deletedshares {
|
.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 {
|
#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)
|
// 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);
|
$svg = preg_replace($fillRe, '<$1 fill="#' . $color . '"/>', $svg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue