QML ui fixes
This commit is contained in:
parent
377bac67be
commit
ca233be127
6 changed files with 87 additions and 65 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ import QtQuick.Controls 2.12
|
|||
Image {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.bottomMargin: 30
|
||||
// width: GC.trW(150)
|
||||
// height: GC.trH(22)
|
||||
// y: GC.trY(590)
|
||||
source: "qrc:/images/AmneziaVPN.png"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue