Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit 6e9987c

Browse files
Refresh app icons across release variants (pingdotgg#4080)
Co-authored-by: codex <[email protected]>
1 parent 8b54698 commit 6e9987c

62 files changed

Lines changed: 1328 additions & 85 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/mobile/app.config.ts‎

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ExpoConfig } from "expo/config";
22

3+
import { BRAND_ASSET_PATHS } from "../../scripts/lib/brand-assets.ts";
34
import { loadRepoEnv } from "../../scripts/lib/public-config.ts";
45

56
type AppVariant = "development" | "preview" | "production";
@@ -13,6 +14,8 @@ const isIosPersonalTeamBuild = repoEnv.T3CODE_IOS_PERSONAL_TEAM === "1";
1314
const personalTeamBundleIdentifier = repoEnv.T3CODE_IOS_PERSONAL_TEAM_BUNDLE_ID?.trim();
1415
const IOS_BUNDLE_IDENTIFIER_PATTERN = /^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/;
1516

17+
const fromRepoRoot = (relativePath: string) => `../../${relativePath}`;
18+
1619
if (
1720
isIosPersonalTeamBuild &&
1821
(!personalTeamBundleIdentifier ||
@@ -24,20 +27,31 @@ if (
2427
}
2528

2629
const DEVELOPMENT_ASSETS = {
27-
appIcon: "./assets/splash-icon-dev.png",
28-
iosIcon: "./assets/icon-composer-dev.icon",
29-
splashIcon: "./assets/splash-icon-dev.png",
30-
androidAdaptiveForeground: "./assets/android-icon-dev-foreground.png",
30+
appIcon: fromRepoRoot(BRAND_ASSET_PATHS.developmentIosIconPng),
31+
iosIcon: fromRepoRoot(BRAND_ASSET_PATHS.developmentIconComposerProject),
32+
splashIcon: fromRepoRoot(BRAND_ASSET_PATHS.developmentIosIconPng),
33+
androidAdaptiveForeground: fromRepoRoot(BRAND_ASSET_PATHS.developmentUniversalIconPng),
3134
androidAdaptiveBackgroundColor: "#00639B",
3235
androidMonochromeIcon: "./assets/android-icon-mark.png",
3336
androidNotificationIcon: "./assets/android-notification-icon.png",
3437
androidNotificationColor: "#00639B",
3538
} as const;
3639

40+
const PREVIEW_ASSETS = {
41+
appIcon: fromRepoRoot(BRAND_ASSET_PATHS.nightlyIosIconPng),
42+
iosIcon: fromRepoRoot(BRAND_ASSET_PATHS.nightlyIconComposerProject),
43+
splashIcon: fromRepoRoot(BRAND_ASSET_PATHS.nightlyIosIconPng),
44+
androidAdaptiveForeground: fromRepoRoot(BRAND_ASSET_PATHS.nightlyLinuxIconPng),
45+
androidAdaptiveBackgroundColor: "#111533",
46+
androidMonochromeIcon: "./assets/android-icon-mark.png",
47+
androidNotificationIcon: "./assets/android-notification-icon.png",
48+
androidNotificationColor: "#7565C7",
49+
} as const;
50+
3751
const RELEASE_ASSETS = {
38-
appIcon: "./assets/splash-icon-prod.png",
39-
iosIcon: "./assets/icon-composer-prod.icon",
40-
splashIcon: "./assets/splash-icon-prod.png",
52+
appIcon: fromRepoRoot(BRAND_ASSET_PATHS.productionIosIconPng),
53+
iosIcon: fromRepoRoot(BRAND_ASSET_PATHS.productionIconComposerProject),
54+
splashIcon: fromRepoRoot(BRAND_ASSET_PATHS.productionIosIconPng),
4155
androidAdaptiveForeground: "./assets/android-icon-mark.png",
4256
androidAdaptiveBackgroundColor: "#000000",
4357
androidMonochromeIcon: "./assets/android-icon-mark.png",
@@ -60,7 +74,7 @@ const VARIANT_CONFIG = {
6074
iosBundleIdentifier: "com.t3tools.t3code.preview",
6175
androidPackage: "com.t3tools.t3code.preview",
6276
relyingParty: "clerk.t3.codes",
63-
assets: RELEASE_ASSETS,
77+
assets: PREVIEW_ASSETS,
6478
},
6579
production: {
6680
appName: "T3 Code",
-323 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

‎apps/mobile/assets/icon-composer-prod.icon/Assets/T3.svg‎

Lines changed: 0 additions & 3 deletions
This file was deleted.
-2.04 MB
Binary file not shown.
-302 KB
Binary file not shown.

‎apps/mobile/src/components/BrandMark.tsx‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1-
import { Image, View } from "react-native";
1+
import Constants from "expo-constants";
2+
import { Image } from "expo-image";
3+
import { View } from "react-native";
24

35
import { AppText as Text } from "./AppText";
46

5-
const BRAND_MARK_SOURCE = require("../../../../assets/dev/blueprint-ios-1024.png");
7+
const appVariant = Constants.expoConfig?.extra?.appVariant;
8+
const BRAND_MARK_SOURCE =
9+
appVariant === "development"
10+
? require("../../../../assets/dev/blueprint-ios-1024.png")
11+
: appVariant === "preview"
12+
? require("../../../../assets/nightly/nightly-ios-1024.png")
13+
: require("../../../../assets/prod/black-ios-1024.png");
14+
const DEFAULT_STAGE_LABEL =
15+
appVariant === "development" ? "Dev" : appVariant === "preview" ? "Preview" : "Alpha";
616

717
export function BrandMark(props: { readonly compact?: boolean; readonly stageLabel?: string }) {
818
const compact = props.compact ?? false;
919
const iconSize = compact ? 32 : 44;
10-
const stageLabel = props.stageLabel ?? "Alpha";
20+
const stageLabel = props.stageLabel ?? DEFAULT_STAGE_LABEL;
1121

1222
return (
1323
<View className="flex-row items-center gap-3">

‎assets/README.md‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Brand icons
2+
3+
The three Icon Composer projects are the source of truth for full application icons:
4+
5+
- `dev/app-icon.icon`
6+
- `nightly/app-icon.icon`
7+
- `prod/app-icon.icon`
8+
9+
Each project uses `text.svg` for the T3 mark and `background.svg` when the background is a vector layer. Additional layers use semantic names that describe their role and placement.
10+
11+
Run `vp run icons:export` from the repository root to regenerate the tracked iOS, Linux, Windows, and web assets. Run `vp run icons:check` to verify that those generated assets match their sources without changing files.
12+
13+
Exporting requires Icon Composer 2 or newer on macOS. The script selects the newest compatible exporter from Xcode or a standalone Icon Composer installation and pins design generation 26. Set `ICON_COMPOSER_TOOL` to the full path of `Icon Composer.app/Contents/Executables/ictool` to override automatic discovery.
14+
15+
## macOS exports
16+
17+
Icon Composer's command-line exporter does not expose the `macOS pre-Tahoe` preset. A plain command-line `macOS` export is full bleed and is not suitable for the desktop app, so the export script intentionally leaves the tracked macOS PNGs unchanged and prints a reminder after every run.
18+
19+
After changing an Icon Composer project, open it in Icon Composer and export the macOS PNG with exactly these settings:
20+
21+
- Platform: `macOS pre-Tahoe`
22+
- Appearance: `Default`
23+
- Size: `1024pt`
24+
- Scale: `1×`
25+
26+
Save the three exports to:
27+
28+
- `dev/app-icon.icon` -> `dev/blueprint-macos-1024.png`
29+
- `nightly/app-icon.icon` -> `nightly/nightly-macos-1024.png`
30+
- `prod/app-icon.icon` -> `prod/black-macos-1024.png`
31+
32+
The result must be a 1024×1024 PNG with the classic macOS safe area: the opaque icon body is 824×824, inset 100 pixels on every side, with only the native Icon Composer shadow extending into the surrounding transparent canvas.
33+
34+
To have Codex perform the native exports, paste this prompt into a task opened at the repository root:
35+
36+
```text
37+
Use [@Computer](plugin://computer-use@openai-bundled) and the Icon Composer app to export the three macOS app icons in this repository.
38+
39+
For each project below, use Platform: macOS pre-Tahoe, Appearance: Default, Size: 1024pt, and Scale: 1×, then save the PNG to the exact destination:
40+
41+
- assets/dev/app-icon.icon -> assets/dev/blueprint-macos-1024.png
42+
- assets/nightly/app-icon.icon -> assets/nightly/nightly-macos-1024.png
43+
- assets/prod/app-icon.icon -> assets/prod/black-macos-1024.png
44+
45+
Do not resize, composite, or otherwise post-process the exported PNGs.
46+
47+
Verify every result is 1024×1024 and has the classic macOS safe area: an 824×824 opaque body inset 100px on every side, with only Icon Composer's native shadow extending beyond it.
48+
```
49+
50+
Do not edit the generated PNG or ICO files directly.
Lines changed: 37 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)