@@ -3,14 +3,11 @@ import type { ViewStyle, ColorValue } from 'react-native';
3
3
import { View , StyleSheet , Platform } from 'react-native' ;
4
4
5
5
import { Text , ToggleButton } from '@fluentui/react-native' ;
6
- import { createAliasTokens } from '@fluentui-react-native/default-theme' ;
7
6
import type { SvgIconProps } from '@fluentui-react-native/icon' ;
8
7
import { globalTokens } from '@fluentui-react-native/theme-tokens' ;
9
8
import type { Theme } from '@fluentui-react-native/theme-types' ;
10
9
import { useTheme } from '@fluentui-react-native/theme-types' ;
11
10
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet' ;
12
- import { getCurrentAppearance } from '@fluentui-react-native/theming-utils' ;
13
- import { createOfficeAliasTokens } from '@fluentui-react-native/win32-theme' ;
14
11
import type { SvgProps } from 'react-native-svg' ;
15
12
import Svg , { G , Path } from 'react-native-svg' ;
16
13
@@ -93,16 +90,7 @@ const getSwatch = (item) => {
93
90
const AliasColorTokensSwatchList : React . FunctionComponent = ( ) => {
94
91
const theme = useTheme ( ) ;
95
92
96
- const isOfficeTheme =
97
- theme . name === 'White' ||
98
- theme . name === 'Colorful' ||
99
- theme . name === 'DarkGray' ||
100
- theme . name === 'Black' ||
101
- theme . name === 'HighContrast' ;
102
-
103
- const aliasColorTokens = isOfficeTheme
104
- ? createOfficeAliasTokens ( theme . name )
105
- : createAliasTokens ( getCurrentAppearance ( theme . host . appearance , 'light' ) ) ;
93
+ const aliasColorTokens = theme . colors ;
106
94
107
95
const aggregator = React . useCallback (
108
96
( colorName : string ) => {
0 commit comments