mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
37 lines
1 KiB
QML
37 lines
1 KiB
QML
import QtQuick
|
|
import QtQuick.Controls.Basic as Control
|
|
import QtQuick.Effects
|
|
import QtQuick.Layouts
|
|
import Linphone
|
|
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
|
|
|
ColumnLayout {
|
|
id: labelButton
|
|
// property alias image: buttonImg
|
|
property alias button: button
|
|
property alias text: text
|
|
property string label
|
|
spacing: Math.round(8 * DefaultStyle.dp)
|
|
Button {
|
|
id: button
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.preferredWidth: Math.round(56 * DefaultStyle.dp)
|
|
Layout.preferredHeight: Math.round(56 * DefaultStyle.dp)
|
|
topPadding: Math.round(16 * DefaultStyle.dp)
|
|
bottomPadding: Math.round(16 * DefaultStyle.dp)
|
|
leftPadding: Math.round(16 * DefaultStyle.dp)
|
|
rightPadding: Math.round(16 * DefaultStyle.dp)
|
|
contentImageColor: DefaultStyle.main2_600
|
|
radius: Math.round(40 * DefaultStyle.dp)
|
|
style: ButtonStyle.grey
|
|
}
|
|
Text {
|
|
id: text
|
|
Layout.alignment: Qt.AlignHCenter
|
|
text: labelButton.label
|
|
font {
|
|
pixelSize: Typography.p1.pixelSize
|
|
weight: Typography.p1.weight
|
|
}
|
|
}
|
|
}
|