text-x-kotlin: fix low contrast issue

The darkish but hi-chroma purple was not working well against our dark
grey base: APCA shows a contrast of Lc ~-15, which is almost invisible
for many users.

Keep the hi-chroma purple colour, but as backdrop with their secondary
branding design on top of it. Fine for a mimetype. Contrast now Lc -78,
which should feel a lot nicer.
This commit is contained in:
Andrew Chadwick 2026-02-26 01:43:39 +00:00
parent 001552c61c
commit 1bfa65d09c
6 changed files with 46 additions and 44 deletions

View file

@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" version="1.1">
<path style="fill:#4f4f4f" d="M 2.8125,0 C 2.362375,0 2,0.3568 2,0.8 V 15.2 C 2,15.6432 2.362375,16 2.8125,16 h 11.375 C 14.637625,16 15,15.6432 15,15.2 V 5 L 10.9375,4 10,0 Z"/>
<path style="fill:#696969" d="M 15,5 10,0 V 4.1666667 C 10,4.6283333 10.371667,5 10.833333,5 Z"/>
<path style="fill:#bb1be5" d="M 5 7 L 5 10.699219 L 5 10.791016 L 5 14 L 12 14 L 8.5117188 10.488281 L 12 7 L 8.5117188 7 L 5 7 z"/>
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M 2.8125,0 C 2.362375,0 2,0.3568 2,0.8 V 15.2 C 2,15.6432 2.362375,16 2.8125,16 h 11.375 C 14.637625,16 15,15.6432 15,15.2 V 5 L 10.9375,4 10,0 Z" style="fill:#a13fe4"/>
<path d="M 15,5 10,0 V 4.1666667 C 10,4.6283333 10.371667,5 10.833333,5 Z" style="fill:#c18dee"/>
<path d="m5 7v7h7l-3.5-3.5 3.5-3.5h-7z" style="fill:#ffffff"/>
</svg>

Before

Width:  |  Height:  |  Size: 498 B

After

Width:  |  Height:  |  Size: 428 B

View file

@ -1,9 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" version="1.1">
<path style="opacity:0.2" d="m 4,1.5 c -0.554,0 -1,0.446 -1,1 v 18 c 0,0.554 0.446,1 1,1 h 14 c 0.554,0 1,-0.446 1,-1 v -13 l -6,-6 z"/>
<path style="fill:#4f4f4f" d="M 4,1 C 3.446,1 3,1.446 3,2 v 18 c 0,0.554 0.446,1 1,1 h 14 c 0.554,0 1,-0.446 1,-1 V 7 L 14,6 13,1 Z"/>
<path style="opacity:0.2" d="m 19,7.5 -6,-6 v 5 c 0,0.554 0.446,1 1,1 z"/>
<path style="fill:#696969" d="M 19,7 13,1 v 5 c 0,0.554 0.446,1 1,1 z"/>
<path style="opacity:0.1;fill:#ffffff" d="M 4,1 C 3.446,1 3,1.446 3,2 v 0.5 c 0,-0.554 0.446,-1 1,-1 h 9 V 1 Z"/>
<path style="opacity:0.2" d="M 6,9.5 V 14.783203 14.916016 19.5 H 16 L 11.017578,14.482422 16,9.5 h -4.982422 z"/>
<path style="fill:#bb1be5" d="M 6,9 V 14.283203 14.416016 19 H 16 L 11.017578,13.982422 16,9 h -4.982422 z"/>
<svg width="22" height="22" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="m4 1.5c-0.554 0-1 0.446-1 1v18c0 0.554 0.446 1 1 1h14c0.554 0 1-0.446 1-1v-13l-6-6z" style="opacity:.2"/>
<path d="m4 1c-0.554 0-1 0.446-1 1v18c0 0.554 0.446 1 1 1h14c0.554 0 1-0.446 1-1v-13l-5-1-1-5z" style="fill:#a13fe4"/>
<path d="m19 7.5-6-6v5c0 0.554 0.446 1 1 1z" style="opacity:.2"/>
<path d="m19 7-6-6v5c0 0.554 0.446 1 1 1z" style="fill:#c18dee"/>
<path d="m4 1c-0.554 0-1 0.446-1 1v0.5c0-0.554 0.446-1 1-1h9v-0.5z" style="fill:#ffffff;opacity:.1"/>
<path d="m6 10.5v9h9l-4.5-4.5 4.5-4.5z" style="opacity:.2"/>
<path d="m6 10v9h9l-4.5-4.5 4.5-4.5z" style="fill:#ffffff"/>
<path d="m10.5 14.5" style="fill:#ffffff"/>
</svg>

Before

Width:  |  Height:  |  Size: 851 B

After

Width:  |  Height:  |  Size: 727 B

View file

@ -1,9 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1">
<path style="opacity:0.2" d="m 5,2.5 c -0.554,0 -1,0.446 -1,1 v 18 c 0,0.554 0.446,1 1,1 h 14 c 0.554,0 1,-0.446 1,-1 v -13 l -6,-6 z"/>
<path style="fill:#4f4f4f" d="M 5,2 C 4.446,2 4,2.446 4,3 v 18 c 0,0.554 0.446,1 1,1 h 14 c 0.554,0 1,-0.446 1,-1 V 8 L 15,7 14,2 Z"/>
<path style="opacity:0.2" d="m 20,8.5 -6,-6 v 5 c 0,0.554 0.446,1 1,1 z"/>
<path style="fill:#696969" d="M 20,8 14,2 v 5 c 0,0.554 0.446,1 1,1 z"/>
<path style="opacity:0.1;fill:#ffffff" d="M 5,2 C 4.446,2 4,2.446 4,3 v 0.5 c 0,-0.554 0.446,-1 1,-1 h 9 V 2 Z"/>
<path style="opacity:0.2" d="M 7,10.5 V 15.783203 15.916016 20.5 H 17 L 12.017578,15.482422 17,10.5 h -4.982422 z"/>
<path style="fill:#bb1be5" d="M 7 10 L 7 15.283203 L 7 15.416016 L 7 20 L 17 20 L 12.017578 14.982422 L 17 10 L 12.017578 10 L 7 10 z"/>
<svg width="24" height="24" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="m5 2.5c-0.554 0-1 0.446-1 1v18c0 0.554 0.446 1 1 1h14c0.554 0 1-0.446 1-1v-13l-6-6z" style="opacity:.2"/>
<path d="m5 2c-0.554 0-1 0.446-1 1v18c0 0.554 0.446 1 1 1h14c0.554 0 1-0.446 1-1v-13l-5-1-1-5z" style="fill:#a13fe4"/>
<path d="m20 8.5-6-6v5c0 0.554 0.446 1 1 1z" style="opacity:.2"/>
<path d="m20 8-6-6v5c0 0.554 0.446 1 1 1z" style="fill:#c18dee"/>
<path d="m5 2c-0.554 0-1 0.446-1 1v0.5c0-0.554 0.446-1 1-1h9v-0.5z" style="fill:#ffffff;opacity:.1"/>
<path d="m7 11.5v9h9l-4.5-4.5 4.5-4.5z" style="opacity:.2"/>
<path d="m7 11v9h9l-4.5-4.5 4.5-4.5z" style="fill:#ffffff"/>
<path d="m11.5 15.5" style="fill:#ffffff"/>
</svg>

Before

Width:  |  Height:  |  Size: 880 B

After

Width:  |  Height:  |  Size: 727 B

View file

@ -1,9 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" version="1.1">
<path style="opacity:0.2" d="M 6.375,3 C 5.61325,3 5,3.6244 5,4.4 V 29.6 C 5,30.3756 5.61325,31 6.375,31 h 19.25 C 26.38675,31 27,30.3756 27,29.6 V 11 L 20.125,10 19,3 Z"/>
<path style="fill:#4f4f4f" d="M 6.375,2 C 5.61325,2 5,2.6244 5,3.4 V 28.6 C 5,29.3756 5.61325,30 6.375,30 h 19.25 C 26.38675,30 27,29.3756 27,28.6 V 10 L 20.125,9 19,2 Z"/>
<path style="opacity:0.2" d="M 27,11 19,3 V 9.6666667 C 19,10.405333 19.594667,11 20.333333,11 Z"/>
<path style="fill:#696969" d="M 27,10 19,2 V 8.6666667 C 19,9.4053333 19.594667,10 20.333333,10 Z"/>
<path style="opacity:0.2" d="M 10,15 V 21.339844 21.5 27 H 22 L 16.019531,20.980469 22,15 h -5.980469 z"/>
<path style="fill:#bb1be5" d="M 10 14 L 10 20.339844 L 10 20.5 L 10 26 L 22 26 L 16.019531 19.980469 L 22 14 L 16.019531 14 L 10 14 z"/>
<path style="opacity:0.1;fill:#ffffff" d="M 6.375,2 C 5.61325,2 5,2.6247906 5,3.4003906 v 1 C 5,3.6247906 5.61325,3 6.375,3 H 19 V 2 Z"/>
<svg width="32" height="32" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M 6.375,3 C 5.61325,3 5,3.6244 5,4.4 V 29.6 C 5,30.3756 5.61325,31 6.375,31 h 19.25 C 26.38675,31 27,30.3756 27,29.6 V 11 L 20.125,10 19,3 Z" style="opacity:.2"/>
<path d="M 6.375,2 C 5.61325,2 5,2.6244 5,3.4 V 28.6 C 5,29.3756 5.61325,30 6.375,30 h 19.25 C 26.38675,30 27,29.3756 27,28.6 V 10 L 20.125,9 19,2 Z" style="fill:#a13fe4"/>
<path d="M 27,11 19,3 V 9.6666667 C 19,10.405333 19.594667,11 20.333333,11 Z" style="opacity:.2"/>
<path d="M 27,10 19,2 V 8.6666667 C 19,9.4053333 19.594667,10 20.333333,10 Z" style="fill:#c18dee"/>
<path d="m9 15v12.999999h12.999999l-6.5-6.5 6.5-6.499999z" style="opacity:.2"/>
<path d="m9 14v12.999999h12.999999l-6.5-6.5 6.5-6.499999z" style="fill:#ffffff"/>
<path d="M 6.375,2 C 5.61325,2 5,2.6247906 5,3.4003906 v 1 C 5,3.6247906 5.61325,3 6.375,3 H 19 V 2 Z" style="fill:#ffffff;opacity:.1"/>
</svg>

Before

Width:  |  Height:  |  Size: 1,021 B

After

Width:  |  Height:  |  Size: 936 B

View file

@ -1,9 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" version="1.1">
<path style="opacity:0.2" d="M 10,5 C 8.892,5 8,5.892 8,7 V 43 C 8,44.108 8.892,45 10,45 H 38 C 39.108,45 40,44.108 40,43 V 17 L 28,5 Z"/>
<path style="fill:#4f4f4f" d="M 10,4 C 8.892,4 8,4.892 8,6 V 42 C 8,43.108 8.892,44 10,44 H 38 C 39.108,44 40,43.108 40,42 V 16 L 30,14 28,4 Z"/>
<path style="opacity:0.2" d="M 40,17 28,5 V 15 C 28,16.108 28.892,17 30,17 Z"/>
<path style="fill:#696969" d="M 40,16 28,4 V 14 C 28,15.108 28.892,16 30,16 Z"/>
<path style="opacity:0.1;fill:#ffffff" d="M 10 4 C 8.892 4 8 4.892 8 6 L 8 7 C 8 5.892 8.892 5 10 5 L 28 5 L 28 4 L 10 4 z"/>
<path style="opacity:0.2" d="M 15,22 V 31.509766 31.75 40 H 33 L 24.029297,30.970703 33,22 h -8.970703 z"/>
<path style="fill:#bb1be5" d="M 15 21 L 15 30.509766 L 15 30.75 L 15 39 L 33 39 L 24.029297 29.970703 L 33 21 L 24.029297 21 L 15 21 z"/>
<svg width="48" height="48" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="m10 5c-1.108 0-2 0.892-2 2v36c0 1.108 0.892 2 2 2h28c1.108 0 2-0.892 2-2v-26l-12-12z" style="opacity:.2"/>
<path d="m10 4c-1.108 0-2 0.892-2 2v36c0 1.108 0.892 2 2 2h28c1.108 0 2-0.892 2-2v-26l-10-2-2-10z" style="fill:#a13fe4"/>
<path d="m40 17-12-12v10c0 1.108 0.892 2 2 2z" style="opacity:.2"/>
<path d="m40 16-12-12v10c0 1.108 0.892 2 2 2z" style="fill:#c18dee"/>
<path d="m10 4c-1.108 0-2 0.892-2 2v1c0-1.108 0.892-2 2-2h18v-1h-18z" style="fill:#ffffff;opacity:.1"/>
<path d="m15.000001 21v19.000001h19l-9.5-9.500001 9.5-9.5z" style="opacity:.2"/>
<path d="m15.000001 20v19.000001h19l-9.5-9.500001 9.5-9.5z" style="fill:#ffffff"/>
</svg>

Before

Width:  |  Height:  |  Size: 910 B

After

Width:  |  Height:  |  Size: 736 B

View file

@ -1,9 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" version="1.1">
<path style="opacity:0.2" d="M 12.8125,5 C 11.254375,5 10,6.2488 10,7.8 v 50.4 c 0,1.5512 1.254375,2.8 2.8125,2.8 h 39.375 C 53.745625,61 55,59.7512 55,58.2 V 22 L 40.9375,19 38,5 Z"/>
<path style="fill:#4f4f4f" d="M 12.8125,4 C 11.254375,4 10,5.2488 10,6.8 v 50.4 c 0,1.5512 1.254375,2.8 2.8125,2.8 h 39.375 C 53.745625,60 55,58.7512 55,57.2 V 21 L 40.9375,18 38,4 Z"/>
<path style="opacity:0.2" d="M 55,22 38,5 V 19.166667 C 38,20.736333 39.263667,22 40.833333,22 Z"/>
<path style="fill:#696969" d="M 55,21 38,4 V 18.166667 C 38,19.736333 39.263667,21 40.833333,21 Z"/>
<path style="opacity:0.2" d="M 20,29 V 42.208984 42.541016 54 H 45 L 32.541016,41.458984 45,29 H 32.541016 Z"/>
<path style="fill:#bb1be5" d="M 20 28 L 20 41.208984 L 20 41.541016 L 20 53 L 45 53 L 32.541016 40.458984 L 45 28 L 32.541016 28 L 20 28 z"/>
<path style="opacity:0.1;fill:#ffffff" d="M 12.8125,4 C 11.254375,4 10,5.2495813 10,6.8007812 v 1 C 10,6.2495812 11.254375,5 12.8125,5 H 38 V 4 Z"/>
<svg width="64" height="64" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M 12.8125,5 C 11.254375,5 10,6.2488 10,7.8 v 50.4 c 0,1.5512 1.254375,2.8 2.8125,2.8 h 39.375 C 53.745625,61 55,59.7512 55,58.2 V 22 L 40.9375,19 38,5 Z" style="opacity:.2"/>
<path d="M 12.8125,4 C 11.254375,4 10,5.2488 10,6.8 v 50.4 c 0,1.5512 1.254375,2.8 2.8125,2.8 h 39.375 C 53.745625,60 55,58.7512 55,57.2 V 21 L 40.9375,18 38,4 Z" style="fill:#a13fe4"/>
<path d="M 55,22 38,5 V 19.166667 C 38,20.736333 39.263667,22 40.833333,22 Z" style="opacity:.2"/>
<path d="M 55,21 38,4 V 18.166667 C 38,19.736333 39.263667,21 40.833333,21 Z" style="fill:#c18dee"/>
<path d="m19 28v27h27l-13.5-13.5 13.5-13.5z" style="opacity:.2"/>
<path d="m19 27v27h27l-13.5-13.5 13.5-13.5z" style="fill:#ffffff"/>
<path d="M 12.8125,4 C 11.254375,4 10,5.2495813 10,6.8007812 v 1 C 10,6.2495812 11.254375,5 12.8125,5 H 38 V 4 Z" style="fill:#ffffff;opacity:.1"/>
</svg>

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 944 B