Use small notification icons when available
ClosedPublic

Authored by mtijink on Jan 28 2018, 8:44 PM.

Details

Summary

The notification plugin now sends small notification icons, if the large
icon is not available.

Before patch, with icon:

Before patch, without icon:

After patch, without icon:

Test Plan

I tested notifications with small icons and those with large icons, and it works as expected.

Diff Detail

Repository
R225 KDE Connect - Android application
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mtijink requested review of this revision.Jan 28 2018, 8:44 PM
mtijink created this revision.
nicolasfella added a reviewer: VDG.EditedJan 29 2018, 10:47 PM
nicolasfella added a subscriber: nicolasfella.

I'm not entirely against the idea, but without the icon the desktop notification looks more like the "original" notification. That's why I implemented it the current way.

Can you please add some screenshots so that others can evaluate the idea?

apol added a subscriber: apol.Jan 30 2018, 12:30 AM

He said "if the large icon is not available". I guess we can assume that if an icon is provide then it's better than none?

Cannot really comment on the patch but it certainly seems harder to get a big icon than a small one!!

src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
229

empty line?

fabianr added a subscriber: fabianr.Feb 8 2018, 1:12 PM

Could you provide a screenshot before/after for VDG imput?

nicolasfella edited the summary of this revision. (Show Details)Feb 8 2018, 2:18 PM
mmustac added a subscriber: mmustac.Feb 8 2018, 3:18 PM

I like it, specially because we are talking about Android notifications, but also Plasma make a lot of use from Icons in notifications and I prefer to have them because they make it clear what kind of notification it is and I know if I have to care about before I need to read it completely.

fabianr accepted this revision.Feb 9 2018, 9:02 AM
This revision is now accepted and ready to land.Feb 9 2018, 9:02 AM
albertvaka accepted this revision.Feb 17 2018, 10:02 AM
albertvaka added a subscriber: albertvaka.

Looks good to me!

No general objection from my side, the only concern I have is that the small icon might be very low-res and look uglish when scaled. But this is just gut-feeling. Have you tested on real examples?

No general objection from my side, the only concern I have is that the small icon might be very low-res and look uglish when scaled. But this is just gut-feeling. Have you tested on real examples?

I haven't, I'll look into that.

Is there any guideline for the plasma icons recommended size? I'd imagine that some people with HiDPI screen might want even larger icons send over than 128x128.

Here's an example with a 24x24 pixel icon (way smaller than happens in practice):

I think that's good enough, especially considering that this is the worst case.

This revision was automatically updated to reflect the committed changes.