@@ -20,6 +20,7 @@ import { Route } from '~/models/router.model';
20
20
import { Logger } from '~/services/logger.service' ;
21
21
import { TraktService } from '~/services/trakt.service' ;
22
22
import { useAuthSettingsStoreRefs } from '~/stores/settings/auth.store' ;
23
+ import { BrandColors } from '~/styles/colors.style' ;
23
24
import { sendMessage } from '~/utils/browser/browser-message.utils' ;
24
25
import { storage } from '~/utils/browser/browser-storage.utils' ;
25
26
import { debounce } from '~/utils/debounce.utils' ;
@@ -233,11 +234,22 @@ export const useExtensionSettingsStore = defineStore(ExtensionSettingsConstants.
233
234
234
235
const changeBrand = async ( value : Brands = brand . value ) => {
235
236
if ( value === Brand . New ) {
236
- if ( chromeRuntimeId ) return sendMessage ( { type : MessageType . IconUpdate , payload : NewExtensionIcon } ) ;
237
+ if ( chromeRuntimeId ) {
238
+ return sendMessage ( {
239
+ type : MessageType . IconUpdate ,
240
+ payload : { icon : { path : NewExtensionIcon } , color : { color : BrandColors . traktDark } } ,
241
+ } ) ;
242
+ }
237
243
newIcons . forEach ( replaceIcon ) ;
238
244
return replaceMeta ( newThemeColor ) ;
239
245
}
240
- if ( chromeRuntimeId ) return sendMessage ( { type : MessageType . IconUpdate , payload : OldExtensionIcon } ) ;
246
+
247
+ if ( chromeRuntimeId ) {
248
+ return sendMessage ( {
249
+ type : MessageType . IconUpdate ,
250
+ payload : { icon : { path : OldExtensionIcon } , color : { color : BrandColors . traktDark } } ,
251
+ } ) ;
252
+ }
241
253
oldIcons . forEach ( replaceIcon ) ;
242
254
return replaceMeta ( oldThemeColor ) ;
243
255
} ;
0 commit comments