From f9137a0c89f6190d27813bb46dbb6d1bb796f080 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sun, 30 Aug 2026 20:14:10 -0700 Subject: [PATCH] fix(mobile): map native menu icon colors explicitly --- apps/mobile/src/components/ControlPill.tsx | 45 +++++++++++++--------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/apps/mobile/src/components/ControlPill.tsx b/apps/mobile/src/components/ControlPill.tsx index 18cba96432054cce0e1cb61d61cb2bacb816851e..b7412bd13a83c85958e98b9e68090cd1c2424134 100644 --- a/apps/mobile/src/components/ControlPill.tsx +++ b/apps/mobile/src/components/ControlPill.tsx @@ -19,24 +19,33 @@ import { AndroidAnchoredMenu } from "./AndroidAnchoredMenu"; import { SymbolView } from "./AppSymbol"; import { AppText as Text } from "./AppText"; -const ThemedMenuView = withUniwind(function NativeMenuView({ - iconColor, - destructiveIconColor, - ...props -}: ComponentProps & { - readonly iconColor?: ColorValue; - readonly destructiveIconColor?: ColorValue; -}) { - const actions = useMemo( - () => - withMenuActionIconColors(props.actions, { - icon: iconColor, - destructiveIcon: destructiveIconColor, - }), - [props.actions, iconColor, destructiveIconColor], - ); - return ; -}); +const ThemedMenuView = withUniwind( + function NativeMenuView({ + iconColor, + destructiveIconColor, + ...props + }: ComponentProps & { + readonly iconColor?: ColorValue; + readonly destructiveIconColor?: ColorValue; + }) { + const actions = useMemo( + () => + withMenuActionIconColors(props.actions, { + icon: iconColor, + destructiveIcon: destructiveIconColor, + }), + [props.actions, iconColor, destructiveIconColor], + ); + return ; + }, + { + iconColor: { fromClassName: "iconColorClassName", styleProperty: "accentColor" }, + destructiveIconColor: { + fromClassName: "destructiveIconColorClassName", + styleProperty: "accentColor", + }, + }, +); export function ControlPill(props: { readonly icon?: ComponentProps["name"]; -- 2.54.0