Skip to content

Add album cover rounding functionality#271

Merged
ccatterina merged 11 commits intoccatterina:mainfrom
Trip7274:main
Mar 6, 2026
Merged

Add album cover rounding functionality#271
ccatterina merged 11 commits intoccatterina:mainfrom
Trip7274:main

Conversation

@Trip7274
Copy link
Copy Markdown
Contributor

Hello!

I felt that, since the outer frame around the full applet view can be rounded, it can be quite jarring for the album art to be razor sharp, so I tried implementing that functionality.
I'm not too experienced in QML, so I tried to follow what the rest of the code did for other image rounding functionality, I hope it's good!

The corner radius is toggle-able and adjustable 2-26px (in 2px increments)
image of the radius settings

Images:
Before + un-backgrounded album art:
Before, un-backgrounded album art:
Before + backgrounded album art:
Before + backgrounded album art

After + un-backgrounded:
After + un-backgrounded:
After + backgrounded:
After + backgrounded

@Nicolas-Gth
Copy link
Copy Markdown
Contributor

Ahah I actually made this on my side but didn't do a PR. It looks nice, but I think you should put the setting in the Album cover section.

@Trip7274
Copy link
Copy Markdown
Contributor Author

Ooh, yeah, I should've probably done that already. Will do in a moment!

Copy link
Copy Markdown
Owner

@ccatterina ccatterina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, good job! I left only a minor comment for the config variable name.

Can you rebase onto master and regenerate the translations files? (https://github.com/ccatterina/plasmusic-toolbar?tab=readme-ov-file#translations)

Thank you! 🙂

Comment thread src/contents/config/main.xml Outdated
@Trip7274
Copy link
Copy Markdown
Contributor Author

Trip7274 commented Mar 1, 2026

I hope this is better?
Also, for the French translation, I do have a French friend who suggested a better translation for "Round album cover" and "Album cover radius" (being "Couverture d'album ronde" and "Rayon de couverture de l'album" respectively), would you like me to add those, or leave it up to the French translator?

@ccatterina
Copy link
Copy Markdown
Owner

ccatterina commented Mar 2, 2026

Also, for the French translation, I do have a French friend who suggested a better translation for "Round album cover" and "Album cover radius" (being "Couverture d'album ronde" and "Rayon de couverture de l'album" respectively), would you like me to add those, or leave it up to the French translator?

Yeah, the translation generation script uses msgmerge, which auto-generates fuzzy translations, and they're quite bad. I need to change the script to avoid autogenerating them 🙂.

@Nicolas-Gth, since you wrote the translation file, could you please review the French translations? Thanks!

…#269)

* Added an option to hide the album name if it is identical to the track title for both full and compact representations

* Add colons to the end of the new config options

* Recompiled translations

* Update src/contents/ui/config/Full.qml

Co-authored-by: Claudio Catterina <ccatterina@proton.me>

* Update src/contents/ui/config/Compact.qml

Co-authored-by: Claudio Catterina <ccatterina@proton.me>

* Recompiled translations again

---------

Co-authored-by: Claudio Catterina <ccatterina@proton.me>
Comment thread src/translate/fr.po Outdated

#: src/contents/ui/config/Full.qml:229
#, fuzzy, kde-format
msgid "Album cover radius"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why english version doesn't have : ?

Copy link
Copy Markdown
Contributor Author

@Trip7274 Trip7274 Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I must've read this commit 46b5b35 and (incorrectly) assumed it was for all labels, apologies
Will fix in a sec

Comment thread src/translate/fr.po Outdated
#: src/contents/ui/config/Full.qml:218
#, fuzzy, kde-format
msgid "Round album cover"
msgstr "Afficher la pochette"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Round album cover" translation would be "Pochette d'album arrondie"

Copy link
Copy Markdown
Contributor Author

@Trip7274 Trip7274 Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I assume that the fuzzy-matched translation for "Album cover radius" is correct?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it sounds alright to me

@ccatterina
Copy link
Copy Markdown
Owner

ccatterina commented Mar 5, 2026

@Trip7274 Can you rebase on to main again and regenerate the translations? 🙏

@ccatterina ccatterina merged commit c01c439 into ccatterina:main Mar 6, 2026
1 check passed
@ccatterina
Copy link
Copy Markdown
Owner

Thank you @Trip7274 , great job! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants