File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ module.exports = {
45
45
useIsolateContext : true ,
46
46
useCompilerModule : false ,
47
47
userConfirmedUseCompilerModuleSwitch : false ,
48
- compileWorklet : true
48
+ compileWorklet : true ,
49
+ minifyWXSS : false
49
50
}
50
51
}
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ const themeListeners = []
3
3
App ( {
4
4
onLaunch : function ( ) {
5
5
console . log ( 'App Launch' )
6
+ wx . onThemeChange ( ( { theme } ) => {
7
+ this . themeChanged ( theme )
8
+ } )
6
9
} ,
7
10
onShow : function ( ) {
8
11
console . log ( 'App Show' )
29
32
} ,
30
33
globalData : {
31
34
hasLogin : false ,
32
- theme : 'light' ,
35
+ theme : wx . getAppBaseInfo ( ) . theme ,
33
36
GRID_DEMO_URL : '/example/index' ,
34
37
iconTabbar : require ( '/example/images/icon_tabbar.png' ) . default
35
38
}
Original file line number Diff line number Diff line change 55
55
},
56
56
"debug" : true ,
57
57
"style" : " v2" ,
58
+ "darkmode" : true ,
58
59
"lazyCodeLoading" : " requiredComponents" ,
59
60
"renderer" : " skyline" ,
60
61
"rendererOptions" : {
You can’t perform that action at this time.
0 commit comments