Skip to content
Open
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
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,4 @@
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/t3_widget_hatch_tile"
android:tileMode="repeat" />
14 changes: 14 additions & 0 deletions apps/mobile/src/features/usage/providerColors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { UsageProviderKind } from "@t3tools/contracts";

export function providerColors(scheme: "light" | "dark"): Record<UsageProviderKind, string> {
return {
claude: "#d97757",
codex: scheme === "dark" ? "#e6e6e6" : "#3c3c43",
grok: scheme === "dark" ? "#a1a1aa" : "#52525b",
cursor: "#8b8b8b",
opencode: "#5b9bbd",
antigravity: "#8c7bd1",
pi: "#4d9f8a",
muse: "#0866ff",
};
}
13 changes: 2 additions & 11 deletions apps/mobile/src/features/usage/usageProviders.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { UsageProviderKind } from "@t3tools/contracts";
import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
import { providerColors } from "./providerColors";

export const PROVIDER_ORDER: readonly UsageProviderKind[] = [
"codex",
Expand Down Expand Up @@ -29,17 +30,7 @@ export const PROVIDER_LABEL: Record<UsageProviderKind, string> = {
};

export function useProviderColors(): Record<UsageProviderKind, string> {
const { themeAppearance: scheme } = useAppearancePreferences();
return {
claude: "#d97757",
codex: scheme === "dark" ? "#e6e6e6" : "#3c3c43",
grok: scheme === "dark" ? "#a1a1aa" : "#52525b",
cursor: "#8b8b8b",
opencode: "#5b9bbd",
antigravity: "#8c7bd1",
pi: "#4d9f8a",
muse: "#0866ff",
};
return providerColors(useAppearancePreferences().themeAppearance);
}

export function useUsageMixColors() {
Expand Down
Loading
Loading