@@ -8,6 +8,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
88
99import { AppText as Text } from "../../components/AppText" ;
1010import { APP_BAR_HEIGHT } from "../../lib/layoutMetrics" ;
11+ import { themeColorWithAlpha } from "../../lib/mobileTheme" ;
1112import { tryOpenExternalUrl } from "../../lib/openExternalUrl" ;
1213import { useThemeColor } from "../../lib/useThemeColor" ;
1314import type { GitActionProgress } from "../../state/use-vcs-action-state" ;
@@ -68,10 +69,13 @@ export function GitActionProgressOverlay(props: {
6869function OverlayContent ( props : { readonly progress : GitActionProgress } ) {
6970 const { progress } = props ;
7071 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" ) ;
7375 const { themeAppearance } = useAppearancePreferences ( ) ;
7476 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 ) ;
7579 const content = (
7680 < >
7781 < OverlayIcon phase = { progress . phase } iconColor = { iconColor } />
@@ -100,22 +104,26 @@ function OverlayContent(props: { readonly progress: GitActionProgress }) {
100104 < Animated . View
101105 layout = { OVERLAY_LAYOUT_TRANSITION }
102106 style = { {
103- backgroundColor : glassTint ,
104- borderColor : glassBorder ,
105107 borderCurve : "continuous" ,
106108 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 ,
109114 } }
110115 >
111116 < AnimatedLiquidGlassView
112117 colorScheme = { isDarkMode ? "dark" : "light" }
113118 effect = "regular"
114119 interactive
115120 layout = { OVERLAY_LAYOUT_TRANSITION }
121+ tintColor = { glassTint }
116122 style = { {
123+ borderColor : glassBorder ,
117124 borderCurve : "continuous" ,
118125 borderRadius : 26 ,
126+ borderWidth : StyleSheet . hairlineWidth ,
119127 overflow : "hidden" ,
120128 } }
121129 >
0 commit comments