The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 14:00 UTC
fix(mobile): refine Git action toast glass styling (#8399)
Julius Marminge committed
Aug 27, 2026 at 21:08 UTC
850e4582e4c828b1533a400bf56a532721239198
1 file changed
+14
-6
apps/mobile/src/features/threads/GitActionProgressOverlay.tsx
+14
-6
@@ -8,6 +8,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
8
9
import { AppText as Text } from "../../components/AppText";
10
import { APP_BAR_HEIGHT } from "../../lib/layoutMetrics";
11
+import { themeColorWithAlpha } from "../../lib/mobileTheme";
12
import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
13
import { useThemeColor } from "../../lib/useThemeColor";
14
import type { GitActionProgress } from "../../state/use-vcs-action-state";
@@ -68,10 +69,13 @@ export function GitActionProgressOverlay(props: {
69
function OverlayContent(props: { readonly progress: GitActionProgress }) {
70
const { progress } = props;
71
const iconColor = useThemeColor("--color-icon");
71
- const glassBorder = useThemeColor("--color-header-border");
72
- const glassTint = useThemeColor("--color-glass-tint");
72
+ const glassSurface = useThemeColor("--color-glass-surface");
73
+ const foreground = useThemeColor("--color-foreground");
74
+ const shadowColor = useThemeColor("--color-primary-shadow");
75
const { themeAppearance } = useAppearancePreferences();
76
const isDarkMode = themeAppearance === "dark";
77
+ const glassTint = themeColorWithAlpha(String(glassSurface), isDarkMode ? 0.48 : 0.38);
78
+ const glassBorder = themeColorWithAlpha(String(foreground), isDarkMode ? 0.18 : 0.12);
79
const content = (
80
<>
81
<OverlayIcon phase={progress.phase} iconColor={iconColor} />
@@ -100,12 +104,13 @@ function OverlayContent(props: { readonly progress: GitActionProgress }) {
104
<Animated.View
105
layout={OVERLAY_LAYOUT_TRANSITION}
106
style={{
103
- backgroundColor: glassTint,
104
- borderColor: glassBorder,
107
borderCurve: "continuous",
108
borderRadius: 26,
107
- borderWidth: StyleSheet.hairlineWidth,
108
- overflow: "hidden",
109
+ elevation: 12,
110
+ shadowColor,
111
+ shadowOffset: { width: 0, height: 8 },
112
+ shadowOpacity: isDarkMode ? 0.42 : 0.2,
113
+ shadowRadius: 18,
114
}}
115
>
116
<AnimatedLiquidGlassView
@@ -113,9 +118,12 @@ function OverlayContent(props: { readonly progress: GitActionProgress }) {
118
effect="regular"
119
interactive
120
layout={OVERLAY_LAYOUT_TRANSITION}
121
+ tintColor={glassTint}
122
style={{
123
+ borderColor: glassBorder,
124
borderCurve: "continuous",
125
borderRadius: 26,
126
+ borderWidth: StyleSheet.hairlineWidth,
127
overflow: "hidden",
128
}}
129
>