doc: Update tricks per tinted-theming schema changes (#792)

The tinted-theming repository has updated its scheme for themes such
that colors are located under the key `palette` [1] and such that each
color is # prefixed [2]. These changes update the documentation to
reflect this new schema.


[1]
4caed9a8f5
[2]
61058a8d2e
This commit is contained in:
Alex Friedman 2025-01-26 16:28:40 -06:00 committed by GitHub
parent d5f02b5410
commit 6103431cd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,8 +33,7 @@ Similarly, you can use a template image and repaint it for the current theme.
let
theme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml";
wallpaper = pkgs.runCommand "image.png" {} ''
COLOR=$(${pkgs.yq}/bin/yq -r .base00 ${theme})
COLOR="#"$COLOR
COLOR=$(${pkgs.yq}/bin/yq -r .palette.base00 ${theme})
${pkgs.imagemagick}/bin/magick -size 1920x1080 xc:$COLOR $out
'';
in {