File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ async function applyMaterialYouTheme(hexColor) {
245245 onSurface : hexFromArgb ( theme . schemes . light . onSurface )
246246 } ;
247247
248- document . documentElement . style . setProperty ( '--time-color' , colors . primary ) ;
248+ document . documentElement . style . setProperty ( '--time-color' , colors . tertiaryContainer ) ;
249249 document . documentElement . style . setProperty ( '--item-bg' , colors . secondaryContainer ) ;
250250 document . documentElement . style . setProperty ( '--tag-bg' , colors . tertiaryContainer ) ;
251251 document . documentElement . style . setProperty ( '--text-color' , colors . onSurface ) ;
@@ -421,8 +421,10 @@ setTimeout(() => {
421421} , 500 ) ;
422422
423423// 移除加载模态框
424- const modal = document . querySelector ( '.loading-modal' ) ;
425- if ( modal ) modal . remove ( ) ;
424+ window . addEventListener ( 'load' , function ( ) {
425+ const modal = document . querySelector ( '.loading-modal' ) ;
426+ if ( modal ) modal . remove ( ) ;
427+ } ) ;
426428
427429// 全屏按钮事件
428430document . getElementById ( 'full-screen-btn' ) . addEventListener ( 'click' , ( ) => {
You can’t perform that action at this time.
0 commit comments