0

Is there any way to add an icon for an app which is also available in Lightning? In Classic, I have uploaded an image in document object, but in Lightning we don't have a document object; that's why icon is not coming when we select an app in Lightning. Is there any workaround? Any help will be appreciated.

1 Answer 1

0

Switch to the "Lightning Experience" UI and go to "Setup Home" in that. Then in Apps -> App Manager you can create a "New Lightning App" or edit a "Lightning" App Type existing App definition and upload an image as the "App Branding" image.

(For an app that works in both Classic and Lightning use a separate App definition for each case.)

If you want to extract that image back out into version control see How to extract the application brand logo image over an API?.

The Lightning App image is stored in a different way to the Classic App image so the same image cannot be used; a different size and shape is typically best in any case:

  • Classic: The image must be in GIF or JPEG format and less than 20 KB in size. If the image is larger than 300 pixels wide by 55 pixels high, then it will be scaled to fit. For the best on-screen display, we recommend you use an image with a transparent background.
  • Lightning: App images represent your app in Lightning Experience and Salesforce1. Choose a JPG, PNG, BMP, or GIF image that's smaller than 5 MB. For best results, upload an image that's 128 by 128 pixels. Images larger than the maximum display are resized.
5
  • I have a classic app that is a part of the package. It already has an image which is shown in classic, but in lightning the salesforce logo is coming.
    – Anzar
    Feb 9, 2017 at 14:13
  • @Anzar I added a bit to the end of my answer; you will need a separate image for the two cases as there are different size requirements.
    – Keith C
    Feb 9, 2017 at 14:25
  • ok I get it we need different images but even if we have two images how we are going to do that ?
    – Anzar
    Feb 9, 2017 at 14:28
  • @Anzar Use two app definitions, one for Classic and one for Lightning. You will likely want different tabs and features in the two contexts.
    – Keith C
    Feb 9, 2017 at 14:32
  • thats what I thought.
    – Anzar
    Feb 9, 2017 at 14:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .