@@ -26,7 +26,6 @@ export function AccountLabel ({ account, ml, parentName, right }: Props): React.
26
26
const selectedProfile = useSelectedProfile ( ) ;
27
27
const { accountProfiles, defaultProfiles, userDefinedProfiles } = useProfiles ( account ) ;
28
28
29
- const isDarkMode = useMemo ( ( ) => theme . palette . mode === 'dark' , [ theme . palette . mode ] ) ;
30
29
const containerMaxWidth = useMemo ( ( ) => isExtensionMode ? '300px' : '700px' , [ isExtensionMode ] ) ;
31
30
32
31
const getColorOfUserDefinedProfile = useCallback ( ( profile : string ) => {
@@ -40,7 +39,7 @@ export function AccountLabel ({ account, ml, parentName, right }: Props): React.
40
39
return getProfileColor ( index , theme ) ;
41
40
} , [ defaultProfiles , theme , userDefinedProfiles ] ) ;
42
41
43
- const shadow = useCallback ( ( profile : string ) => isDarkMode ? `0px 0px 2px 1px ${ getColorOfUserDefinedProfile ( profile ) } ` : '0px 0px 1px 1px rgba(000, 000, 000, 0.13)' , [ getColorOfUserDefinedProfile , isDarkMode ] ) ;
42
+ const shadow = useCallback ( ( profile : string ) => `0px 0px 2px 1px ${ getColorOfUserDefinedProfile ( profile ) } ` , [ getColorOfUserDefinedProfile ] ) ;
44
43
45
44
const maybeAccountDefaultProfile = useMemo ( ( ) => {
46
45
if ( account ?. isHardware ) {
@@ -125,8 +124,9 @@ export function AccountLabel ({ account, ml, parentName, right }: Props): React.
125
124
< Grid
126
125
key = { index }
127
126
sx = { {
128
- borderRadius : '0 0 5px 5px ' ,
127
+ borderRadius : '0 0 2px 2px ' ,
129
128
boxShadow : shadow ( profile ) ,
129
+ color : 'secondary.contrastText' ,
130
130
fontSize : '11px' ,
131
131
height : '16px' ,
132
132
ml : '5px' ,
0 commit comments