Repository navigation
Album art: framed, flush, and steady when zooming - #8
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes so the cover looks clean in the sidebar.
Flush with the panels. Panel borders are drawn through the middle of their cells, but a picture starts at a cell's edge, so the bare cover stuck out half a cell past the Library border on the left. And a square cover fitted into a not-quite-square block of cells left a gap on the right. Now the cover sits in its own rounded frame, the same width as the Library panel, so the edges line up. The cover is scaled to fill the frame's inside exactly, cropping the few pixels by which the cell grid isn't square (under 5%, split between two opposite edges), so the space around it is even.
Steady when zooming. Ctrl +/- changes the font's pixel size. trill re-encoded the cover but kept showing the old one meanwhile. In Konsole (iTerm2 images, drawn at a fixed pixel size) that old one spilled over the borders or sat small in the corner, and could leave bits behind. Now a font-size change drops the old picture, so the cover is blank for a moment and then drawn fresh. Song changes still keep the old cover up while the next one loads.