From 220d5ded1b7e6addd9b6f495e887c5d9cfd6c00c Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 28 Jan 2019 00:48:40 +0300 Subject: [PATCH] customtheme: make fixsplash script get the image path from args --- patches/customtheme/README.md | 2 +- patches/customtheme/fixsplash.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/patches/customtheme/README.md b/patches/customtheme/README.md index f3b03e05b3..7011dfd104 100644 --- a/patches/customtheme/README.md +++ b/patches/customtheme/README.md @@ -2,7 +2,7 @@ This patch replaces theme with a pitch black theme, similar to [0cord](https://gitlab.com/ao/0cord). However, you're free to design your own theme. A reference for the values you need are provided below. -Copy `asset_loading.png` to root of Discord's extracted folder and run `fixsplash.sh` to fix the splash. +Run `fixsplash.sh ` to fix the splash. #### Bugs / Side effects - Not all colors are replaced (almost all are, though) diff --git a/patches/customtheme/fixsplash.sh b/patches/customtheme/fixsplash.sh index 7ede36b492..2ae02a17b6 100644 --- a/patches/customtheme/fixsplash.sh +++ b/patches/customtheme/fixsplash.sh @@ -1,2 +1,3 @@ -\cp asset_loading.png res/drawable-xxhdpi/asset_loading.png -\cp asset_loading.png res/drawable-xxxhdpi/asset_loading.png +#!/bin/bash +\cp "$1" res/drawable-xxhdpi/asset_loading.png +\cp "$1" res/drawable-xxxhdpi/asset_loading.png