MycroftAI / mycroft-gui

The Graphical User Interface used by the Mycroft Mark II and more
Apache License 2.0
167 stars 57 forks source link

Add a card delegate #89

Closed AIIX closed 3 years ago

AIIX commented 3 years ago

Description

Type of PR

If your PR fits more than one category, there is a high chance you should submit more than one PR. Please consider this carefully before opening the PR. Either delete those that do not apply, or add an x between the square brackets like so: - [x]

Testing

Mycroft.CardDelegate {
    id: rexample
    cardBackgoundOverlayColor: Qt.rgba(0, 0, 0, 0.5)
    cardBackgroundImage: "someimage.png"

    Text {
        color: "white"
        text: "This Is Sample Content"
    }
}

Supported Properties

cardBackgoundOverlayColor: Qt.rgba(255, 255, 255, 0.5) (Default)
cardBackgroundImage: "" (Default: Empty)
cardRadius: 20 (Default As Per Figma)