From 42597636b519befe9cebb335b6fb2a9a57668f86 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 8 Jun 2026 01:49:22 -0500 Subject: feat(theme-selector): black/white anchors, locked ground/fg tiles, save/export/import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I made the ground default pure black and the default text pure white, the two anchors the whole theme is judged against. The palette tiles holding the current background and foreground are now locked, showing a small lock instead of the remove ×, so the contrast reference can't be deleted out from under everything. The save/load row is relabeled and the buttons stay right-aligned: export is always a fresh download, import loads a file, and show toggles the JSON box. A save button appears once a theme name is entered and uses the File System Access API to write the same file in place on repeat saves, falling back to a download where that API isn't available. --- scripts/theme-selector/samples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/theme-selector/samples.py') diff --git a/scripts/theme-selector/samples.py b/scripts/theme-selector/samples.py index 41307a1c..38d57092 100644 --- a/scripts/theme-selector/samples.py +++ b/scripts/theme-selector/samples.py @@ -6,7 +6,7 @@ COLS={ 'con':("#cb6b4d",False),'num':("#cb6b4d",False),'esc':("#cb6b4d",False), 'str':("#2ba178",False),'re':("#5d9b86",False),'doc':("#5d9b86",False), 'cm':("#be9e74",False),'cmd':("#a9b2bb",False), - 'var':("#e8bd30",False),'op':("#a9b2bb",False),'punc':("#a9b2bb",False),'p':("#cdced1",False), + 'var':("#e8bd30",False),'op':("#a9b2bb",False),'punc':("#a9b2bb",False),'p':("#ffffff",False), } NAMES={"#67809c":"blue","#e8bd30":"gold","#9b5fd0":"regal","#2ba178":"emerald","#cb6b4d":"terracotta","#be9e74":"tan","#5d9b86":"sage","#cdced1":"white","#a9b2bb":"silver","#838d97":"steel","#5e6770":"pewter","#2f343a":"gunmetal","#264364":"navy"} def esc(t): return t.replace("&","&").replace("<","<").replace(">",">") -- cgit v1.2.3