From bb8a5bc1a5673b506a1750493eabf3eff71f8667 Mon Sep 17 00:00:00 2001 From: Alexandru Placinta Date: Sat, 13 May 2023 23:01:47 +0200 Subject: [PATCH] Attach method to set color to *ModalForm --- modal_form.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modal_form.go b/modal_form.go index 251e38cd..73adc9a0 100644 --- a/modal_form.go +++ b/modal_form.go @@ -63,3 +63,7 @@ func (m *ModalForm) Draw(screen tcell.Screen) { m.frame.SetRect(x, y, width, height) m.frame.Draw(screen) } + +func (m *ModalForm) SetTitleColor(c tcell.Color) { + m.frame.SetTitleColor(c) +}