Skip to content

Commit

Permalink
Merge pull request #36 from Hi-Windom/dev2212
Browse files Browse the repository at this point in the history
no message
  • Loading branch information
Soltus authored Dec 16, 2022
2 parents ccdda77 + 6a72b49 commit d80c308
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Step 2 鼠标悬浮或左键单击右下角控件,在呼出的菜单中点击

基于 Sofill-

Sofill= 是专门为 Sofill- Windows 客户端用户打造的一款主题,非 Windows 客户端用户请直接使用 Sofill-

### 丽丽精灵

丽丽精灵是 Sofill= 主题的悬浮球,你可以拖拽它放在任意位置,贴边自动收敛。鼠标右键点击呼出菜单。
Expand Down
8 changes: 7 additions & 1 deletion theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ var clientMode = (() => {
})();
document.body.classList.add(clientMode);
document.body.classList.add(window.siyuan.config.system.os);
if (navigator.userAgent.toLowerCase().startsWith("siyuan")) {
document.body.classList.add("client--siyuan");
} else {
document.body.classList.add("client--browser");
}

var isAppMode = document
.getElementsByTagName("body")[0]
.classList.contains("android")
? false
: document.getElementsByTagName("body")[0].classList.contains("body--desktop")
: document.getElementsByTagName("body")[0].classList.contains("client--browser")
? false
: window.siyuan.config.system.os == "windows" ||
window.siyuan.config.system.os == "darwin"
Expand Down
2 changes: 1 addition & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Sofill=",
"author": "Soltus",
"url": "https://github.com/Hi-Windom/lili",
"version": "1.0.3",
"version": "1.0.5",
"modes": [
"light"
]
Expand Down

0 comments on commit d80c308

Please sign in to comment.