File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,13 @@ export function EmailWebview() {
135
135
webviewRef . current ?. injectJavaScript ( W3mFrameConstants . FRAME_MESSAGES_HANDLER ) ;
136
136
}
137
137
const themeMode = Appearance . getColorScheme ( ) ?? undefined ;
138
- provider ?. syncTheme ( { themeMode } ) ;
138
+ provider ?. syncTheme ( {
139
+ themeMode,
140
+ w3mThemeVariables : {
141
+ '--w3m-accent' : Theme [ 'accent-100' ] ,
142
+ '--w3m-background' : Theme [ 'bg-100' ]
143
+ }
144
+ } ) ;
139
145
provider ?. syncDappData ?.( { projectId, sdkVersion } ) ;
140
146
provider ?. onWebviewLoaded ( ) ;
141
147
}
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ export const AppUpdateEmailPrimaryOtpRequest = z.object({ otp: z.string() });
38
38
export const AppUpdateEmailSecondaryOtpRequest = z . object ( { otp : z . string ( ) } ) ;
39
39
export const AppSyncThemeRequest = z . object ( {
40
40
themeMode : z . optional ( z . enum ( [ 'light' , 'dark' ] ) ) ,
41
- themeVariables : z . optional ( z . record ( z . string ( ) , z . string ( ) . or ( z . number ( ) ) ) )
41
+ themeVariables : z . optional ( z . record ( z . string ( ) , z . string ( ) . or ( z . number ( ) ) ) ) ,
42
+ w3mThemeVariables : z . optional ( z . record ( z . string ( ) , z . string ( ) . or ( z . number ( ) ) ) )
42
43
} ) ;
43
44
export const AppSyncDappDataRequest = z . object ( {
44
45
metadata : z
You can’t perform that action at this time.
0 commit comments