diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2020-01-28 19:20:39 -0500 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2020-01-28 19:20:39 -0500 |
commit | d205952fc8899d4a4ca8137f0e63da45fd8af1b4 (patch) | |
tree | 32b4f6de9be8892604d4d0b5c67abd5e10d5ecb7 /resources/qml | |
parent | Simplify reply popup logic (diff) | |
download | nheko-d205952fc8899d4a4ca8137f0e63da45fd8af1b4.tar.xz |
Change tooltip palette settings for QML
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/EncryptionIndicator.qml | 7 | ||||
-rw-r--r-- | resources/qml/StatusIndicator.qml | 17 | ||||
-rw-r--r-- | resources/qml/TimelineRow.qml | 3 | ||||
-rw-r--r-- | resources/qml/TimelineView.qml | 8 |
4 files changed, 23 insertions, 12 deletions
diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml index 905cf934..6eb04e34 100644 --- a/resources/qml/EncryptionIndicator.qml +++ b/resources/qml/EncryptionIndicator.qml @@ -7,8 +7,11 @@ Rectangle { color: "transparent" width: 16 height: 16 - ToolTip.visible: ma.containsMouse && indicator.visible - ToolTip.text: qsTr("Encrypted") + ToolTip { + palette: colors + visible: ma.containsMouse && indicator.visible + text: qsTr("Encrypted") + } MouseArea{ id: ma anchors.fill: parent diff --git a/resources/qml/StatusIndicator.qml b/resources/qml/StatusIndicator.qml index 91e8f769..3361640d 100644 --- a/resources/qml/StatusIndicator.qml +++ b/resources/qml/StatusIndicator.qml @@ -8,13 +8,16 @@ Rectangle { color: "transparent" width: 16 height: 16 - ToolTip.visible: ma.containsMouse && state != MtxEvent.Empty - ToolTip.text: switch (state) { - case MtxEvent.Failed: return qsTr("Failed") - case MtxEvent.Sent: return qsTr("Sent") - case MtxEvent.Received: return qsTr("Received") - case MtxEvent.Read: return qsTr("Read") - default: return "" + ToolTip { + palette: colors + visible: ma.containsMouse && state != MtxEvent.Empty + text: switch (state) { + case MtxEvent.Failed: return qsTr("Failed") + case MtxEvent.Sent: return qsTr("Sent") + case MtxEvent.Received: return qsTr("Received") + case MtxEvent.Read: return qsTr("Read") + default: return "" + } } MouseArea{ id: ma diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml index 0868c1b8..c33de470 100644 --- a/resources/qml/TimelineRow.qml +++ b/resources/qml/TimelineRow.qml @@ -54,6 +54,8 @@ RowLayout { Layout.alignment: Qt.AlignRight | Qt.AlignTop Layout.preferredHeight: 16 id: replyButton + hoverEnabled: true + image: ":/icons/icons/ui/mail-reply.png" ToolTip { @@ -68,6 +70,7 @@ RowLayout { Layout.alignment: Qt.AlignRight | Qt.AlignTop Layout.preferredHeight: 16 id: optionsButton + hoverEnabled: true image: ":/icons/icons/ui/vertical-ellipsis.png" ToolTip { diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index a5746703..35d41ea1 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -192,7 +192,7 @@ Item { Rectangle { id: chatFooter - height: Math.max(16, aaaaa.height) + height: Math.max(16, footerContent.height) anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom @@ -201,7 +201,7 @@ Item { color: colors.window Column { - id: aaaaa + id: footerContent anchors.left: parent.left anchors.right: parent.right @@ -235,6 +235,7 @@ Item { anchors.left: parent.left anchors.leftMargin: 10 anchors.right: closeReplyButton.left + anchors.rightMargin: 20 anchors.bottom: parent.bottom modelData: chat.model ? chat.model.getDump(timelineManager.replyingEvent) : {} @@ -245,8 +246,9 @@ Item { id: closeReplyButton anchors.right: parent.right - anchors.rightMargin: 10 + anchors.rightMargin: 15 anchors.top: replyPreview.top + hoverEnabled: true image: ":/icons/icons/ui/remove-symbol.png" ToolTip { |