Add icons for some menu options in KMail
ClosedPublic

Authored by sjolly on Mar 15 2020, 8:21 PM.

Details

Summary

In KMail, the following menu options did not have icons:

  • Settings -> Add Accounts (Main window)
  • Settings -> Configure Filters (Main window)
  • Go -> Jump to Folder (Main window)
  • Tools -> Spellchecker (Compose window)

This commit adds relevant icons for these.

Diff Detail

Repository
R206 KMail
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sjolly created this revision.Mar 15 2020, 8:21 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 15 2020, 8:21 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
sjolly requested review of this revision.Mar 15 2020, 8:21 PM
sjolly retitled this revision from Add icons for some menu option in KMail to Add icons for some menu options in KMail.
dvratil requested changes to this revision.Mar 15 2020, 11:15 PM
dvratil added a subscriber: dvratil.

Thanks a lot for the changes. I suggested some alternatives, you can use a tool called "Cuttlefish" to preview the icons, if you don't know it yet. It's better to focus on the name of the icon rather than what the icon looks like, because with other icon themes the icons may look differently and may not match the intention as much as Breeze does.

src/kmmainwidget.cpp
3335

How about dialog-filters?

3346

I think list-resource-add would be a better icon for this.

3456

Alternatively, go-jump icon might be a good choice.

This revision now requires changes to proceed.Mar 15 2020, 11:15 PM
sjolly updated this revision to Diff 77759.Mar 16 2020, 6:03 PM

Changed icons to relevant icons to work for all themes.

sjolly updated this revision to Diff 77762.Mar 16 2020, 6:08 PM

Changed icons to relevant icons to work for all themes.

dvratil requested changes to this revision.Mar 16 2020, 6:24 PM

Looks like the spell-checker icon has disappeared from the patch :)

This revision now requires changes to proceed.Mar 16 2020, 6:24 PM
sjolly updated this revision to Diff 77769.Mar 16 2020, 7:00 PM
sjolly marked 3 inline comments as done.

Added change missed out in previous update.

sjolly added a comment.EditedMar 16 2020, 7:08 PM

Also, I had an issue using Cuttlefish: Many icons weren't there at all in my installed Cuttlefish app (including dialog-filters, list-resource-add, go-jump).

Had to use them in the code, and then I was able to see them in the re-built KMail.

plasma-sdk version seems to be fine too. apt show plasma-sdk gives me:
Version: 4:5.16.5-0ubuntu1

Using Ubuntu 19.10

dvratil accepted this revision.Mar 17 2020, 9:21 AM

Interesting, maybe some problem with icon cache?

Anyway, thanks a lot for the patch. I assume you don't have commit access yet, so I'll land the patch for you.

This revision is now accepted and ready to land.Mar 17 2020, 9:21 AM
This revision was automatically updated to reflect the committed changes.