Skip to content

Hints #8

Description

@thigg

Hi,
I built a hint library for podqast.

It shows stuff like this:
(it is not as ugly usually because the library is supposed to be empty if the hint shows)

Bildschirmfoto_20230624_001

You see the hint at the bottom and a custom coponent in the center.
It is a slideshow with multiple hints.
The slideshow advances automatically or on tap (however it is defined).

You define your hint like this:

SlideShowHint {
    slides: [{
            "text": qsTr("Select if the next item of the playlist should be played automatically"),
            "direction": TouchInteraction.Down,
            "interactionMode": TouchInteraction.EdgeSwipe,
            "loops": 0
        }, {
            "text": qsTr("Click the image to adjust the playrate"),
            "direction": 0,
            "interactionMode": 0,
            "interactionHidden": true,
            "loops": 0
        }]
}

and then you include it like this into your application. It sets a dconf value to show it only once.
If the slideshow gets new pages through an update the new pages are shown.

   SingleTimeHint {
        key: "/apps/ControlPanel/podqast/hints/player_hint"
        hintComponent: "../../components/hints/PlayerHint.qml"
    }

You can also include components like in the screenshot:

 {
            "text": qsTr("...currently playing..."),
            "direction": 0,
            "interactionMode": 0,
            "interactionHidden": true,
            "loops": 2,
            "centeredComponent": "../../components/hints/HintEpisodeImage.qml"
        }

If you are interested to include this into opal, I am willing to help with that.

The library is here and the hints are placed here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions