@@ -25,6 +25,8 @@ func showFailWindow(msg string) {
2525 layoutRoot .RemovePage ("fail" )
2626 })
2727
28+ fail .SetTitle (S_MODAL_TITLE_ERROR )
29+ fail .Box .SetBackgroundColor (tcell .ColorDarkRed )
2830 fail .SetBackgroundColor (tcell .ColorDarkRed )
2931
3032 layoutRoot .AddPage ("fail" , fail , true , true )
@@ -42,12 +44,14 @@ func showSuccessWindow(msg string, callback func()) {
4244 }
4345 })
4446
47+ succ .SetTitle (S_MODAL_TITLE_SUCCESS )
48+ succ .Box .SetBackgroundColor (tcell .ColorDarkGreen )
4549 succ .SetBackgroundColor (tcell .ColorDarkGreen )
4650 layoutRoot .AddPage ("success" , succ , true , true )
4751}
4852
4953func showInfoWindow (msg string , callback func ()) {
50- succ := tview .NewModal ().
54+ info := tview .NewModal ().
5155 SetText (msg ).
5256 AddButtons ([]string {S_MODAL_BUTTON_OK }).
5357 SetDoneFunc (func (buttonIndex int , buttonLabel string ) {
@@ -58,6 +62,8 @@ func showInfoWindow(msg string, callback func()) {
5862 }
5963 })
6064
61- succ .SetBackgroundColor (tcell .ColorDarkBlue )
62- layoutRoot .AddPage ("info" , succ , true , true )
65+ info .SetTitle (S_MODAL_TITLE_INFO )
66+ info .Box .SetBackgroundColor (tcell .ColorDarkBlue )
67+ info .SetBackgroundColor (tcell .ColorDarkBlue )
68+ layoutRoot .AddPage ("info" , info , true , true )
6369}
0 commit comments