mirror of
https://github.com/rivo/tview.git
synced 2025-04-24 13:48:56 +08:00
parent
6614b16d90
commit
65c5186a20
5
modal.go
5
modal.go
@ -40,6 +40,11 @@ func NewModal() *Modal {
|
||||
SetButtonBackgroundColor(Styles.PrimitiveBackgroundColor).
|
||||
SetButtonTextColor(Styles.PrimaryTextColor)
|
||||
m.form.SetBackgroundColor(Styles.ContrastBackgroundColor).SetBorderPadding(0, 0, 0, 0)
|
||||
m.form.SetCancelFunc(func() {
|
||||
if m.done != nil {
|
||||
m.done(-1, "")
|
||||
}
|
||||
})
|
||||
m.frame = NewFrame(m.form).SetBorders(0, 0, 1, 0, 0, 0)
|
||||
m.frame.SetBorder(true).
|
||||
SetBackgroundColor(Styles.ContrastBackgroundColor).
|
||||
|
Loading…
x
Reference in New Issue
Block a user