lqml/examples/cl-repl/qml/ext/MenuBack.qml
2022-04-09 19:12:45 +02:00

41 lines
716 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
Rectangle {
id: menuBack
width: main.width
height: backButton.height
color: "#f0f0f0"
property string label
signal pressed()
Button {
id: backButton
height: main.small ? 40 : 46
width: 80
background: Rectangle {
Text {
id: iconBack
x: 10
height: backButton.height
verticalAlignment: Text.AlignVCenter
font.family: fontAwesome.name
font.pixelSize: 32
color: "#007aff"
text: "\uf104"
}
color: menuBack.color
}
onPressed: parent.pressed()
}
Text {
anchors.centerIn: parent
text: menuBack.label
font.weight: Font.DemiBold
}
}