Image asset as page icon

Let us use the icon:: property to specify an image asset as page icon, not only emojis.

I.e.

icon:: ![my_icon](../assets/my_icon.svg)

That is a good idea :+1:t3:

Is this icon:: property something that already exists? If so, what is it used for?

Yes, it was added in 0.4.9, I think.
It adds an icon in front of the page name. Which shows up in the tab and the recent section

3 Likes

Didn’t know that. Cool!

I discovered the icon:: property just yesterday from another post here, I guess it needs to be documented xD

Yes, the feature was introduced in 0.4.9 and currently only supports font glyphs and emojis.

I described how to use it in a previous comment:

Related Pull Requests:

2 Likes

Now that I think more about it it would be even more convenient to create icon themes and use handles in Logseq pages. For example:

icon:: :pdf:

and it display the pdf.svg icon from current icon theme; it would also be super convenient to support Freedesktop icon themes, at least on Linux

3 Likes

Is this not working anymore?

1 Like

I tried to add an ico file (and an svg file) but they did not give the desired result. The image got moved to the assets folder.

I think this feature is not working.

This is a feature request.

1 Like