Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
chore: make default accent more green
Vojtěch Škopeka9d8ebe28fbc
diff --git a/tweak/Sources/Redesigned/Kit/SGRAccent.h b/tweak/Sources/Redesigned/Kit/SGRAccent.hindex ab90a7af..16a9a102 100644--- a/tweak/Sources/Redesigned/Kit/SGRAccent.h+++ b/tweak/Sources/Redesigned/Kit/SGRAccent.h@@ -1,5 +1,5 @@// The redesign's accent colour in place of Spotify's green (SGRAccent.x), chosen apart from the native-// look's and stored under its own key; unset or negative keeps Spotify's own green.+// look's and stored under its own key; unset is #37F200, negative keeps Spotify's own green.#import <UIKit/UIKit.h>#define SGRKeyAccent @"spotifyglass.redesign.accent" // 0xRRGGBBdiff --git a/tweak/Sources/Redesigned/Kit/SGRAccent.x b/tweak/Sources/Redesigned/Kit/SGRAccent.xindex f7e79f1c..26e5b8e3 100644--- a/tweak/Sources/Redesigned/Kit/SGRAccent.x+++ b/tweak/Sources/Redesigned/Kit/SGRAccent.x@@ -15,8 +15,11 @@ static const uint32_t kGreens[] = {0x1ED760, 0x1DB954};static NSInteger sg_accent = -1; // 0xRRGGBB once chosen, read at launch+// The redesign's own green until another is picked; Spotify's is a pick of its own, stored as -1.+static const NSInteger kDefaultAccent = 0x37F200;+static NSInteger chosen(void) {- NSInteger rgb = SGInt(SGRKeyAccent, -1);+ NSInteger rgb = SGInt(SGRKeyAccent, kDefaultAccent);return rgb >= 0 && rgb <= 0xFFFFFF ? rgb : -1;}