mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
41 lines
716 B
QML
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
|
|
}
|
|
}
|