From a5e3a0c522b3f1639deacbfb5704e731ef1aa608 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 14 Feb 2026 23:03:55 +0100 Subject: [PATCH] Softer background color, remove panel divider Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 2 +- docs/sdlamp2-fsd.md | 5 +++++ src/sdlamp2.c | 6 +----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 679eba5..e471005 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -17,7 +17,7 @@ See `docs/rg35xx-plus.md` for target device details, boot chain, and deployment. ```sh make # native build — uses pkg-config make clean # remove build artifacts -./build/sdlamp2 [audio_directory] +./build/sdlamp2 audio # run with the repo's audio directory ``` Building for the arm64 target device via the Docker container (from the `docker-arm64/` directory): diff --git a/docs/sdlamp2-fsd.md b/docs/sdlamp2-fsd.md index a9be482..4fa6333 100644 --- a/docs/sdlamp2-fsd.md +++ b/docs/sdlamp2-fsd.md @@ -43,6 +43,11 @@ This document specifies the functional requirements for an SDL2 based media play ## 6. Changelog +### 2026-02-14 — Softer background, remove panel divider + +- **Background color**: Changed from white (`#FFFFFF`) to a soft gray (`#E8E8E8`) for a gentler appearance. +- **Remove divider**: Removed the vertical separator line between the controls panel and the album art. + ### 2026-02-14 — Fix residual audio on cassette switch - **Clear device queue on switch**: `switch_file()` now calls `SDL_ClearQueuedAudio()` after pausing the audio device, preventing a brief snippet of the previous cassette from playing when the new one starts. diff --git a/src/sdlamp2.c b/src/sdlamp2.c index 9adaa78..b33f9ba 100644 --- a/src/sdlamp2.c +++ b/src/sdlamp2.c @@ -915,7 +915,7 @@ int main(int argc, char** argv) { } /* --- Rendering --- */ - SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF); + SDL_SetRenderDrawColor(renderer, 0xE8, 0xE8, 0xE8, 0xFF); SDL_RenderClear(renderer); /* Album art (right panel, centered, aspect-preserving) */ @@ -949,10 +949,6 @@ int main(int argc, char** argv) { SDL_RenderFillRect(renderer, &fill); } - /* Separator line between left panel and right panel */ - SDL_SetRenderDrawColor(renderer, 0xC0, 0xC0, 0xC0, 0xFF); - SDL_RenderDrawLine(renderer, 200, 10, 200, 470); - /* Buttons */ SDL_RenderCopy(renderer, controls_texture, &prev_sprite, &prev_btn); SDL_RenderCopy(renderer, controls_texture, &rewind_sprite, &rewind_btn);