Skip to content

Commit 059d083

Browse files
fix(mobile): use shared glass surface for command popover
- Replace the direct liquid-glass/fallback rendering with `GlassSurface` for consistent popup glass rendering
1 parent 8d24b51 commit 059d083

1 file changed

Lines changed: 6 additions & 25 deletions

File tree

‎apps/mobile/src/features/threads/ComposerCommandPopover.tsx‎

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { isLiquidGlassSupported, LiquidGlassView } from "@callstack/liquid-glass";
21
import type { ComposerTriggerKind } from "@t3tools/shared/composerTrigger";
32
import type { ServerProviderSkill, ServerProviderSlashCommand } from "@t3tools/contracts";
43
import { SymbolView } from "../../components/AppSymbol";
54
import { memo } from "react";
65
import { Pressable, ScrollView, useColorScheme, View, type ViewStyle } from "react-native";
76

87
import { AppText as Text } from "../../components/AppText";
8+
import { GlassSurface } from "../../components/GlassSurface";
99
import { PierreEntryIcon } from "../../components/PierreEntryIcon";
1010
export type ComposerCommandItem =
1111
| {
@@ -56,33 +56,14 @@ function PopoverSurface(props: {
5656
...props.style,
5757
};
5858

59-
if (isLiquidGlassSupported) {
60-
return (
61-
<LiquidGlassView
62-
effect="clear"
63-
interactive={false}
64-
tintColor={props.isDarkMode ? "rgba(30,30,32,0.95)" : "rgba(255,255,255,0.92)"}
65-
colorScheme={props.isDarkMode ? "dark" : "light"}
66-
style={baseStyle}
67-
>
68-
{props.children}
69-
</LiquidGlassView>
70-
);
71-
}
72-
7359
return (
74-
<View
75-
style={[
76-
baseStyle,
77-
{
78-
backgroundColor: props.isDarkMode ? "rgba(44,44,46,0.96)" : "rgba(255,255,255,0.96)",
79-
borderWidth: 1,
80-
borderColor: props.isDarkMode ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.06)",
81-
},
82-
]}
60+
<GlassSurface
61+
glassEffectStyle="clear"
62+
tintColor={props.isDarkMode ? "rgba(30,30,32,0.95)" : "rgba(255,255,255,0.92)"}
63+
style={baseStyle}
8364
>
8465
{props.children}
85-
</View>
66+
</GlassSurface>
8667
);
8768
}
8869

0 commit comments

Comments
 (0)