diff --git a/doc/pages/faces.asciidoc b/doc/pages/faces.asciidoc index 38465c9d..b7c6ad44 100644 --- a/doc/pages/faces.asciidoc +++ b/doc/pages/faces.asciidoc @@ -107,6 +107,9 @@ the user interface: *Information*:: Face for windows and messages displaying other information. +*InlineInformation*:: + Face for windows and messages displaying inline information. + *Error*:: Face for errors reported by Kakoune in the status line. diff --git a/src/client.cc b/src/client.cc index 5d6cee62..ae8f83a8 100644 --- a/src/client.cc +++ b/src/client.cc @@ -278,7 +278,8 @@ void Client::redraw_ifn() if (m_ui_pending & InfoShow and m_info.ui_anchor) m_ui->info_show(m_info.title, m_info.content, *m_info.ui_anchor, - faces["Information"], m_info.style); + faces[(is_inline(m_info.style) || m_info.style == InfoStyle::MenuDoc) + ? "InlineInformation" : "Information"], m_info.style); if (m_ui_pending & InfoHide) m_ui->info_hide(); diff --git a/src/face_registry.cc b/src/face_registry.cc index 31590b72..7364cc2a 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -191,6 +191,7 @@ FaceRegistry::FaceRegistry() { "MenuBackground", {Face{ Color::Blue, Color::White }} }, { "MenuInfo", {Face{ Color::Cyan, Color::Default }} }, { "Information", {Face{ Color::Black, Color::Yellow }} }, + { "InlineInformation", {Face{}, "Information"} }, { "Error", {Face{ Color::Black, Color::Red }} }, { "DiagnosticError", {Face{ Color::Red, Color::Default }} }, { "DiagnosticWarning", {Face{ Color::Yellow, Color::Default }} },