dhruv8sh / plasma6-window-title-applet

Plasma 6 Window Title applet
GNU General Public License v2.0
65 stars 4 forks source link

Customise font size; allow other options for fitting text #13

Closed protist closed 6 months ago

protist commented 6 months ago

Thanks for the plasmoid. It's working great! It would excellent if users could customise the font size. Maybe even allow for two lines of text (although I'm not sure how rubbish this would look).

Also, related, it would be great to allow eliding the text from the end, rather than the middle. i.e. instead of

dhruv8sh commented 6 months ago
protist commented 6 months ago

Option for eliding text to the right was pushed and will be shipped with the next release.

Brilliant! Thank you.

I will consider adding multi-line support, but only if a considerable number of people ask for it.

TBH I'm not even very sure how this would look, so I wouldn't necessarily waste time on it.

Unfortunately, I don't think it would be a good addition to give freedom for the font-size. This might break the process of metric check the applet uses (if that happens, the text will overflow / underflow depending on the font size).

Ah okay. I used to use the old Plasma 5 Active Window Control, which allowed customising the font size. There is a similar Plasma 6 plasmoid Application Title Bar, which also allows changing the font size. It's certainly very useful to fit more text into the plasmoid, but I understand if the coding is difficult given the different backends. Thank you anyway.

dhruv8sh commented 6 months ago

Never mind. Font resizing should definitely work. In fact, I will implement it right now!

My bad on the previous comment. I was confused due to the recent refactors I had to make across multiple applets.

dhruv8sh commented 6 months ago

image Here you go! This will be shipped in the next release as well.

protist commented 6 months ago

Oh that looks brilliant. Thank you again @dhruv8sh!