diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-15 14:52:57 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-15 14:52:57 +0200 |
| commit | 66a8d05e2461761b60e1b4126437d04dc4f3dbbe (patch) | |
| tree | 2b7ac4b566eda54246f9f392ad8d7b6775a1ef13 /icons/slackware.svg | |
| parent | f85ec726b723db2ac5031c3c39bd3b250e85e63f (diff) | |
| download | waybar-theme-udt-66a8d05e2461761b60e1b4126437d04dc4f3dbbe.tar.gz waybar-theme-udt-66a8d05e2461761b60e1b4126437d04dc4f3dbbe.zip | |
fix: make the launcher mark load and draw
Three faults stacked on the same pill, each hidden by the one before it.
A module's `path` is not shell-expanded the way `exec` is, so "$HOME/..."
was taken literally, no file was found, and the module drew nothing without
logging why. The module file is generated into place now, with the absolute
path written in, which is why install.sh removes the target first: an
earlier install had symlinked that file, and a redirect onto a surviving
link truncates the link's target, which is the repo's own copy.
With a real path to try, gdk-pixbuf then refused the file. The XML was
well-formed, but the loader sniffs the opening bytes for "<svg" to choose a
decoder, and the licence comment sat in front of the root element. The
comment is inside the SVG now, and a note in the file says why it has to
stay there.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'icons/slackware.svg')
| -rw-r--r-- | icons/slackware.svg | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/icons/slackware.svg b/icons/slackware.svg index 0b1f633..bb78bdd 100644 --- a/icons/slackware.svg +++ b/icons/slackware.svg @@ -1,7 +1,12 @@ -<!-- Slackware logo, from Simple Icons (CC0 1.0 Universal). - @ACCENT@ is substituted by install.sh. The mark sits on the accent pill, - so it is filled with the bar's background colour, not the accent: the - accent would put it on top of itself and render it invisible. --> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"> + <!-- Slackware logo, from Simple Icons (CC0 1.0 Universal). + @ACCENT@ is substituted by install.sh with the bar's background colour, + not the accent: the mark sits on the accent pill, and filling it with + the accent would draw it on top of itself. + + The root <svg> element stays the FIRST thing in this file. gdk-pixbuf + sniffs the opening bytes for "<svg" to pick its loader, so a comment + before the root tag pushes it out of that window and every consumer + reports "couldn't recognize the image file format" on valid XML. --> <path fill="@ACCENT@" d="M12.924 1.228c-.584-.01-1.251 0-1.485.027-2.46.282-4.138 1.3-4.753 2.891-.218.552-.274 1.002-.243 1.772.048 1.21.419 2.004 1.262 2.742 1.225 1.06 2.98 1.508 5.998 1.508 2.737 0 3.71.413 3.916 1.675.313 1.867-1.57 3.07-4.414 2.827-1.878-.16-3.496-.912-4.223-1.967a7.772 7.772 0 01-.355-.62c-.382-.76-.64-.978-1.176-.978-.43.005-.732.165-.918.494l-.133.24v4.03l.137.296c.165.344.4.546.744.63.35.09.794-.036 1.42-.402l.5-.29.826.185c1.82.403 2.75.523 4.065.523 1.103.005 1.548-.046 2.455-.285 1.124-.297 1.974-.785 2.717-1.57.8-.844 1.15-1.853 1.097-3.147-.069-1.628-.695-2.698-2-3.414-.96-.525-2.292-.79-4.377-.88-2.042-.086-2.794-.155-3.515-.32-.51-.12-.785-.25-1.076-.515-.653-.589-.59-1.755.136-2.482.642-.637 1.511-.928 2.774-.928 1.432.005 2.393.27 3.412.955.185.127.721.62 1.193 1.092.886.902 1.135 1.082 1.506 1.082.244 0 .59-.163.732-.344.26-.329.303-.63.303-2.2 0-1.66-.043-1.91-.377-2.282-.387-.425-.848-.42-1.75.031l-.59.297-.63-.17c-1.496-.392-2.038-.477-3.178-.504zM0 13.775v9h24v-1H1v-8z"/> </svg> |
