Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-08-20 16:19:58 +0300
committerHannah von Reth <vonreth@kde.org>2020-08-21 12:38:17 +0300
commitfa595186432da08b0790082d7d2befc1cc420f19 (patch)
treee0b78cf567e3e6f4b298ad348aceffba890bdd7b /resources/font-awesome/update_color.ps1
parent4d9d06e9836bd9eeddbf317665bc4dc5e7d4357f (diff)
Replace monochrome icons with https://fontawesome.com svg's
Diffstat (limited to 'resources/font-awesome/update_color.ps1')
-rw-r--r--resources/font-awesome/update_color.ps117
1 files changed, 17 insertions, 0 deletions
diff --git a/resources/font-awesome/update_color.ps1 b/resources/font-awesome/update_color.ps1
new file mode 100644
index 000000000..b1fe755e0
--- /dev/null
+++ b/resources/font-awesome/update_color.ps1
@@ -0,0 +1,17 @@
+<#
+ .SYNOPSIS
+ This script replaces the color in all svg files in this folder
+#>
+$COLOR=$Args[0]
+Write-Host "Color:" $COLOR
+if (-not $COLOR) {
+ Write-Host "Please specify color"
+ Write-Host "update_corlor.ps1 `"#B5B6BB`""
+ exit(1)
+}
+Get-ChildItem "*.svg" | % {
+ $tmp = Get-Content $_
+ $tmp = $tmp -replace "fill=`"\S+`"", "fill=`"$COLOR`""
+ Set-Content -Path $_ -Value $tmp
+
+}