From a2fd401cfac29e5deab014f7475a449ac4910a95 Mon Sep 17 00:00:00 2001 From: Loric Brevet Date: Thu, 28 Sep 2023 15:05:46 +0200 Subject: Add an InlineInformation face distinct from Information --- src/client.cc | 3 ++- src/face_registry.cc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 }} }, -- cgit v1.2.3