Commit graph

13 commits

Author SHA1 Message Date
148a2dab62 zen: hide window controls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 13:52:03 +01:00
81a5fef0b3 Patch Zen window sync blank tabs 2026-10-05 11:58:58 +01:00
0e980586d0 zen: register the theme sheet at agent level
As a user sheet it sorted below userChrome.css and lost every !important to
the copy parsed at startup. Agent sheets sort above ua.css; @-moz-document
keeps that origin off web pages.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 20:18:32 +01:00
d9604900e3 zen: copy the real binary into the wrapper so autoconfig is read
wrapFirefox only copies the exe matching binaryName ("zen-beta"), but Gecko
execs lib/zen-bin-*/zen, a symlink into the unwrapped package. The app dir
resolved there, so mozilla.cfg and defaults/pref were never read.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 20:11:26 +01:00
657da242d4 zen: stage markers for the autoconfig theme watcher
fred.zenTheme.autoconfig / .cfg / .status say which of the three stages the
theme watcher reaches, using the one API autoconfig always has.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 19:59:24 +01:00
0bc16d0cdc zen: unsandbox autoconfig so the theme watcher can run
Firefox 62+ restricts mozilla.cfg to pref()/defaultPref(); Components was
undefined, so the watcher threw on its first line and so did its catch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 19:40:57 +01:00
316601db6c zen: write userChrome.css again alongside zen-theme.css
The watcher not landing left Zen with no theme at all. Keep the startup copy
so the floor is the old behaviour, and let the watcher fight for the live
update on top.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 19:35:08 +01:00
5e9215b2cf zen: drop Services from the autoconfig script, add status pref
The autoconfig sandbox has no Services global, so the watcher threw before
registering anything. Go through Components.classes only, resolve ProfD per
pass, and record the result in fred.zenTheme.status.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 19:26:50 +01:00
5ad1ac06ca zen: hot-reload the theme via autoconfig sheet watcher
Gecko has no userChrome.css reload, so wrap zen with a mozilla.cfg script
that registers chrome/zen-theme.css through nsIStyleSheetService and
re-registers it under a cache-busting URI when its mtime moves.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 19:15:50 +01:00
640ac96ece
2026-03-28 15:07:05 +00:00
d1bd8e4139
2026-03-28 15:01:29 +00:00
816eeb6c3a
2026-03-28 14:57:46 +00:00
d0ed3fe5c8
2026-03-28 14:54:56 +00:00