补全字体文件
This commit is contained in:
parent
d577bdfc2d
commit
f9c5737e80
Binary file not shown.
BIN
cmd/win/assets/font/Consolas-with-Yahei Bold Nerd Font.ttf
Normal file
BIN
cmd/win/assets/font/Consolas-with-Yahei Bold Nerd Font.ttf
Normal file
Binary file not shown.
BIN
cmd/win/assets/font/Consolas-with-Yahei Italic Nerd Font.ttf
Normal file
BIN
cmd/win/assets/font/Consolas-with-Yahei Italic Nerd Font.ttf
Normal file
Binary file not shown.
@ -18,7 +18,7 @@ func main() {
|
||||
t.SetFonts("./assets/font/Consolas-with-Yahei Nerd Font.ttf", "")
|
||||
|
||||
a := app.NewWithID("dreamfactory")
|
||||
a.Settings().SetTheme(t)
|
||||
// a.Settings().SetTheme(t)
|
||||
win := a.NewWindow("昊天锤")
|
||||
win.Resize(fyne.NewSize(1366, 768))
|
||||
win.CenterOnScreen()
|
||||
@ -29,13 +29,15 @@ func main() {
|
||||
// loginform
|
||||
func ShowLoginFormDialog(win fyne.Window) {
|
||||
username := widget.NewEntry()
|
||||
username.SetPlaceHolder("input account")
|
||||
// username.Validator = validation.NewRegexp(`^[A-Za-z0-9_-]+$`, "username can only contain letters, numbers, '_', and '-'")
|
||||
// password := widget.NewPasswordEntry()
|
||||
sid := widget.NewEntry()
|
||||
sid.Text = "0"
|
||||
// password.Validator = validation.NewRegexp(`^[A-Za-z0-9_-]+$`, "password can only contain letters, numbers, '_', and '-'")
|
||||
remember := false
|
||||
items := []*widget.FormItem{
|
||||
widget.NewFormItem("Account", username),
|
||||
// widget.NewFormItem("Password", password),
|
||||
widget.NewFormItem("Sid", sid),
|
||||
widget.NewFormItem("Remember me", widget.NewCheck("", func(checked bool) {
|
||||
remember = checked
|
||||
})),
|
||||
|
Loading…
Reference in New Issue
Block a user