From d7b0b447b7e254d4af37f09acfa258956d24a7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 5 Sep 2022 22:53:34 +0200 Subject: xC/xP: turn the action asterisk into a rendition --- xP/public/xP.css | 3 +++ xP/public/xP.js | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'xP') diff --git a/xP/public/xP.css b/xP/public/xP.css index 9a98c13..3aaff10 100644 --- a/xP/public/xP.css +++ b/xP/public/xP.css @@ -79,6 +79,9 @@ body { .mark.part { color: red; } +.mark.action { + color: darkred; +} .content { padding: .1rem .3rem; white-space: pre-wrap; diff --git a/xP/public/xP.js b/xP/public/xP.js index 7517ef8..13507d6 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -120,11 +120,12 @@ let Content = { let line = vnode.children[0] let content = [] switch (line.rendition) { - case 'Indent': content.push(m('span.mark', {}, '')); break - case 'Status': content.push(m('span.mark', {}, '–')); break - case 'Error': content.push(m('span.mark.error', {}, '⚠')); break - case 'Join': content.push(m('span.mark.join', {}, '→')); break - case 'Part': content.push(m('span.mark.part', {}, '←')); break + case 'Indent': content.push(m('span.mark', {}, '')); break + case 'Status': content.push(m('span.mark', {}, '–')); break + case 'Error': content.push(m('span.mark.error', {}, '⚠')); break + case 'Join': content.push(m('span.mark.join', {}, '→')); break + case 'Part': content.push(m('span.mark.part', {}, '←')); break + case 'Action': content.push(m('span.mark.action', {}, '✶')); break } let classes = new Set() -- cgit v1.2.3