mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43: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 games
|
||||
case lifestyle
|
||||
case photoAndVideo = "photo"
|
||||
case photoAndVideo = "photo-video"
|
||||
case social
|
||||
case utilities
|
||||
case other
|
||||
@@ -37,28 +37,37 @@ public enum StoreCategory: String, CaseIterable
|
||||
public var symbolName: String {
|
||||
switch self
|
||||
{
|
||||
case .developer: "terminal"
|
||||
case .entertainment: "popcorn"
|
||||
case .developer: "terminal" // renamed to apple.terminal as of iOS 17
|
||||
case .games: "gamecontroller"
|
||||
case .lifestyle: "tree"
|
||||
case .photoAndVideo: "camera"
|
||||
case .social: "hand.wave"
|
||||
case .utilities: "paperclip"
|
||||
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 {
|
||||
switch self
|
||||
{
|
||||
case .developer: UIColor.systemPurple
|
||||
case .entertainment: UIColor.systemPink
|
||||
case .games: UIColor.systemGreen
|
||||
case .lifestyle: UIColor.systemYellow
|
||||
case .photoAndVideo: UIColor.systemGray
|
||||
case .social: UIColor.systemRed
|
||||
case .developer: UIColor.systemOrange
|
||||
case .entertainment: UIColor.systemRed
|
||||
case .games: UIColor.systemPurple
|
||||
case .lifestyle: UIColor.systemGreen
|
||||
case .photoAndVideo: UIColor.systemPink
|
||||
case .social: UIColor.systemYellow
|
||||
case .utilities: UIColor.systemBlue
|
||||
case .other: UIColor.black
|
||||
case .other: UIColor.systemGray
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user