Skip to content

Commit

Permalink
Merge pull request #43 from Hi-Windom/dev2301
Browse files Browse the repository at this point in the history
1.0.8
  • Loading branch information
Soltus authored Jan 8, 2023
2 parents ce05c50 + 5fe221d commit 4e32fe3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 63 deletions.
39 changes: 2 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,50 +46,15 @@ Sofill= 是专门为 Sofill- Windows 客户端用户打造的一款主题,非

丽丽精灵是 Sofill= 主题的悬浮球,你可以拖拽它放在任意位置,贴边自动收敛。鼠标右键点击呼出菜单。

## 🎈 鸣谢

Sofill 系列主题的诞生与成长离不开下列开源项目的贡献,以及热心网友的反馈和建议。

### 思源社区

[思源笔记](https://github.com/siyuan-note/siyuan)

参考主题:(排名不分先后)

* [OneNote](https://github.com/UserZYF/OneNote)
* [Dark+](https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus)
* [Zhang-Light](https://github.com/UserZYF/zhang-light)
* [Chrome-A4](https://github.com/UserZYF/Chrome-A4)
* [pink-room](https://github.com/StarDustSheep/pink-room)
* [Savor](https://github.com/royc01/notion-theme)
* [blue-dog](https://github.com/UserZYF/blue-dog)
* [Dark-Blue](https://github.com/Morganwan90/Darkblue-siyuan-theme)

### 资源

字体:(排名不分先后)

* [得意黑 Smiley Sans:一款在人文观感和几何特征中寻找平衡的中文黑体](https://github.com/atelier-anchor/smiley-sans)
* [阿里巴巴普惠体](https://done.alibabadesign.com/puhuiti2.0)

图片:(排名不分先后)

* [icon-icons.com](https://icon-icons.com/zh/)
* [iconfont](https://www.iconfont.cn/)
* [Simple Icons](https://simpleicons.org/)

## 💎 特别鸣谢

* [OriginOS](https://www.vivo.com.cn/originos)
* [搜狗输入法手机版](https://shouji.sogou.com/?r=ime)
## 🎈 [鸣谢](https://github.com/Hi-Windom/Sofill/blob/main/P%26L.md)

# 🌐 开源声明

1. Sofill 系列主题均可免费使用和基于交流学习的无限制修改
2. 基于 Sofill 系列主题二次创作的作品不得在未获得原作者团队授权的情况下擅自在思源集市或者其他渠道公开发行

<p align="center" style="margin: 131px auto;">
<img src="https://img.shields.io/pypi/l/color-theme-analyse.svg?logo=GitHub" alt="License" style="cursor:pointer;height: 31px;margin: 5px auto;"><a href="https://github.com/Hi-Windom/lili/issues?q=is%3Aopen+is%3Aissue">
<img src="https://img.shields.io/github/license/Hi-Windom/lili?logo=GitHub" alt="License" style="cursor:pointer;height: 31px;margin: 5px auto;"><a href="https://github.com/Hi-Windom/lili/issues?q=is%3Aopen+is%3Aissue">
<img alt="GitHub open issues" src="https://img.shields.io/github/issues-raw/Hi-Windom/lili?logo=GitHub" style="cursor:pointer;height: 31px;margin: 5px auto;"/>
</a><a href="https://github.com/Hi-Windom/lili/issues?q=is%3Aissue+is%3Aclosed">
<img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed-raw/Hi-Windom/lili?logo=GitHub" style="cursor:pointer;height: 31px;margin: 5px auto;">
Expand Down
26 changes: 1 addition & 25 deletions theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@ window.sofill.cp = {};
window.sofill.funs = {};
var fs = null;
var path = null;
var clientMode = (() => {
let url = new URL(window.location.href);
switch (true) {
case url.pathname.startsWith("/stage/build/app"):
return "body--app";
case url.pathname.startsWith("/stage/build/desktop"):
return "body--desktop";
case url.pathname.startsWith("/stage/build/mobile"):
return "body--mobile";
default:
return null;
}
})();
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]
Expand All @@ -40,10 +20,6 @@ if (isAppMode) {
console.log("isAppMode");
}

/**
* 获取操作系统 'windows' 或 'darwin' (MacOS) 或 'android'
*/
window.sofill.OS = window.siyuan.config.system.os;

window.sofill.funs.loadStyle = function (href, id = null) {
let style = document.createElement("link");
Expand Down Expand Up @@ -152,7 +128,7 @@ if (SelfProtection && SelfProtection === "true") {
path ? P.push(path.join(bP, "script", "CP.js")) : null;
path ? P.push(path.join(bP, "script", "config.js")) : null;
path ? P.push(path.join(bP, "style", "Init.min.css")) : null;
path ? P.push(path.join(bP, "style", "Block.min.css")) : null;
path ? P.push(path.join(bP, "style", "Block.css")) : null;
path ? P.push(path.join(bP_lili, "script", "kernel.js")) : null;
P.forEach((i) => {
fs
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.7",
"version": "1.0.8",
"modes": [
"light"
]
Expand Down

0 comments on commit 4e32fe3

Please sign in to comment.