plasma-applet-tiledmenu icon indicating copy to clipboard operation
plasma-applet-tiledmenu copied to clipboard

Face icon looks pixelated

Open derchr opened this issue 5 years ago • 4 comments

Hello, the face icon in the sidebar looks a bit pixelated.

Maybe filtering thie .face png file would be a good practice, but I don't know a lot about QML and if this would be an easy task.

Another option would be to generate a smaller thumbnail every time the face icon gets changed.

derchr avatar Jun 14 '20 11:06 derchr

Adding smooth: true to the IconItem in FlatButton.qml does nothing. IconItem appears to not use anti-aliased scaling. I could use a QML Image for just the FaceIcon, but I'd prefer not too.

I tried changing the face icon's iconSize in SidebarView.qml to use up half the space leftover to grow the icon from 22x22 => 32x32.

SidebarItem {
	iconName: kuser.faceIconUrl ? kuser.faceIconUrl : 'user-identity'
	iconSize: config.flatButtonIconSize + Math.round((config.flatButtonSize - config.flatButtonIconSize) / 2)

2020-07-07___10-43-52

It looks a bit better. Manjaro's default /etc/skel/.face looks okay too.

2020-07-07___10-53-04

Zren avatar Jul 07 '20 14:07 Zren

I've considered a QML image too, but I wasn't very successful with it.

The fix iconSize: config.flatButtonIconSize + Math.round((config.flatButtonSize - config.flatButtonIconSize) / 2) seems to not affect the icon size much (at least in my case): comparison

derchr avatar Jul 07 '20 15:07 derchr

Did you restart plasmashell (or relog) after editing the file? It's easier to test by running:

plasmawindowed com.github.zren.tiledmenu

https://zren.github.io/kde/docs/widget/#testing

Zren avatar Jul 07 '20 17:07 Zren

Yes, i did restart plasmashell. With your command it's even simpler, thanks!

It seems like that it depends on the dpi settings if or how much the icon size will change.

derchr avatar Jul 07 '20 19:07 derchr