summaryrefslogtreecommitdiff
path: root/core/Messages.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Messages.zig')
-rw-r--r--core/Messages.zig20
1 files changed, 6 insertions, 14 deletions
diff --git a/core/Messages.zig b/core/Messages.zig
index fb2c3cde..1e03f4e0 100644
--- a/core/Messages.zig
+++ b/core/Messages.zig
@@ -425,20 +425,12 @@ pub fn markOf(m: *const Messages, pane: *const Pane) ?Kind {
return best;
}
-/// A kind's ink, for its glyph, its mark and its words at a line.
-pub fn ink(chrome: *const pardes.colors.ChromeTheme, kind: Kind) [3]u8 {
- return switch (kind) {
- .@"error" => chrome.roles.err,
- .warn => chrome.roles.warn,
- .question => chrome.roles.question,
- else => chrome.roles.hint,
- };
-}
-
-/// A message's ink on a ground of the chrome (R9): an error's, a warning's
-/// and a question's their severity's held there (a question info's), an
-/// echo, a notice and progress the ground's dim ink.
-pub fn inkOn(inks: *const pardes.colors.Chrome.Inks, kind: Kind) [3]u8 {
+/// A message's ink on a ground of the chrome (R9), its glyph's, its
+/// mark's and its words': an error's, a warning's and a question's their
+/// severity's held there (a question info's), an echo, a notice and
+/// progress the ground's dim ink. `inks` a ground's (colors.Chrome.Inks)
+/// or a grip fill's (colors.Chrome.Marks).
+pub fn inkOn(inks: anytype, kind: Kind) [3]u8 {
return switch (kind) {
.@"error" => inks.severity[0],
.warn => inks.severity[1],