@@ -122,7 +122,9 @@ const ProfileItem: React.FC<Props> = (props) => {
122
122
< Card fullWidth isPressable onPress = { onClick } className = { isCurrent ? 'bg-primary' : '' } >
123
123
< CardBody className = "pb-1" >
124
124
< div className = "flex justify-between h-[32px]" >
125
- < h3 className = "select-none text-ellipsis whitespace-nowrap overflow-hidden text-md font-bold leading-[32px]" >
125
+ < h3
126
+ className = { `select-none text-ellipsis whitespace-nowrap overflow-hidden text-md font-bold leading-[32px] ${ isCurrent ? 'text-white' : 'text-foreground' } ` }
127
+ >
126
128
{ info ?. name }
127
129
</ h3 >
128
130
< div className = "flex" >
@@ -141,13 +143,16 @@ const ProfileItem: React.FC<Props> = (props) => {
141
143
>
142
144
< IoMdRefresh
143
145
color = "default"
144
- className = { `text-[24px] ${ updating ? 'animate-spin' : '' } ` }
146
+ className = { `${ isCurrent ? 'text-white' : 'text-foreground' } text-[24px] ${ updating ? 'animate-spin' : '' } ` }
145
147
/>
146
148
</ Button >
147
149
< Dropdown >
148
150
< DropdownTrigger >
149
151
< Button isIconOnly size = "sm" variant = "light" color = "default" >
150
- < IoMdMore color = "default" className = "text-[24px]" />
152
+ < IoMdMore
153
+ color = "default"
154
+ className = { `text-[24px] ${ isCurrent ? 'text-white' : 'text-foreground' } ` }
155
+ />
151
156
</ Button >
152
157
</ DropdownTrigger >
153
158
< DropdownMenu onAction = { onMenuAction } >
@@ -165,7 +170,9 @@ const ProfileItem: React.FC<Props> = (props) => {
165
170
</ Dropdown >
166
171
</ div >
167
172
</ div >
168
- < div className = "mt-2 flex justify-between" >
173
+ < div
174
+ className = { `mt-2 flex justify-between ${ isCurrent ? 'text-white' : 'text-foreground' } ` }
175
+ >
169
176
< small > { extra ? `${ calcTraffic ( usage ) } /${ calcTraffic ( total ) } ` : undefined } </ small >
170
177
< small > { dayjs ( info . updated ) . fromNow ( ) } </ small >
171
178
</ div >
@@ -174,7 +181,10 @@ const ProfileItem: React.FC<Props> = (props) => {
174
181
{ extra && (
175
182
< Progress
176
183
className = "w-full"
177
- classNames = { { indicator : 'bg-foreground' , label : 'select-none' } }
184
+ classNames = { {
185
+ indicator : isCurrent ? 'bg-white' : 'bg-foreground' ,
186
+ label : 'select-none'
187
+ } }
178
188
value = { calcPercent ( extra ?. upload , extra ?. download , extra ?. total ) }
179
189
/>
180
190
) }
0 commit comments