summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorLoric Brevet <loric.brevet@gmail.com>2023-09-28 15:05:46 +0200
committerLoric Brevet <loric.brevet@gmail.com>2023-09-28 15:06:29 +0200
commita2fd401cfac29e5deab014f7475a449ac4910a95 (patch)
treec8a9a27be3867cb28acb72af1317e84b5c2852f2 /src/client.cc
parent23afed056b14f66b345a4b36dd742848bec91ea2 (diff)
Add an InlineInformation face distinct from Information
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc3
1 files changed, 2 insertions, 1 deletions
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();