xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
6c6397be9f6fbc0b7a05c56de2c9eccb42ca367a
parent
c5116920b6edfebbc9ec58f3d8605ed0b1c59003
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-09-04 18:42
use material icon for junk

Diffstat

M content/main.html 2 +-
M content/material-icons.svg 1 +
M scripts/get-material-icons.sh 2 +-

3 files changed, 3 insertions, 2 deletions


diff --git a/content/main.html b/content/main.html

@@ -55,7 +55,7 @@
   55    55 
   56    56 				<div class="message__details">
   57    57 					{{#isJunk}}
   58    -1 						<div class="alert alert--warning">{{#icon}}junk{{/icon}} {{#str}}junk{{/str}}</div>
   -1    58 						<div class="alert alert--warning">{{#icon}}x-mode_heat{{/icon}} {{#str}}junk{{/str}}</div>
   59    59 					{{/isJunk}}
   60    60 
   61    61 					<footer class="message__footer">

diff --git a/content/material-icons.svg b/content/material-icons.svg

@@ -11,4 +11,5 @@
   11    11     <path id="list" d="M280-600v-80h560v80H280Zm0 160v-80h560v80H280Zm0 160v-80h560v80H280ZM160-600q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680q17 0 28.5 11.5T200-640q0 17-11.5 28.5T160-600Zm0 160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520q17 0 28.5 11.5T200-480q0 17-11.5 28.5T160-440Zm0 160q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360q17 0 28.5 11.5T200-320q0 17-11.5 28.5T160-280Z"/>
   12    12     <path id="forward" d="m640-280-57-56 184-184-184-184 57-56 240 240-240 240ZM80-200v-160q0-83 58.5-141.5T280-560h247L383-704l57-56 240 240-240 240-57-56 144-144H280q-50 0-85 35t-35 85v160H80Z"/>
   13    13     <path id="create" d="M772-603 602-771l56-56q23-23 56.5-23t56.5 23l56 56q23 23 24 55.5T829-660l-57 57Zm-58 59L290-120H120v-170l424-424 170 170Z"/>
   -1    14     <path id="mode_heat" d="M160-400q0-105 50-187t110-138q60-56 110-85.5l50-29.5v132q0 37 25 58.5t56 21.5q17 0 32.5-7t28.5-23l18-22q72 42 116 116.5T800-400q0 88-43 160.5T644-125q17-24 26.5-52.5T680-238q0-40-15-75.5T622-377L480-516 339-377q-29 29-44 64t-15 75q0 32 9.5 60.5T316-125q-70-42-113-114.5T160-400Zm320-4 85 83q17 17 26 38t9 45q0 49-35 83.5T480-120q-50 0-85-34.5T360-238q0-23 9-44.5t26-38.5l85-83Z"/>
   14    15 </svg>

diff --git a/scripts/get-material-icons.sh b/scripts/get-material-icons.sh

@@ -2,7 +2,7 @@
    2     2 
    3     3 echo '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">'
    4     4 echo '    <!-- Material icons are published under Apache License Version 2.0. https://material.io/icons/ -->'
    5    -1 for icon in attachment code open_in_new star lock reply reply_all menu list forward create; do
   -1     5 for icon in attachment code open_in_new star lock reply reply_all menu list forward create mode_heat; do
    6     6     wget -q "https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/${icon}/fill1/24px.svg" -O - \
    7     7         | grep -o '<path.*/>' \
    8     8         | sed "s/<path/    <path id=\"${icon}\"/"