mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 23:05:17 +00:00
7b6281a6c6
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)
35 lines
747 B
QML
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
|
|
}
|
|
}
|
|
}
|