File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616* preview.png (1024* 768)
1717* README* .md
1818* theme.css
19-
20- Note: The theme.js is deprecated, it will be removed in the future,
21- see [ this issue] ( https://github.com/siyuan-note/siyuan/issues/8178 ) for more details.
19+ * theme.js
2220
2321## theme.json
2422
Original file line number Diff line number Diff line change 1414* preview.png (1024* 768)
1515* README* .md
1616* theme.css
17-
18- 注意:不要使用 theme.js
19- 机制,未来会移除对它的支持,详情请参考 [ 这个 issue] ( https://github.com/siyuan-note/siyuan/issues/8178 ) 。
17+ * theme.js
2018
2119## theme.json
2220
Original file line number Diff line number Diff line change 1+ window . destroyTheme = ( ) => {
2+ const statusElement = document . getElementById ( "status" ) ;
3+ if ( statusElement ) {
4+ statusElement . style . backgroundColor = ""
5+ }
6+ }
7+
8+ ( function ( ) {
9+ const statusElement = document . getElementById ( "status" ) ;
10+ if ( statusElement ) {
11+ statusElement . style . backgroundColor = "coral"
12+ }
13+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments