diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-16 15:52:27 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-16 17:29:17 +1000 |
commit | d3b6acf0961f7c7de97cd4dcfbcde39846c7ae8b (patch) | |
tree | afb6d9a04c099e980f076da5bb7c22217f5c81e2 /pkg/gui | |
parent | e68093fe9974296fe5afb22ec8e0adb1eb2f4316 (diff) |
restore highlighting of popup messages
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 3 | ||||
-rw-r--r-- | pkg/gui/popup/popup_handler.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index a7050aba0..994433a94 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -6,6 +6,7 @@ import ( "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/gui/context" + "github.com/jesseduffield/lazygit/pkg/gui/style" "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/theme" "github.com/jesseduffield/lazygit/pkg/utils" @@ -204,7 +205,7 @@ func (gui *Gui) createPopupPanel(opts types.CreatePopupPanelOpts) error { textArea.TypeString(opts.Prompt) confirmationView.RenderTextArea() } else { - if err := gui.renderString(confirmationView, opts.Prompt); err != nil { + if err := gui.renderString(confirmationView, style.AttrBold.Sprint(opts.Prompt)); err != nil { return err } } diff --git a/pkg/gui/popup/popup_handler.go b/pkg/gui/popup/popup_handler.go index 8b230be61..3b715870b 100644 --- a/pkg/gui/popup/popup_handler.go +++ b/pkg/gui/popup/popup_handler.go @@ -74,7 +74,8 @@ func (self *RealPopupHandler) ErrorMsg(message string) error { self.index++ self.Unlock() - coloredMessage := style.FgRed.Sprint(strings.TrimSpace(message)) + // Need to set bold here explicitly; otherwise it gets cancelled by the red colouring. + coloredMessage := style.FgRed.SetBold().Sprint(strings.TrimSpace(message)) if err := self.onErrorFn(); err != nil { return err } |