Skip to content

Commit 399faa1

Browse files
committed
https://github.com/siyuan-note/siyuan/issues/8178
1 parent 364ca4c commit 399faa1

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
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

README_zh_CN.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
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

theme.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
})();

0 commit comments

Comments
 (0)