chore: theme script migration (#912)

This commit is contained in:
Thomas Fitzpatrick 2023-04-16 01:43:55 +01:00 committed by GitHub
parent 58a709916a
commit 0213a8e482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 278 additions and 293 deletions

View File

@ -57,11 +57,8 @@ Run these commands:
In **Bash**:
```bash
cd "$(dirname "$(spicetify -c)")/Themes/Dribbblish"
mkdir -p ../../Extensions
cp dribbblish.js ../../Extensions/.
spicetify config extensions dribbblish.js
spicetify config current_theme Dribbblish color_scheme base
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1
spicetify apply
```
@ -69,10 +66,8 @@ spicetify apply
In **Powershell**:
```powershell
cd "$(spicetify -c | Split-Path)\Themes\Dribbblish"
Copy-Item dribbblish.js ..\..\Extensions
spicetify config extensions dribbblish.js
spicetify config current_theme Dribbblish color_scheme base
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1
spicetify apply
```
@ -97,12 +92,9 @@ Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/spicetify/
```
## Manual uninstall
Remove the dribbblish script with the following commands
Remove the dribbblish theme with the following commands
```
spicetify config extensions dribbblish.js-
```
And remove Patch lines you added in config file earlier. Finally, run:
```
spicetify config current_theme " " color_scheme " "
spicetify apply
```

View File

@ -26,13 +26,9 @@ if (Test-Path $destPath) {
}
Copy-Item $dribPath $destPath -Recurse
# Copy extension file
New-Item -ItemType Directory -Force "$spicePath\Extensions"
Copy-Item "$destPath\dribbblish.js" "$spicePath\Extensions"
Write-Host "Configuring:" -ForegroundColor Green
spicetify
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 current_theme Dribbblish extensions dribbblish.js
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1 current_theme Dribbblish
# Add patch
$configFile = Get-Content "$spicePath\config-xpui.ini"

View File

@ -1,4 +1,4 @@
spicetify config current_theme " " extensions dribbblish.js-
spicetify config current_theme " "
$configPath = spicetify -c
$configFile = Get-Content $configPath

View File

@ -43,19 +43,18 @@ spicetify config extensions fullAppDisplay.js
spicetify apply
```
2. put **Turntable** and **turntable.js** into the **.config/spicetify**
2. put **Turntable** into the **.config/spicetify**
```shell
cd spicetify-themes
cp -r Turntable ~/.config/spicetify/Themes
cp Turntable/turntable.js ~/.config/spicetify/Extensions
```
3. select the theme and extension, then apply
3. select the theme, then apply
```shell
spicetify config current_theme Turntable
spicetify config extensions turntable.js
spicetify config inject_theme_js 1
spicetify apply
```
@ -65,7 +64,6 @@ spicetify apply
```shell
rm -r ~/.config/spicetify/Themes/Turntable
rm ~/.config/spicetify/Extensions/turntable.js
```
2. config to spicetify default theme
@ -74,11 +72,10 @@ rm ~/.config/spicetify/Extensions/turntable.js
spicetify config current_theme SpicetifyDefault
```
3. remove extension - Full App Display and Turntable(optional)
3. remove extension - Full App Display
```shell
spicetify config extensions fullAppDisplay.js-
spicetify config extensions turntable.js-
```
4. apply

View File

@ -49,7 +49,7 @@
"usercss": "Dribbblish/user.css",
"schemes": "Dribbblish/color.ini",
"include": [
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Dribbblish/dribbblish.js"
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Dribbblish/theme.js"
],
"authors": [
{
@ -94,7 +94,7 @@
"usercss": "Turntable/user.css",
"schemes": "Turntable/color.ini",
"include": [
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Turntable/turntable.js"
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Turntable/theme.js"
],
"authors": [
{