summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-05-20 00:37:50 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-05-20 00:57:52 +0200
commitccf6a3a669c447c390dafb2ae10486150296d02a (patch)
treede7b04129df0e39ae0d7febb2b2dc4278ad12660 /resources/qml
parentAllow scrolling to specific sections and order packs in sticker search by mat... (diff)
downloadnheko-ccf6a3a669c447c390dafb2ae10486150296d02a.tar.xz
Allow editing stickers from stickerpicker
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/emoji/StickerPicker.qml18
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)
+            }
         }
 
     }