aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/theme-studio/WIP.json189
-rw-r--r--scripts/theme-studio/previews.js58
-rw-r--r--scripts/theme-studio/theme-studio.html54
3 files changed, 263 insertions, 38 deletions
diff --git a/scripts/theme-studio/WIP.json b/scripts/theme-studio/WIP.json
index 23a0ff46e..935c7cc88 100644
--- a/scripts/theme-studio/WIP.json
+++ b/scripts/theme-studio/WIP.json
@@ -788,8 +788,8 @@
"height": null
},
"region": {
- "fg": "#100f0f",
- "bg": "#ab8d2e",
+ "fg": null,
+ "bg": "#4a4b4f",
"distant-fg": null,
"family": null,
"weight": null,
@@ -1154,8 +1154,6 @@
"num",
"ui:lazy-highlight",
"ui:isearch",
- "ui:hl-line",
- "ui:highlight",
"str",
"esc",
"re",
@@ -1497,7 +1495,6 @@
"pkg:dired:dired-flagged",
"pkg:dired:dired-ignored",
"pkg:dired:dired-warning",
- "ui:region",
"ui:mode-line-inactive",
"pkg:nerd-icons:nerd-icons-blue",
"pkg:nerd-icons:nerd-icons-blue-alt",
@@ -1532,7 +1529,31 @@
"pkg:nerd-icons:nerd-icons-red-alt",
"pkg:nerd-icons:nerd-icons-silver",
"pkg:nerd-icons:nerd-icons-yellow",
- "pkg:nerd-icons:nerd-icons-lpink"
+ "pkg:nerd-icons:nerd-icons-lpink",
+ "pkg:eat:eat-term-color-white",
+ "pkg:eat:eat-term-color-green",
+ "pkg:eat:eat-shell-prompt-annotation-failure",
+ "pkg:eat:eat-shell-prompt-annotation-success",
+ "pkg:eat:eat-shell-prompt-annotation-running",
+ "pkg:eat:eat-term-bold",
+ "pkg:eat:eat-term-italic",
+ "pkg:eat:eat-term-color-yellow",
+ "pkg:eat:eat-term-color-blue",
+ "pkg:eat:eat-term-color-red",
+ "pkg:eat:eat-term-faint",
+ "pkg:eat:eat-term-color-magenta",
+ "pkg:eat:eat-term-color-cyan",
+ "pkg:eat:eat-term-color-bright-black",
+ "pkg:eat:eat-term-color-black",
+ "pkg:eat:eat-term-color-bright-white",
+ "pkg:eat:eat-term-color-bright-cyan",
+ "pkg:eat:eat-term-color-bright-magenta",
+ "pkg:eat:eat-term-color-bright-blue",
+ "pkg:eat:eat-term-color-bright-yellow",
+ "pkg:eat:eat-term-color-bright-green",
+ "pkg:eat:eat-term-color-bright-red",
+ "pkg:eat:eat-term-slow-blink",
+ "pkg:eat:eat-term-fast-blink"
],
"packages": {
"org-mode": {
@@ -3600,6 +3621,162 @@
"source": "user"
}
},
+ "eat": {
+ "eat-term-color-black": {
+ "fg": "#100f0f",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-red": {
+ "fg": "#cb6b4d",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-green": {
+ "fg": "#74932f",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-yellow": {
+ "fg": "#e6ce88",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-blue": {
+ "fg": "#67809c",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-magenta": {
+ "fg": "#8255b5",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-cyan": {
+ "fg": "#88b2c3",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-white": {
+ "fg": "#bfc4d0",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-black": {
+ "fg": "#8e919a",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-red": {
+ "fg": "#cb6b4d",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-green": {
+ "fg": "#74932f",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-yellow": {
+ "fg": "#e6ce88",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-blue": {
+ "fg": "#899bb1",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-magenta": {
+ "fg": "#8255b5",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-cyan": {
+ "fg": "#6ba9bd",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-color-bright-white": {
+ "fg": "#a9b2bb",
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-bold": {
+ "fg": null,
+ "bg": null,
+ "weight": "bold",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-faint": {
+ "fg": "#777980",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-italic": {
+ "fg": null,
+ "bg": null,
+ "slant": "italic",
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-slow-blink": {
+ "fg": null,
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-term-fast-blink": {
+ "fg": null,
+ "bg": null,
+ "inherit": null,
+ "source": "default"
+ },
+ "eat-shell-prompt-annotation-success": {
+ "fg": "#74932f",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-shell-prompt-annotation-running": {
+ "fg": "#dab53d",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ },
+ "eat-shell-prompt-annotation-failure": {
+ "fg": "#a85b42",
+ "bg": null,
+ "inherit": null,
+ "source": "user"
+ }
+ },
"auto-dim-other-buffers": {
"auto-dim-other-buffers": {
"fg": "#777980",
diff --git a/scripts/theme-studio/previews.js b/scripts/theme-studio/previews.js
index 8e7c273fc..15e885da1 100644
--- a/scripts/theme-studio/previews.js
+++ b/scripts/theme-studio/previews.js
@@ -296,28 +296,52 @@ function renderGitGutterPreview(){const a='git-gutter',L=[];
function renderEatPreview(){const a='eat',L=[],c=(f,t)=>os(a,'eat-term-color-'+f,t),x=(f,t)=>os(a,'eat-term-'+f,t),an=(g,t)=>os(a,'eat-shell-prompt-annotation-'+g,t);
const p=g=>an(g,g==='success'?'✔':g==='failure'?'✘':'…')+' ~/projects/app $ ';
// 1. directory listing -- the widest palette block (dircolors)
- L.push(p('success')+'eza --color');
- L.push(c('blue','src/')+' '+c('blue','build/')+' '+c('bright-green','run.sh')+' '+c('cyan','latest -> v2.1/')+' '+c('red','backup.tar.gz')+' '+c('magenta','logo.png')+' README.md');
+ L.push(p('success')+'eza -la --color');
+ L.push('drwxr-xr-x - 14:02 '+c('blue','.git/'));
+ L.push('.rw-r--r-- 120 09:11 .gitignore');
+ L.push('drwxr-xr-x - 14:02 '+c('blue','src/'));
+ L.push('drwxr-xr-x - 13:48 '+c('blue','tests/'));
+ L.push('.rwxr-xr-x 2.1k 14:00 '+c('bright-green','run.sh'));
+ L.push('lrwxr-xr-x - 14:01 '+c('cyan','latest')+' -> '+c('blue','v2.1/'));
+ L.push('.rw-r--r-- 4.5M 22:30 '+c('red','backup.tar.gz'));
+ L.push('.rw-r--r-- 88k 18:05 '+c('magenta','logo.png'));
+ L.push('.rw-r--r-- 3.2k 14:02 README.md');
L.push('');
// 2. git status -- staged green, unstaged/untracked red
L.push(p('success')+'git status -sb');
- L.push(c('bright-cyan','## main...origin/main'));
- L.push(c('green','A src/cache.el')+' '+c('green','M README.md'));
- L.push(c('red',' M init.el')+' '+c('red',' D old.el')+' '+c('red','?? scratch.txt'));
- L.push('');
- // 3. git log --decorate -- yellow hashes, colored refs
+ L.push(c('bright-cyan','## main...origin/main [ahead 2]'));
+ L.push(c('green','A src/eat-preview.js'));
+ L.push(c('green','A src/cache.el'));
+ L.push(c('green','M README.md'));
+ L.push(c('red',' M init.el'));
+ L.push(c('red',' M modules/term-config.el'));
+ L.push(c('red',' D modules/old-vterm.el'));
+ L.push(c('red','?? docs/design/eat.org'));
+ L.push(c('red','?? scratch.txt'));
+ L.push('');
+ // 3. git log --decorate -- yellow hashes, colored refs, a merge
L.push(p('success')+'git log --oneline --graph --decorate');
- L.push(c('bright-black','* ')+c('yellow','a1b2c3d')+' '+c('bright-cyan','(HEAD -> ')+c('bright-green','main')+c('bright-cyan',')')+' add eat preview blocks');
- L.push(c('bright-black','* ')+c('yellow','9f8e7d6')+' '+c('bright-yellow','(tag: v2.1)')+' '+c('bright-red','(origin/main)')+' lowercase labels');
- L.push(c('bright-black','* ')+c('yellow','3c4d5e6')+' expose eat faces');
- L.push('');
- // 4. test run -- pass green, skip yellow, fail red, bold summary, faint timing
+ L.push(c('bright-black','* ')+c('yellow','a1b2c3d')+' '+c('bright-cyan','(HEAD -> ')+c('bright-green','main')+c('bright-cyan',')')+' richer eat preview blocks');
+ L.push(c('bright-black','* ')+c('yellow','9f8e7d6')+' '+c('bright-yellow','(tag: v2.1, ')+c('bright-red','origin/main')+c('bright-yellow',')')+' lowercase the labels');
+ L.push(c('bright-black','* ')+c('yellow','3c4d5e6')+' Merge branch '+c('green',"'eat-faces'"));
+ L.push(c('bright-black','|\\ '));
+ L.push(c('bright-black','| * ')+c('yellow','7a8b9c0')+' expose eat faces to studio');
+ L.push(c('bright-black','| * ')+c('yellow','1d2e3f4')+' add eat-term-color docstrings');
+ L.push(c('bright-black','|/ '));
+ L.push(c('bright-black','* ')+c('yellow','5f6a7b8')+' toggle eat instead of ghostel on f12');
+ L.push(c('bright-black','* ')+c('yellow','2c3d4e5')+' calendar-sync robustness fixes');
+ L.push('');
+ // 4. test run -- pass green, skip yellow, fail red, bold summary, faint detail
L.push(p('failure')+'make test');
- L.push(c('green','✔ PASS')+' init-config (12)');
- L.push(c('green','✔ PASS')+' eat-toggle (19)');
- L.push(c('yellow','⚠ SKIP')+' network-sync (2, offline)');
- L.push(c('red','✘ FAIL')+' calendar-parse (1)');
- L.push(x('bold','Ran 34 tests, 33 passed, ')+c('red','1 failed')+' '+x('faint','0.84s'));
+ L.push(c('green','✔ PASS')+' term-toggle '+x('faint','(19 tests)'));
+ L.push(c('green','✔ PASS')+' ai-term '+x('faint','(158 tests)'));
+ L.push(c('green','✔ PASS')+' calendar-sync '+x('faint','(575 tests)'));
+ L.push(c('green','✔ PASS')+' dashboard '+x('faint','(18 tests)'));
+ L.push(c('yellow','⚠ SKIP')+' network-sync '+x('faint','(2 tests, offline)'));
+ L.push(c('green','✔ PASS')+' transcription '+x('faint','(44 tests)'));
+ L.push(c('red','✘ FAIL')+' org-roam-refile '+x('faint','(1 test)'));
+ L.push(' '+x('italic','expected 3 refile targets, got 0'));
+ L.push(x('bold','Ran 817 tests, 815 passed, ')+c('yellow','1 skipped, ')+c('red','1 failed')+' '+x('faint','0.84s'));
L.push('');
// swatch reference key, below the realistic blocks
L.push(x('faint','palette')+' '+c('black','■')+c('red','■')+c('green','■')+c('yellow','■')+c('blue','■')+c('magenta','■')+c('cyan','■')+c('white','■')+' '+c('bright-black','■')+c('bright-red','■')+c('bright-green','■')+c('bright-yellow','■')+c('bright-blue','■')+c('bright-magenta','■')+c('bright-cyan','■')+c('bright-white','■'));
diff --git a/scripts/theme-studio/theme-studio.html b/scripts/theme-studio/theme-studio.html
index b69f06e77..b7414817f 100644
--- a/scripts/theme-studio/theme-studio.html
+++ b/scripts/theme-studio/theme-studio.html
@@ -2964,28 +2964,52 @@ function renderGitGutterPreview(){const a='git-gutter',L=[];
function renderEatPreview(){const a='eat',L=[],c=(f,t)=>os(a,'eat-term-color-'+f,t),x=(f,t)=>os(a,'eat-term-'+f,t),an=(g,t)=>os(a,'eat-shell-prompt-annotation-'+g,t);
const p=g=>an(g,g==='success'?'✔':g==='failure'?'✘':'…')+' ~/projects/app $ ';
// 1. directory listing -- the widest palette block (dircolors)
- L.push(p('success')+'eza --color');
- L.push(c('blue','src/')+' '+c('blue','build/')+' '+c('bright-green','run.sh')+' '+c('cyan','latest -> v2.1/')+' '+c('red','backup.tar.gz')+' '+c('magenta','logo.png')+' README.md');
+ L.push(p('success')+'eza -la --color');
+ L.push('drwxr-xr-x - 14:02 '+c('blue','.git/'));
+ L.push('.rw-r--r-- 120 09:11 .gitignore');
+ L.push('drwxr-xr-x - 14:02 '+c('blue','src/'));
+ L.push('drwxr-xr-x - 13:48 '+c('blue','tests/'));
+ L.push('.rwxr-xr-x 2.1k 14:00 '+c('bright-green','run.sh'));
+ L.push('lrwxr-xr-x - 14:01 '+c('cyan','latest')+' -> '+c('blue','v2.1/'));
+ L.push('.rw-r--r-- 4.5M 22:30 '+c('red','backup.tar.gz'));
+ L.push('.rw-r--r-- 88k 18:05 '+c('magenta','logo.png'));
+ L.push('.rw-r--r-- 3.2k 14:02 README.md');
L.push('');
// 2. git status -- staged green, unstaged/untracked red
L.push(p('success')+'git status -sb');
- L.push(c('bright-cyan','## main...origin/main'));
- L.push(c('green','A src/cache.el')+' '+c('green','M README.md'));
- L.push(c('red',' M init.el')+' '+c('red',' D old.el')+' '+c('red','?? scratch.txt'));
+ L.push(c('bright-cyan','## main...origin/main [ahead 2]'));
+ L.push(c('green','A src/eat-preview.js'));
+ L.push(c('green','A src/cache.el'));
+ L.push(c('green','M README.md'));
+ L.push(c('red',' M init.el'));
+ L.push(c('red',' M modules/term-config.el'));
+ L.push(c('red',' D modules/old-vterm.el'));
+ L.push(c('red','?? docs/design/eat.org'));
+ L.push(c('red','?? scratch.txt'));
L.push('');
- // 3. git log --decorate -- yellow hashes, colored refs
+ // 3. git log --decorate -- yellow hashes, colored refs, a merge
L.push(p('success')+'git log --oneline --graph --decorate');
- L.push(c('bright-black','* ')+c('yellow','a1b2c3d')+' '+c('bright-cyan','(HEAD -> ')+c('bright-green','main')+c('bright-cyan',')')+' add eat preview blocks');
- L.push(c('bright-black','* ')+c('yellow','9f8e7d6')+' '+c('bright-yellow','(tag: v2.1)')+' '+c('bright-red','(origin/main)')+' lowercase labels');
- L.push(c('bright-black','* ')+c('yellow','3c4d5e6')+' expose eat faces');
+ L.push(c('bright-black','* ')+c('yellow','a1b2c3d')+' '+c('bright-cyan','(HEAD -> ')+c('bright-green','main')+c('bright-cyan',')')+' richer eat preview blocks');
+ L.push(c('bright-black','* ')+c('yellow','9f8e7d6')+' '+c('bright-yellow','(tag: v2.1, ')+c('bright-red','origin/main')+c('bright-yellow',')')+' lowercase the labels');
+ L.push(c('bright-black','* ')+c('yellow','3c4d5e6')+' Merge branch '+c('green',"'eat-faces'"));
+ L.push(c('bright-black','|\\ '));
+ L.push(c('bright-black','| * ')+c('yellow','7a8b9c0')+' expose eat faces to studio');
+ L.push(c('bright-black','| * ')+c('yellow','1d2e3f4')+' add eat-term-color docstrings');
+ L.push(c('bright-black','|/ '));
+ L.push(c('bright-black','* ')+c('yellow','5f6a7b8')+' toggle eat instead of ghostel on f12');
+ L.push(c('bright-black','* ')+c('yellow','2c3d4e5')+' calendar-sync robustness fixes');
L.push('');
- // 4. test run -- pass green, skip yellow, fail red, bold summary, faint timing
+ // 4. test run -- pass green, skip yellow, fail red, bold summary, faint detail
L.push(p('failure')+'make test');
- L.push(c('green','✔ PASS')+' init-config (12)');
- L.push(c('green','✔ PASS')+' eat-toggle (19)');
- L.push(c('yellow','⚠ SKIP')+' network-sync (2, offline)');
- L.push(c('red','✘ FAIL')+' calendar-parse (1)');
- L.push(x('bold','Ran 34 tests, 33 passed, ')+c('red','1 failed')+' '+x('faint','0.84s'));
+ L.push(c('green','✔ PASS')+' term-toggle '+x('faint','(19 tests)'));
+ L.push(c('green','✔ PASS')+' ai-term '+x('faint','(158 tests)'));
+ L.push(c('green','✔ PASS')+' calendar-sync '+x('faint','(575 tests)'));
+ L.push(c('green','✔ PASS')+' dashboard '+x('faint','(18 tests)'));
+ L.push(c('yellow','⚠ SKIP')+' network-sync '+x('faint','(2 tests, offline)'));
+ L.push(c('green','✔ PASS')+' transcription '+x('faint','(44 tests)'));
+ L.push(c('red','✘ FAIL')+' org-roam-refile '+x('faint','(1 test)'));
+ L.push(' '+x('italic','expected 3 refile targets, got 0'));
+ L.push(x('bold','Ran 817 tests, 815 passed, ')+c('yellow','1 skipped, ')+c('red','1 failed')+' '+x('faint','0.84s'));
L.push('');
// swatch reference key, below the realistic blocks
L.push(x('faint','palette')+' '+c('black','■')+c('red','■')+c('green','■')+c('yellow','■')+c('blue','■')+c('magenta','■')+c('cyan','■')+c('white','■')+' '+c('bright-black','■')+c('bright-red','■')+c('bright-green','■')+c('bright-yellow','■')+c('bright-blue','■')+c('bright-magenta','■')+c('bright-cyan','■')+c('bright-white','■'));