mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
27 lines
No EOL
642 B
QML
27 lines
No EOL
642 B
QML
import QtQuick
|
|
import Linphone
|
|
|
|
Item {
|
|
id: mainItem
|
|
property int borderWidth: 1 * DefaultStyle.dp
|
|
property alias borderGradient: border.gradient
|
|
property alias gradient: fill.gradient
|
|
property alias color: fill.color
|
|
property int radius
|
|
Rectangle {
|
|
id: border
|
|
radius: mainItem.radius
|
|
anchors.fill: parent
|
|
gradient: Gradient {
|
|
orientation: Gradient.Horizontal
|
|
GradientStop { position: 0.0; color: DefaultStyle.grey_0 }
|
|
GradientStop { position: 1.0; color: DefaultStyle.grey_100 }
|
|
}
|
|
Rectangle {
|
|
id: fill
|
|
anchors.fill: parent
|
|
anchors.margins: mainItem.borderWidth
|
|
radius: mainItem.radius
|
|
}
|
|
}
|
|
} |