mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 02:58:55 +00:00
Improve left tab menu Move settings to right panel instead of advanced Create MyProfile container Improve Contacts and Security
58 lines
1.4 KiB
QML
58 lines
1.4 KiB
QML
import QtQuick 2.13
|
|
import "../../../../../imports"
|
|
import "../../../../../shared"
|
|
|
|
|
|
Rectangle {
|
|
property bool hovered: false
|
|
property bool active: false
|
|
property url source: "../../../../img/add_watch_only.svg"
|
|
property string text: "My Profile"
|
|
property var onClicked: function () {}
|
|
|
|
id: menuButton
|
|
color: hovered || active ? Style.current.secondaryBackground : Style.current.transparent
|
|
border.width: 0
|
|
height: 48
|
|
width: parent.width
|
|
radius: Style.current.radius
|
|
|
|
SVGImage {
|
|
id: iconImage
|
|
source: menuButton.source
|
|
height: 22
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: Style.current.padding
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
fillMode: Image.PreserveAspectFit
|
|
}
|
|
|
|
StyledText {
|
|
text: menuButton.text
|
|
anchors.left: iconImage.right
|
|
anchors.leftMargin: Style.current.padding
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
MouseArea {
|
|
cursorShape: Qt.PointingHandCursor
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
onEntered: {
|
|
menuButton.hovered = true
|
|
}
|
|
onExited: {
|
|
menuButton.hovered = false
|
|
}
|
|
onClicked: function () {
|
|
menuButton.onClicked()
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;formeditorColor:"#ffffff";height:48;width:300}
|
|
}
|
|
##^##*/
|