-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
This may be a different variation on:
There are at least two problems when attempting to generate themes using https://github.com/tinted-theming/tinted-terminal
- Errors when specifying color themes parameter
- corrupts generated iTerm2 themes using built-in color schemes
Details
Errors when specifying color themes parameter
Using https://github.com/tinted-theming/schemes
git checkout https://github.com/tinted-theming/schemes.git tinted-theming_schemes
git checkout https://github.com/tinted-theming/tinted-terminal.git
cd tinted-terminal
REM base16-builder-go_0.3.1_windows_amd64.exe is in the parent directory
REM these both fail
..\base16-builder-go_0.3.1_windows_amd64.exe -schemes-dir ..\..\tinted-theming_schemes
..\base16-builder-go_0.3.1_windows_amd64.exe -schemes-dir C:\code\terminal\base16_base24\tinted-theming_schemes
Get errors whether use root of scheme check out or base16/base24 directory
relative path
C:\code\terminal\base16_base24\base16-builder-go\tinted-terminal>..\base16-builder-go_0.3.1_windows_amd64.exe -schemes-dir ..\..\tinted-theming_schemes
time="2025-07-27T15:59:33-07:00" level=info msg=base16-builder-go commit=44a3a8b93e36bfdddf7cd63a2c4e539a9bf171c4 date="2024-08-27T07:15:10Z" spec-version=0.11.0 version=0.3.1
time="2025-07-27T15:59:33-07:00" level=info msg="Processing scheme dir \"..\\\\..\\\\tinted-theming_schemes\""
time="2025-07-27T15:59:33-07:00" level=info msg="Found 0 color schemes"
time="2025-07-27T15:59:33-07:00" level=panic msg="No valid schemes for template"
panic: (*logrus.Entry) 0xc0000d70a0
goroutine 1 [running]:
github.com/sirupsen/logrus.(*Entry).log(0x1665e00, 0x0, {0xc0000f6be0, 0x1d})
/home/runner/go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:260 +0x491
github.com/sirupsen/logrus.(*Entry).Log(0x1665e00, 0x0, {0xc000097c40?, 0xc?, 0xc000097c60?})
/home/runner/go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:304 +0x48
github.com/sirupsen/logrus.(*Entry).Panic(...)
/home/runner/go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:342
main.main()
/home/runner/work/base16-builder-go/base16-builder-go/main.go:115 +0x745
abs path
C:\code\terminal\base16_base24\base16-builder-go\tinted-terminal>..\base16-builder-go_0.3.1_windows_amd64.exe -schemes-dir C:\code\terminal\base16_base24\tinted-theming_schemes
time="2025-07-27T15:59:53-07:00" level=info msg=base16-builder-go commit=44a3a8b93e36bfdddf7cd63a2c4e539a9bf171c4 date="2024-08-27T07:15:10Z" spec-version=0.11.0 version=0.3.1
time="2025-07-27T15:59:53-07:00" level=info msg="Processing scheme dir \"C:\\\\code\\\\terminal\\\\base16_base24\\\\tinted-theming_schemes\""
time="2025-07-27T15:59:53-07:00" level=info msg="Found 0 color schemes"
time="2025-07-27T15:59:53-07:00" level=panic msg="No valid schemes for template"
panic: (*logrus.Entry) 0xc0000d90a0
goroutine 1 [running]:
github.com/sirupsen/logrus.(*Entry).log(0x1665e00, 0x0, {0xc0000f8c80, 0x1d})
/home/runner/go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:260 +0x491
github.com/sirupsen/logrus.(*Entry).Log(0x1665e00, 0x0, {0xc000097c40?, 0xc?, 0xc000097c60?})
/home/runner/go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:304 +0x48
github.com/sirupsen/logrus.(*Entry).Panic(...)
/home/runner/go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:342
main.main()
/home/runner/work/base16-builder-go/base16-builder-go/main.go:115 +0x745
Corrupted iTerm2 theme output with built-in color schemes
Command run appears successful but generated themes are missing colors.
This may well be a template issue.
git checkout https://github.com/tinted-theming/tinted-terminal.git
cd tinted-terminal
REM base16-builder-go_0.3.1_windows_amd64.exe is in the parent directory
..\base16-builder-go_0.3.1_windows_amd64.exe
Git diff shows:
diff --git a/themes-16/iterm2-applescripts/base16-3024.scpt b/themes-16/iterm2-applescripts/base16-3024.scpt
index 8e9ef867..0eed7a4d 100644
--- a/themes-16/iterm2-applescripts/base16-3024.scpt
+++ b/themes-16/iterm2-applescripts/base16-3024.scpt
@@ -5,27 +5,27 @@
*)
tell application "iTerm2"
tell current session of current window
- set background color to {2313, 771, 0}
- set foreground color to {42405, 41634, 41634}
+ set background color to {, , }
+ set foreground color to {, , }
-- Set ANSI Colors
- set ANSI black color to {14906, 13364, 12850}
- set ANSI red color to {56283, 11565, 8224}
- set ANSI green color to {257, 41634, 21074}
- set ANSI yellow color to {65021, 60909, 514}
- set ANSI blue color to {257, 41120, 58596}
- set ANSI magenta color to {41377, 27242, 38036}
- set ANSI cyan color to {46517, 58596, 62708}
- set ANSI white color to {54998, 54741, 54484}
+ set ANSI black color to {, , }
+ set ANSI red color to {, , }
+ set ANSI green color to {, , }
+ set ANSI yellow color to {, , }
+ set ANSI blue color to {, , }
+ set ANSI magenta color to {, , }
+ set ANSI cyan color to {, , }
+ set ANSI white color to {, , }
....This may well be a template issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels