更新配置
This commit is contained in:
parent
1ebdeafda0
commit
3ab87cbc56
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>上传</title>
|
<title>下载更新包</title>
|
||||||
<!-- import Vue.js -->
|
<!-- import Vue.js -->
|
||||||
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.6/vue.min.js"></script>
|
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.6/vue.min.js"></script>
|
||||||
<!-- import stylesheet -->
|
<!-- import stylesheet -->
|
||||||
|
8
cmd/v2/FyneApp.toml
Normal file
8
cmd/v2/FyneApp.toml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Website = "http://legu.cc"
|
||||||
|
|
||||||
|
[Details]
|
||||||
|
Icon = "Icon.png"
|
||||||
|
Name = "RobotGUI"
|
||||||
|
ID = "cc.legu.app"
|
||||||
|
Version = "1.0.5"
|
||||||
|
Build = 5
|
24
cmd/v2/ui/tip.go
Normal file
24
cmd/v2/ui/tip.go
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
package ui
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"fyne.io/fyne/v2"
|
||||||
|
"fyne.io/fyne/v2/driver/desktop"
|
||||||
|
"fyne.io/fyne/v2/widget"
|
||||||
|
)
|
||||||
|
|
||||||
|
// 显示Tip
|
||||||
|
func showTip(content string) {
|
||||||
|
drv := fyne.CurrentApp().Driver()
|
||||||
|
if drv, ok := drv.(desktop.Driver); ok {
|
||||||
|
w := drv.CreateSplashWindow()
|
||||||
|
w.SetContent(widget.NewLabelWithStyle(content, fyne.TextAlignCenter, fyne.TextStyle{}))
|
||||||
|
w.Show()
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
time.Sleep(time.Second * 2)
|
||||||
|
w.Close()
|
||||||
|
}()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user