Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

Label is not pulsing on cover page during a refresh #27

Closed
tigre-bleu opened this issue Feb 3, 2014 · 5 comments
Closed

Label is not pulsing on cover page during a refresh #27

tigre-bleu opened this issue Feb 3, 2014 · 5 comments
Assignees
Milestone

Comments

@tigre-bleu
Copy link
Contributor

I'm not sure but I think I remember that the label on cover page was pulsing during a refresh.

With version 1.6.1, this label is steady and not pulsing anymore.

@buschmann23
Copy link
Member

Yes, it seems to be because of translations. Don't know really why. With integrated English it works, but not with translated strings. Maybe you have the time for a deeper look inside.

@tigre-bleu tigre-bleu self-assigned this Feb 5, 2014
@tigre-bleu
Copy link
Contributor Author

Ok, I'll try to have a look

@tigre-bleu
Copy link
Contributor Author

Looks like it is an issue with Silica CoverBackground Item. I have performed a small test with an empty project and as long as a label is fading, the opacity value is ignored.

I will forward the problem to SailfishOS devel mailing list
capture du 2014-02-05 23 41 36

The Cover code:

import QtQuick 2.0
import Sailfish.Silica 1.0

CoverBackground {
    Label {
        id: testlabel
        color: Theme.highlightColor
        text: "Very Long String"
        anchors { verticalCenter: parent.verticalCenter; left: parent.left; right: parent.right; leftMargin: Theme.paddingLarge; rightMargin: Theme.paddingLarge }
        //width: parent.width
        visible: true
        font.pixelSize: Theme.fontSizeLarge
        maximumLineCount: 1
        truncationMode: TruncationMode.Fade
        textFormat: Text.PlainText
        opacity: 0.2
    }

    CoverActionList {
        id: coverAction

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

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

@tigre-bleu tigre-bleu added the bug label Feb 5, 2014
@buschmann23
Copy link
Member

Good investigation. I do not know how they are doing it on the e-mail app. Because in the german translation the text there is faded, too, but it is pulsing.

@buschmann23 buschmann23 added this to the 1.7 milestone Feb 6, 2014
@tigre-bleu
Copy link
Contributor Author

Applied the workaround proposed on the devel mailing list:

    Label {
        text: ‘Some very long text….’
        truncationMode: TruncationMode.Fade
        color: Theme.rgba(Theme.highlightColor, 0.5 /* = opacity */)
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants