Overhaul icons: bundled Lucide symbolics, soft tiles, mixer app icon, container host icons
This commit is contained in:
1 parent
b1f0965e02
commit
011dab35a2
47 files changed
+970
-158
No files matched your search
+32
-3
@@ -90,10 +90,39 @@ DATA=23040000
|
||||
{ printf 'RIFF'; le32 $((DATA + 36)); printf 'WAVEfmt '; le32 16
|
||||
printf '\001\000\002\000'; le32 48000; le32 192000; printf '\004\000\020\000'
|
||||
printf 'data'; le32 $DATA; head -c $DATA /dev/urandom; } > "$LOGS/noise.wav"
|
||||
{ pw-play -P '{ application.name = "Test Player" application.icon-name = "applications-multimedia-symbolic" media.name = "Smoke test tone" }' \
|
||||
# Synthetic desktop app with a full-colour icon so we verify .desktop lookup
|
||||
# alongside unmapped stream fallbacks.
|
||||
TEST_XDG="$XDG_RUNTIME_DIR/xdg-data"
|
||||
mkdir -p "$TEST_XDG/icons/hicolor/scalable/apps" "$TEST_XDG/applications"
|
||||
cat > "$TEST_XDG/icons/hicolor/scalable/apps/org.example.TestPlayer.svg" <<'SVG'
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#3b82f6"/>
|
||||
<stop offset="1" stop-color="#8b5cf6"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="2" y="2" width="44" height="44" rx="12" fill="url(#g)"/>
|
||||
<path d="M31 30V13a1.5 1.5 0 0 0-1.9-1.44l-11 3.2A1.5 1.5 0 0 0 17 16.2V33" fill="none" stroke="#ffffff" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="27.5" cy="30" r="3.5" fill="#ffffff"/>
|
||||
<circle cx="13.5" cy="33" r="3.5" fill="#ffffff"/>
|
||||
</svg>
|
||||
SVG
|
||||
cat > "$TEST_XDG/applications/org.example.TestPlayer.desktop" <<'DESK'
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Test Player
|
||||
Exec=pw-play
|
||||
Icon=org.example.TestPlayer
|
||||
DESK
|
||||
|
||||
{ pw-play -P '{ application.name = "Test Player" application.id = "org.example.TestPlayer" media.name = "Smoke test tone" }' \
|
||||
"$LOGS/noise.wav"; echo "pw-play exited with $?"; } >"$LOGS/play.log" 2>&1 & PIDS="$PIDS $!"
|
||||
{ pw-play -P '{ application.name = "Fallback Stream" media.name = "Unmapped app stream" }' \
|
||||
"$LOGS/noise.wav"; echo "pw-play fallback exited with $?"; } >"$LOGS/play-fallback.log" 2>&1 & PIDS="$PIDS $!"
|
||||
pw-cat --record --raw --rate 48000 --channels 1 --format s16 \
|
||||
-P '{ application.name = "Test Recorder" application.icon-name = "audio-input-microphone" media.name = "Mic capture" }' \
|
||||
-P '{ application.name = "Test Recorder" media.name = "Mic capture" }' \
|
||||
/dev/null >"$LOGS/record.log" 2>&1 & PIDS="$PIDS $!"
|
||||
wait_for 'Test Player | .*-> ' || true
|
||||
|
||||
@@ -157,7 +186,7 @@ if [ -n "$SHOTS" ] && [ -x "$GUI" ]; then
|
||||
if command -v gtk4-broadwayd >/dev/null; then
|
||||
gtk4-broadwayd :5 >/dev/null 2>&1 & PIDS="$PIDS $!"
|
||||
sleep 1
|
||||
gui() { MOONMIX_ICON_DIR="$ROOT/data/icons" GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 timeout 30 stdbuf -oL "$GUI"; }
|
||||
gui() { XDG_DATA_DIRS="$TEST_XDG:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" MOONMIX_ICON_DIR="$ROOT/data/icons" GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 timeout 30 stdbuf -oL "$GUI"; }
|
||||
# Default look: no session bus, so no portal and the theme's own accent.
|
||||
DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/no-bus" MOONMIX_SCREENSHOT="$SHOTS" gui || fail=1
|
||||
# System accent: a fake org.freedesktop.portal.Settings on a private
|
||||
|
||||
Reference in new issue
Block a user