Skip to content

Commit 0c63c3c

Browse files
committed
3.31 update
1 parent 1388df2 commit 0c63c3c

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
- - 2024/3/23: 已修复workingDir未配置导致的开机自动启动报错Bug
6767
- - 2024/3/29: 已支持配置课间分隔线,适配Windows7/8系统
6868
- - 2024/3/30: 已支持最多四周课表轮换,支持配置倒计时上方箭头小三角大小
69+
- - 2024/3/31: 已支持单例模式(软件窗口唯一),替换更容易辨别的倒计时字体
6970
- 喜欢本项目的话, 点击右上角的Star支持一下作者吧😘
7071
draft: false
7172
prerelease: false

css/style.css

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
@font-face {
2-
font-family: JetB;
3-
src: url("../font/JETBRAINSMONO-BOLD.TTF");
2+
font-family: Rec;
3+
src: url("../font/Recursive-Bold.ttf");
44
}
55

66
@font-face {
77
font-family: YouYuan;
88
src: url("../font/SIMYOU.TTF");
99
}
1010

11-
1211
@font-face {
1312
font-family: Ali;
1413
src: url("../font/AlimamaDongFangDaKai.TTF");
1514
}
1615

1716
@font-face {
18-
font-family: SourceHanSansCN-Bold;
17+
font-family: Sou;
1918
src: url("../font/SourceHanSansCN-Bold.otf");
2019
}
2120

@@ -111,7 +110,7 @@
111110
display: inline;
112111
font-size: var(--corner-font-size);
113112
color: rgba(255, 255, 255, 1);
114-
font-family: SourceHanSansCN-Bold;
113+
font-family: Sou;
115114
}
116115

117116
.countdownContainer {
@@ -141,15 +140,15 @@
141140
.currentClass {
142141
color: rgba(0, 255, 10, 1);
143142
display: inline;
144-
font-family: SourceHanSansCN-Bold;
143+
font-family: Sou;
145144
transition: all 2s;
146145
font-weight: bold;
147146
}
148147

149148
.countdown {
150149
color: rgba(255, 255, 255, 1);
151150
display: inline;
152-
font-family: JetB;
151+
font-family: Rec;
153152
}
154153

155154
.miniCountdown {
@@ -161,7 +160,7 @@
161160
background-color: rgba(0, 0, 0, var(--global-bg-opacity));
162161
padding: var(--countdown-bg-padding);
163162
font-size: var(--countdown-font-size);
164-
font-family: JetB;
163+
font-family: Rec;
165164
color: #FFF;
166165
display: none;
167166
}

font/JETBRAINSMONO-BOLD.TTF

-271 KB
Binary file not shown.

font/Recursive-Bold.ttf

229 KB
Binary file not shown.

main.js

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ let form = undefined;
1313
var win = undefined;
1414
let template = []
1515
let basePath = app.isPackaged ? './resources/app/' : './'
16+
if (!app.requestSingleInstanceLock({ key: 'classSchedule' })) {
17+
app.quit();
18+
}
1619
const createWindow = () => {
1720
win = new BrowserWindow({
1821
x: 0,

0 commit comments

Comments
 (0)