revert(ios): restore the app icon in Live Activities
The local pixel-art pose set read worse than the existing app mascot. Revert the five-pose assets and keep the improved lock-screen layout on the original HappyCoding icon; image-service generation can be revisited separately. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run> Co-Authored-By: Claude Code <noreply@anthropic.com>
@@ -1,97 +0,0 @@
|
||||
// HappyCoding pet sprite set. Local pxl source; outputs are copied into the
|
||||
// widget asset catalog. Palette follows the app icon: mint cat, purple ink,
|
||||
// gold star crown.
|
||||
pal({
|
||||
k: "#2b2140",
|
||||
m: "#8fe6c8",
|
||||
M: "#d6fff1",
|
||||
d: "#4fae93",
|
||||
p: "#6b4bd6",
|
||||
y: "#ffd15c",
|
||||
w: "#ffffff",
|
||||
e: "#2b2140",
|
||||
r: "#ff8fb1",
|
||||
o: "#ff9f43",
|
||||
b: "#8ecbff",
|
||||
})
|
||||
|
||||
sprite("cat_base", { w: 32, h: 32, outline: "k" },
|
||||
// tail
|
||||
ellipse(27, 24, 3, 6, "m"),
|
||||
// body
|
||||
ellipse(16, 24, 8, 7, "m"),
|
||||
ellipse(16, 25, 5, 5, "M"),
|
||||
// head
|
||||
ellipse(16, 13, 10, 9, "m"),
|
||||
// ears
|
||||
poly([6, 9, 8, 1, 13, 7], "m"),
|
||||
poly([26, 9, 24, 1, 19, 7], "m"),
|
||||
poly([8, 8, 9, 4, 11, 7], "r"),
|
||||
poly([24, 8, 23, 4, 21, 7], "r"),
|
||||
// face
|
||||
rect(11, 12, 2, 3, "e"),
|
||||
rect(19, 12, 2, 3, "e"),
|
||||
px(11, 12, "w"),
|
||||
px(19, 12, "w"),
|
||||
px(16, 16, "r"),
|
||||
px(15, 17, "r"),
|
||||
px(17, 17, "r"),
|
||||
// paws
|
||||
ellipse(10, 29, 3, 2, "M"),
|
||||
ellipse(22, 29, 3, 2, "M"),
|
||||
// crown star
|
||||
poly([16, 1, 17, 3, 19, 3, 18, 5, 18, 7, 16, 6, 14, 7, 14, 5, 13, 3, 15, 3], "y")
|
||||
)
|
||||
|
||||
sprite("cat_happy", { base: "cat_base", w: 32, h: 32 },
|
||||
// connected waving arm
|
||||
poly([23, 21, 25, 17, 28, 17, 28, 20, 25, 22], "m"),
|
||||
ellipse(27, 17, 2, 2, "M"),
|
||||
// blush
|
||||
px(10, 17, "r"),
|
||||
px(22, 17, "r")
|
||||
)
|
||||
|
||||
sprite("cat_working", { base: "cat_base", w: 32, h: 32 },
|
||||
// little laptop
|
||||
rect(9, 27, 14, 3, "d"),
|
||||
rect(10, 24, 12, 3, "b"),
|
||||
rect(11, 25, 10, 1, "M"),
|
||||
// focused brows
|
||||
hline(11, 11, 2, "e"),
|
||||
hline(19, 11, 2, "e")
|
||||
)
|
||||
|
||||
sprite("cat_attention", { base: "cat_base", w: 32, h: 32 },
|
||||
// alert badge above the right ear
|
||||
circ(28, 5, 3, "o"),
|
||||
rect(27, 3, 2, 2, "w"),
|
||||
px(27, 6, "w"),
|
||||
// raised brows
|
||||
hline(10, 11, 3, "e"),
|
||||
hline(19, 11, 3, "e")
|
||||
)
|
||||
|
||||
sprite("cat_completed", { base: "cat_base", w: 32, h: 32 },
|
||||
// raised arms and confetti
|
||||
poly([9, 22, 5, 18, 8, 16, 11, 21], "m"),
|
||||
ellipse(5, 18, 2, 2, "M"),
|
||||
poly([23, 22, 27, 18, 24, 16, 21, 21], "m"),
|
||||
ellipse(27, 18, 2, 2, "M"),
|
||||
px(3, 8, "y"), px(7, 5, "r"), px(25, 6, "b"), px(29, 11, "y"),
|
||||
px(4, 27, "p"), px(28, 28, "o")
|
||||
)
|
||||
|
||||
sprite("cat_sleeping", { base: "cat_base", w: 32, h: 32 },
|
||||
// clear the open eyes, then draw closed lids
|
||||
rect(10, 11, 4, 4, "m"),
|
||||
rect(18, 11, 4, 4, "m"),
|
||||
hline(11, 13, 2, "e"),
|
||||
hline(19, 13, 2, "e"),
|
||||
px(16, 16, "r"),
|
||||
// z marks
|
||||
line(24, 8, 27, 8, "b"), line(27, 8, 24, 11, "b"), line(24, 11, 27, 11, "b"),
|
||||
line(28, 3, 30, 3, "b"), line(30, 3, 28, 5, "b"), line(28, 5, 30, 5, "b")
|
||||
)
|
||||
|
||||
sheet("cats", ["cat_happy", "cat_working", "cat_attention", "cat_completed", "cat_sleeping"], { cols: 5, pad: 2 })
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetattention.png",
|
||||
"scale": "1x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetattention@2x.png",
|
||||
"scale": "2x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetattention@3x.png",
|
||||
"scale": "3x"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 642 B |
|
Before Width: | Height: | Size: 905 B |
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetcompleted.png",
|
||||
"scale": "1x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetcompleted@2x.png",
|
||||
"scale": "2x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetcompleted@3x.png",
|
||||
"scale": "3x"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 683 B |
|
Before Width: | Height: | Size: 948 B |
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetidle.png",
|
||||
"scale": "1x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetidle@2x.png",
|
||||
"scale": "2x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetidle@3x.png",
|
||||
"scale": "3x"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 642 B |
|
Before Width: | Height: | Size: 914 B |
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetonline.png",
|
||||
"scale": "1x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetonline@2x.png",
|
||||
"scale": "2x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetonline@3x.png",
|
||||
"scale": "3x"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 595 B |
|
Before Width: | Height: | Size: 842 B |
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"images": [
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetworking.png",
|
||||
"scale": "1x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetworking@2x.png",
|
||||
"scale": "2x"
|
||||
},
|
||||
{
|
||||
"idiom": "universal",
|
||||
"filename": "happycodingpetworking@3x.png",
|
||||
"scale": "3x"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 638 B |
|
Before Width: | Height: | Size: 917 B |
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -27,7 +27,6 @@ struct SessionLiveActivityWidget: Widget {
|
||||
} dynamicIsland: { context in
|
||||
let state = Self.decrypt(context.state, sessionId: context.attributes.sessionId)
|
||||
let color = state?.status.tint ?? .gray
|
||||
let petName = Self.petName(for: state?.status)
|
||||
let detailText = Self.detailText(
|
||||
for: context.attributes.sessionId,
|
||||
status: state?.status
|
||||
@@ -35,10 +34,11 @@ struct SessionLiveActivityWidget: Widget {
|
||||
return DynamicIsland {
|
||||
DynamicIslandExpandedRegion(.leading) {
|
||||
HStack(alignment: .center, spacing: 7) {
|
||||
Image(petName)
|
||||
Image("HappyCodingIcon")
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 22, height: 22)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 5, style: .continuous))
|
||||
VStack(alignment: .leading, spacing: 1) {
|
||||
Text(verbatim: state?.title ?? "HappyCoding")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
@@ -85,10 +85,11 @@ struct SessionLiveActivityWidget: Widget {
|
||||
}
|
||||
} compactLeading: {
|
||||
ZStack(alignment: .bottomTrailing) {
|
||||
Image(petName)
|
||||
Image("HappyCodingIcon")
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 18, height: 18)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 4, style: .continuous))
|
||||
Circle()
|
||||
.fill(color)
|
||||
.frame(width: 6, height: 6)
|
||||
@@ -110,25 +111,15 @@ struct SessionLiveActivityWidget: Widget {
|
||||
.font(.caption2)
|
||||
}
|
||||
} minimal: {
|
||||
Image(petName)
|
||||
Image("HappyCodingIcon")
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 16, height: 16)
|
||||
.clipShape(Circle())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static func petName(for status: LiveActivityContentState.Status?) -> String {
|
||||
switch status {
|
||||
case .working: return "HappyCodingPetWorking"
|
||||
case .needsApproval, .needsInput, .needsAttention, .error:
|
||||
return "HappyCodingPetAttention"
|
||||
case .done: return "HappyCodingPetCompleted"
|
||||
case .idle: return "HappyCodingPetIdle"
|
||||
case .none: return "HappyCodingPetOnline"
|
||||
}
|
||||
}
|
||||
|
||||
private static func detailText(
|
||||
for sessionId: String,
|
||||
status: LiveActivityContentState.Status?
|
||||
@@ -175,10 +166,6 @@ private struct SessionActivityLockScreen: View {
|
||||
return trimmed.isEmpty ? nil : trimmed
|
||||
}
|
||||
|
||||
private var petName: String {
|
||||
SessionLiveActivityWidget.petName(for: state?.status)
|
||||
}
|
||||
|
||||
private var dateLabel: String? {
|
||||
guard let state else { return nil }
|
||||
return Date(timeIntervalSince1970: Double(state.updatedAt) / 1000)
|
||||
@@ -189,10 +176,11 @@ private struct SessionActivityLockScreen: View {
|
||||
Group {
|
||||
if let state {
|
||||
HStack(alignment: .center, spacing: 12) {
|
||||
Image(petName)
|
||||
Image("HappyCodingIcon")
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 58, height: 58)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 13, style: .continuous))
|
||||
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Text(state.title)
|
||||
@@ -237,10 +225,11 @@ private struct SessionActivityLockScreen: View {
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
} else {
|
||||
HStack(spacing: 8) {
|
||||
Image("HappyCodingPetOnline")
|
||||
Image("HappyCodingIcon")
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 28, height: 28)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 6, style: .continuous))
|
||||
VStack(alignment: .leading, spacing: 1) {
|
||||
Text(verbatim: "HappyCoding")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
|
||||