QML ui fixes

This commit is contained in:
pokamest 2021-10-21 19:49:53 +03:00
parent 377bac67be
commit ca233be127
6 changed files with 87 additions and 65 deletions

View file

@ -1,10 +1,33 @@
ImageButtonType {
import QtQuick 2.12
import QtQuick.Controls 2.12
Button {
id: root
x: 10
y: 10
width: 26
height: 20
icon.source: "qrc:/images/arrow_left.png"
y: 5
width: 41
height: 35
hoverEnabled: true
property bool containsMouse: hovered
background: Item {}
MouseArea {
id: mouseArea
anchors.fill: parent
enabled: false
cursorShape: Qt.PointingHandCursor
}
onClicked: {
UiLogic.closePage()
}
contentItem: Image {
id: img
source: "qrc:/images/arrow_left.png"
anchors.fill: root
anchors.margins: root.containsMouse ? 9 : 10
}
}