Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ComputerSolitaire.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
4B75C1E02F1A233500761A12 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = QueenOfHeartsAppIcon;
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "ComputerSolitaireBlueAppIcon ComputerSolitairePinkAppIcon QueenOfHeartsAppIcon";
ASSETCATALOG_COMPILER_APPICON_NAME = ComputerSolitaireAppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
Expand Down Expand Up @@ -345,7 +345,7 @@
4B75C1E12F1A233500761A12 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = QueenOfHeartsAppIcon;
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "ComputerSolitaireBlueAppIcon ComputerSolitairePinkAppIcon QueenOfHeartsAppIcon";
ASSETCATALOG_COMPILER_APPICON_NAME = ComputerSolitaireAppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"fill" : {
"automatic-gradient" : "display-p3:0.18250,0.41357,0.66016,1.00000",
"automatic-gradient" : "display-p3:0.36816,0.53076,0.53320,1.00000",
"orientation" : {
"start" : {
"x" : 0.5,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"fill" : {
"automatic-gradient" : "display-p3:0.18250,0.41357,0.66016,1.00000",
"orientation" : {
"start" : {
"x" : 0.5,
"y" : 1
},
"stop" : {
"x" : 0.5,
"y" : 0.3
}
}
},
"groups" : [
{
"layers" : [
{
"glass" : false,
"hidden" : false,
"image-name" : "cards.png",
"name" : "cards",
"position" : {
"scale" : 1,
"translation-in-points" : [
0,
0
]
}
}
],
"shadow" : {
"kind" : "neutral",
"opacity" : 0.5
},
"translucency" : {
"enabled" : true,
"value" : 0.5
}
}
],
"supported-platforms" : {
"circles" : [
"watchOS"
],
"squares" : "shared"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"fill" : {
"automatic-gradient" : "display-p3:0.96387,0.82275,0.87598,1.00000",
"orientation" : {
"start" : {
"x" : 0.5,
"y" : 1
},
"stop" : {
"x" : 0.5,
"y" : 0.3
}
}
},
"groups" : [
{
"layers" : [
{
"glass" : false,
"hidden" : false,
"image-name" : "cards.png",
"name" : "cards",
"position" : {
"scale" : 1,
"translation-in-points" : [
0,
0
]
}
}
],
"shadow" : {
"kind" : "neutral",
"opacity" : 0.5
},
"translucency" : {
"enabled" : true,
"value" : 0.5
}
}
],
"supported-platforms" : {
"circles" : [
"watchOS"
],
"squares" : "shared"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "blue.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "pink.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion ComputerSolitaire/Views/AppIconPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,19 @@ struct AppIcon: Identifiable, Equatable {
previewImageName: "AppIconPreviewQueenOfHearts"
)

static let all: [AppIcon] = [.default, .queenOfHearts]
static let blue = AppIcon(
alternateIconName: "ComputerSolitaireBlueAppIcon",
name: "Blue",
previewImageName: "AppIconPreviewBlue"
)

static let pink = AppIcon(
alternateIconName: "ComputerSolitairePinkAppIcon",
name: "Pink",
previewImageName: "AppIconPreviewPink"
)

static let all: [AppIcon] = [.default, .blue, .pink, .queenOfHearts]

static func current() -> AppIcon {
let activeName = UIApplication.shared.alternateIconName
Expand Down
Binary file modified docs/images/computer-solitaire-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.