Skip to content

Commit

Permalink
优化UI
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed Jul 2, 2024
1 parent 926b954 commit 88a7527
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Binary file modified README.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/font.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/src/components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const option: {
speed: [ // 刷新频率
{ label: '每半秒', value: 500 },
{ label: '每秒 (推荐)', value: 1000 },
{ label: '每两秒', value: 2000 },
{ label: '每五秒', value: 5000 },
{ label: '每十秒', value: 10000 },
],
courseType: [ // 课程类别
{ label: '选公共选修课', value: 'public' },
{ label: '按开课计划选课 (测试)', value: 'major' },
{ label: '按开课计划选课', value: 'major' },
],
}

Expand Down
6 changes: 1 addition & 5 deletions frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import {
WindowToggleMaximise,
Quit,
WindowReload,
Hide,
Show,
WindowSetAlwaysOnTop,
} from '../wailsjs/runtime/runtime'
import { Dialog } from '../wailsjs/go/main/App'
Expand Down Expand Up @@ -41,7 +39,7 @@ export function Header({ systemStatus }: HeaderProps ) {
<p
className='header-title'
>
小鸦抢课 v1.5.3 - {systemStatus}
小鸦抢课 v1.5.4 - {systemStatus}
</p>

<button
Expand All @@ -63,9 +61,7 @@ export function Header({ systemStatus }: HeaderProps ) {
Dialog('question', '确定要刷新窗口吗 (o゚v゚)/')
.then(res => {
if (res === 'Yes') {
Hide()
WindowReload()
Show()
}
})
}}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/styles/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* {
/* 微软雅黑, 苹方 */
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

#container {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -27,4 +32,5 @@
body,
html {
background: transparent;
border-radius: 10px;
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
},
Mac: &mac.Options{
WebviewIsTransparent: true,
WindowIsTranslucent: true,
WindowIsTranslucent: false,
},
Debug: options.Debug{
OpenInspectorOnStartup: true,
Expand Down

0 comments on commit 88a7527

Please sign in to comment.