Alex Jbanca 7b6281a6c6 feat: Implement the new Link Preview cards
Implementing the new design for the following preview types:
 - Community and channel
 - General link previews (Youtube, github etc)
 - Image link preview

The storybook implementation has all these links available for testing.
Missing features in the app:
 - Logo (favicon)
 - Community card
 - Image preview details (title, domain name)
2023-09-18 09:28:22 +03:00

35 lines
747 B
QML

import QtQuick 2.13
import QtQuick.Controls 2.15
import utils 1.0
import shared 1.0
Control {
id: root
property bool leftTail: true
property real borderWidth: 1
readonly property Component clippingEffect: CalloutOpacityMask {
width: parent.width
height: parent.height
leftTail: root.leftTail
}
background: Rectangle {
color: Style.current.border
layer.enabled: true
layer.effect: root.clippingEffect
Rectangle {
id: clipping
anchors.fill: parent
anchors.margins: root.borderWidth
color: Style.current.background
layer.enabled: true
layer.effect: root.clippingEffect
}
}
}