Skip to content

Commit

Permalink
3.31 update
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderWolf006 committed Mar 31, 2024
1 parent 1388df2 commit 0c63c3c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
- - 2024/3/23: 已修复workingDir未配置导致的开机自动启动报错Bug
- - 2024/3/29: 已支持配置课间分隔线,适配Windows7/8系统
- - 2024/3/30: 已支持最多四周课表轮换,支持配置倒计时上方箭头小三角大小
- - 2024/3/31: 已支持单例模式(软件窗口唯一),替换更容易辨别的倒计时字体
- 喜欢本项目的话, 点击右上角的Star支持一下作者吧😘
draft: false
prerelease: false
Expand Down
15 changes: 7 additions & 8 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
@font-face {
font-family: JetB;
src: url("../font/JETBRAINSMONO-BOLD.TTF");
font-family: Rec;
src: url("../font/Recursive-Bold.ttf");
}

@font-face {
font-family: YouYuan;
src: url("../font/SIMYOU.TTF");
}


@font-face {
font-family: Ali;
src: url("../font/AlimamaDongFangDaKai.TTF");
}

@font-face {
font-family: SourceHanSansCN-Bold;
font-family: Sou;
src: url("../font/SourceHanSansCN-Bold.otf");
}

Expand Down Expand Up @@ -111,7 +110,7 @@
display: inline;
font-size: var(--corner-font-size);
color: rgba(255, 255, 255, 1);
font-family: SourceHanSansCN-Bold;
font-family: Sou;
}

.countdownContainer {
Expand Down Expand Up @@ -141,15 +140,15 @@
.currentClass {
color: rgba(0, 255, 10, 1);
display: inline;
font-family: SourceHanSansCN-Bold;
font-family: Sou;
transition: all 2s;
font-weight: bold;
}

.countdown {
color: rgba(255, 255, 255, 1);
display: inline;
font-family: JetB;
font-family: Rec;
}

.miniCountdown {
Expand All @@ -161,7 +160,7 @@
background-color: rgba(0, 0, 0, var(--global-bg-opacity));
padding: var(--countdown-bg-padding);
font-size: var(--countdown-font-size);
font-family: JetB;
font-family: Rec;
color: #FFF;
display: none;
}
Expand Down
Binary file removed font/JETBRAINSMONO-BOLD.TTF
Binary file not shown.
Binary file added font/Recursive-Bold.ttf
Binary file not shown.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ let form = undefined;
var win = undefined;
let template = []
let basePath = app.isPackaged ? './resources/app/' : './'
if (!app.requestSingleInstanceLock({ key: 'classSchedule' })) {
app.quit();
}
const createWindow = () => {
win = new BrowserWindow({
x: 0,
Expand Down

0 comments on commit 0c63c3c

Please sign in to comment.