更新代码
This commit is contained in:
1 parent
eda7e8bc96
commit
6ff632e0b0
19 files changed
+2033
-197
No files matched your search
@@ -25,6 +25,9 @@ type floatCard struct {
|
||||
|
||||
func newFloatCard(a fyne.App) *floatCard {
|
||||
c := &floatCard{win: a.NewWindow(cardTitle)}
|
||||
// 点关闭只是隐藏浮窗:Fyne 的窗口一旦 Close 就被销毁,之后再也 Show
|
||||
// 不出来,工具栏的按钮会永久失效。
|
||||
c.win.SetCloseIntercept(func() { c.hide() })
|
||||
rt := widget.NewRichText()
|
||||
rt.Wrapping = fyne.TextWrapWord
|
||||
c.body = rt
|
||||
|
||||
Reference in new issue
Block a user