Update Picocrypt.go

This commit is contained in:
Evan Su 2021-05-23 17:42:28 -04:00 committed by GitHub
parent 10c5d82169
commit 721c308c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -240,7 +240,7 @@ func startUI(){
}), }),
g.Dummy(10,0), g.Dummy(10,0),
g.Style().SetColor(ig.StyleColor,_status_color).To( g.Style().SetColor(ig.StyleColorText,_status_color).To(
g.Label(_status), g.Label(_status),
), ),
), ),
@ -784,6 +784,7 @@ func work(){
if !keyCorrect{ if !keyCorrect{
working = false working = false
_status = "Incorrect password." _status = "Incorrect password."
_status_color = color.RGBA{0xff,0x00,0x00,255}
return return
} }
fout,_ = os.OpenFile( fout,_ = os.OpenFile(
@ -945,7 +946,8 @@ func work(){
} }
fmt.Println("==============================") fmt.Println("==============================")
resetUI() resetUI()
status = "Completed." _status = "Completed."
_status_color = color.RGBA{0x00,0xff,0x00,255}
working = false working = false
} }