diff options
| author | xiphon <xiphon@protonmail.com> | 2019-11-19 00:52:47 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-11-19 12:32:53 +0000 |
| commit | d2b9d5690ba7eef47f9ac27d960a0fa932aa40c5 (patch) | |
| tree | c4433a8a08e0a2d67f2a57e22db1b8291a7b78db /components/ContextMenu.qml | |
| parent | cf0e5a811e1ac3cd98607f70d9d479ba735d9353 (diff) | |
| download | monzero-gui-d2b9d5690ba7eef47f9ac27d960a0fa932aa40c5.tar.gz monzero-gui-d2b9d5690ba7eef47f9ac27d960a0fa932aa40c5.tar.xz monzero-gui-d2b9d5690ba7eef47f9ac27d960a0fa932aa40c5.zip | |
ContextMenu: styling, implement ContextMenuItem component
Diffstat (limited to 'components/ContextMenu.qml')
| -rw-r--r-- | components/ContextMenu.qml | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/components/ContextMenu.qml b/components/ContextMenu.qml index 58442e8d..a4ca3209 100644 --- a/components/ContextMenu.qml +++ b/components/ContextMenu.qml @@ -1,6 +1,7 @@ -import QtQuick.Controls 2.2 import QtQuick 2.9 +import QtQuick.Controls 2.2 +import FontAwesome 1.0 import "../components" as MoneroComponents MouseArea { @@ -18,24 +19,20 @@ MouseArea { id: contextMenu background: Rectangle { + border.color: MoneroComponents.Style.buttonBackgroundColorDisabledHover + border.width: 1 radius: 2 - color: MoneroComponents.Style.buttonInlineBackgroundColor + color: MoneroComponents.Style.buttonBackgroundColorDisabled } - font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 14 - width: 50 + padding: 1 + width: 100 x: root.mouseX y: root.mouseY - MenuItem { - id: pasteItem - background: Rectangle { - radius: 2 - color: MoneroComponents.Style.buttonBackgroundColorDisabledHover - opacity: pasteItem.down ? 1 : 0 - } - enabled: root.parent.canPaste + MoneroComponents.ContextMenuItem { + enabled: root.parent.canPaste === true + glyphIcon: FontAwesome.paste onTriggered: root.paste() text: qsTr("Paste") + translationManager.emptyString } |
