mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 17:23:25 +01:00
[AltStoreCore] Finalizes StoreCategory icons, colors, and JSON values
This commit is contained in:
@@ -15,7 +15,7 @@ public enum StoreCategory: String, CaseIterable
|
|||||||
case entertainment
|
case entertainment
|
||||||
case games
|
case games
|
||||||
case lifestyle
|
case lifestyle
|
||||||
case photoAndVideo = "photo"
|
case photoAndVideo = "photo-video"
|
||||||
case social
|
case social
|
||||||
case utilities
|
case utilities
|
||||||
case other
|
case other
|
||||||
@@ -37,28 +37,37 @@ public enum StoreCategory: String, CaseIterable
|
|||||||
public var symbolName: String {
|
public var symbolName: String {
|
||||||
switch self
|
switch self
|
||||||
{
|
{
|
||||||
case .developer: "terminal"
|
case .developer: "terminal" // renamed to apple.terminal as of iOS 17
|
||||||
case .entertainment: "popcorn"
|
|
||||||
case .games: "gamecontroller"
|
case .games: "gamecontroller"
|
||||||
case .lifestyle: "tree"
|
|
||||||
case .photoAndVideo: "camera"
|
case .photoAndVideo: "camera"
|
||||||
case .social: "hand.wave"
|
|
||||||
case .utilities: "paperclip"
|
case .utilities: "paperclip"
|
||||||
case .other: "square.stack.3d.up"
|
case .other: "square.stack.3d.up"
|
||||||
|
|
||||||
|
case .entertainment:
|
||||||
|
if #available(iOS 17, *) { "movieclapper" }
|
||||||
|
else { "tv" }
|
||||||
|
|
||||||
|
case .lifestyle:
|
||||||
|
if #available(iOS 16.1, *) { "tree" }
|
||||||
|
else { "sun.max" }
|
||||||
|
|
||||||
|
case .social:
|
||||||
|
if #available(iOS 17.0, *) { "bubble.left.and.text.bubble.right" }
|
||||||
|
else { "text.bubble" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public var tintColor: UIColor {
|
public var tintColor: UIColor {
|
||||||
switch self
|
switch self
|
||||||
{
|
{
|
||||||
case .developer: UIColor.systemPurple
|
case .developer: UIColor.systemOrange
|
||||||
case .entertainment: UIColor.systemPink
|
case .entertainment: UIColor.systemRed
|
||||||
case .games: UIColor.systemGreen
|
case .games: UIColor.systemPurple
|
||||||
case .lifestyle: UIColor.systemYellow
|
case .lifestyle: UIColor.systemGreen
|
||||||
case .photoAndVideo: UIColor.systemGray
|
case .photoAndVideo: UIColor.systemPink
|
||||||
case .social: UIColor.systemRed
|
case .social: UIColor.systemYellow
|
||||||
case .utilities: UIColor.systemBlue
|
case .utilities: UIColor.systemBlue
|
||||||
case .other: UIColor.black
|
case .other: UIColor.systemGray
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user