diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-20 00:37:50 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-20 00:57:52 +0200 |
commit | ccf6a3a669c447c390dafb2ae10486150296d02a (patch) | |
tree | de7b04129df0e39ae0d7febb2b2dc4278ad12660 | |
parent | Allow scrolling to specific sections and order packs in sticker search by mat... (diff) | |
download | nheko-ccf6a3a669c447c390dafb2ae10486150296d02a.tar.xz |
Allow editing stickers from stickerpicker
-rw-r--r-- | resources/qml/emoji/StickerPicker.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/qml/emoji/StickerPicker.qml b/resources/qml/emoji/StickerPicker.qml index 2e1956b1..69f065ed 100644 --- a/resources/qml/emoji/StickerPicker.qml +++ b/resources/qml/emoji/StickerPicker.qml @@ -201,6 +201,7 @@ Menu { model: gridView.model ? gridView.model.sections : null spacing: Nheko.paddingSmall + clip: true delegate: Avatar { height: sidebarAvatarSize @@ -211,10 +212,27 @@ Menu { hoverEnabled: true ToolTip.visible: hovered + ToolTip.delay: Nheko.tooltipDelay ToolTip.text: modelData.name onClicked: gridView.positionViewAtIndex(modelData.firstRowWith, ListView.Beginning) } } + + ImageButton { + Layout.row: 0 + Layout.column: 0 + Layout.preferredWidth: sidebarAvatarSize + Layout.preferredHeight: sidebarAvatarSize + Layout.rightMargin: Nheko.paddingSmall + + image: ":/icons/icons/ui/settings.svg" + + hoverEnabled: true + ToolTip.visible: hovered + ToolTip.delay: Nheko.tooltipDelay + ToolTip.text: qsTr("Change what packs are enabled, remove packs, or create new ones") + onClicked: TimelineManager.openImagePackSettings(stickerPopup.roomid) + } } } |