import type { FontWeightValue, Theme } from '@fluentui-react-native/framework'; import { fontWeightRegular, size40, sizeNone } from '@fluentui-react-native/design/tokens/global'; import type { TokenSettings } from '@fluentui-react-native/use-styling'; import type { MenuItemTokens } from './MenuItem.types'; export const defaultMenuItemTokens: TokenSettings = (t: Theme): MenuItemTokens => ({ backgroundColor: t.colors.transparentBackground, borderRadius: 5, // hardcoded for now to match NSMenu checkmarkSize: 16, color: t.colors.neutralForeground1, fontFamily: t.typography.families.primary, fontSize: 13, // aligning with NSMenu font size fontWeight: fontWeightRegular as FontWeightValue, gap: size40, iconColor: t.colors.neutralForeground1, iconSize: 16, paddingHorizontal: 5, // hardcoded for now to match NSMenu paddingVertical: 3, // hardcoded for now to match NSMenu submenuIndicatorColor: t.colors.neutralForeground1, submenuIndicatorPadding: sizeNone, submenuIndicatorSize: 16, focused: { backgroundColor: t.colors.menuItemBackgroundHovered, color: t.colors.menuItemTextHovered, iconColor: t.colors.menuItemTextHovered, submenuIndicatorColor: t.colors.menuItemTextHovered, }, pressed: { backgroundColor: t.colors.menuItemBackgroundPressed, color: t.colors.menuItemTextHovered, iconColor: t.colors.menuItemTextHovered, submenuIndicatorColor: t.colors.menuItemTextHovered, }, disabled: { backgroundColor: t.colors.menuBackground, color: t.colors.disabledText, iconColor: t.colors.disabledText, submenuIndicatorColor: t.colors.disabledText, }, });