import type { FontWeightValue, Theme } from '@fluentui-react-native/framework'; import { fontWeightRegular, size20, size40 } from '@fluentui-react-native/design/tokens/global'; import type { TokenSettings } from '@fluentui-react-native/use-styling'; import type { MenuItemCheckboxTokens } from './MenuItemCheckbox.types'; export const defaultMenuItemCheckboxTokens: TokenSettings = (t: Theme): MenuItemCheckboxTokens => ({ backgroundColor: t.colors.transparentBackground, borderRadius: 5, checkmarkPadding: size20, checkmarkSize: 16, checkmarkVisibility: 0, color: t.colors.neutralForeground2, fontFamily: t.typography.families.primary, fontSize: 13, // aligning with NSMenu font size fontWeight: fontWeightRegular as FontWeightValue, gap: size40, iconColor: t.colors.neutralForeground2, iconSize: 16, paddingHorizontal: 5, paddingVertical: 3, focused: { backgroundColor: t.colors.brandBackground, color: t.colors.neutralForegroundOnBrand, iconColor: t.colors.neutralForegroundOnBrand, checked: { checkmarkColor: t.colors.neutralForegroundOnBrand, checkmarkVisibility: 1, }, }, pressed: { backgroundColor: t.colors.brandBackgroundPressed, color: t.colors.neutralForegroundOnBrandPressed, iconColor: t.colors.neutralForegroundOnBrandPressed, checked: { checkmarkColor: t.colors.neutralForegroundOnBrandPressed, checkmarkVisibility: 1, }, }, disabled: { backgroundColor: t.colors.transparentBackground, color: t.colors.brandForeground1Disabled, iconColor: t.colors.brandForeground1Disabled, checked: { checkmarkColor: t.colors.brandForeground1Disabled, checkmarkVisibility: 1, }, }, checked: { checkmarkColor: t.colors.neutralForeground2, checkmarkVisibility: 1, }, });