We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

How to set image to CoverAction

asked 2014-04-27 15:35:25 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-11-10 13:56:11 +0300

chemist gravatar image

I tried to set image to CoverAction. Here code of my Cover:

 import QtQuick 2.0
import Sailfish.Silica 1.0

CoverBackground
{
    Label
    {
        id: label
        anchors.centerIn: parent
        text: "My Cover"
    }

    CoverActionList
    {
        id: coverAction

        CoverAction
        {
            iconSource: "update_icon.jpg"
        }

        CoverAction
        {
            iconSource: "image://theme/icon-cover-pause"
        }
    }
}

I added new file in Resources folder (resources.qrc):

<RCC>
<qresource prefix="/">
    <file>update_icon.jpg</file>
</qresource>

Also I added image file named update_icon.jpg. It placed at the root of project folder. Image not showing on cover. Did I miss smth?...

add a comment

2 Answers

Sort by » oldest newest most voted
1

answered 2014-04-27 16:34:49 +0300

tardypad gravatar image

I already reported that problem a long time ago on the mailing list: https://lists.sailfishos.org/pipermail/devel/2014-January/002904.html

link

Comments

It is very sad. Where can I find whole list if standard images like "image://theme/icon-cover-pause", "image://theme/icon-cover-play" and other?

someUser ( 2014-04-28 10:01:02 +0300 )

@someUser on your phone: /usr/share/themes/jolla-ambient/meegotouch/icons/

tokaru ( 2014-05-15 00:49:41 +0300 )
add a comment
0

answered 2014-11-10 11:29:35 +0300

Dmitriy Purgin gravatar image

I encountered the same problem and asked once again on mail list, and now there has been a response from Jolla:

This is unfortunately caused by the cover action architecture. Cover action icons are shown by the compositor on Homescreen side, which cannot easily access application's own qrc files.

link
add a comment
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-04-27 15:35:25 +0300

Seen: 601 times

Last updated: Nov 10 '14