Allow editing stickers from stickerpicker

stickerrows
Nicolas Werner 2 years ago
parent c1b7c026e4
commit 4ef1d29f38
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 18
      resources/qml/emoji/StickerPicker.qml

@ -201,6 +201,7 @@ Menu {
model: gridView.model ? gridView.model.sections : null model: gridView.model ? gridView.model.sections : null
spacing: Nheko.paddingSmall spacing: Nheko.paddingSmall
clip: true
delegate: Avatar { delegate: Avatar {
height: sidebarAvatarSize height: sidebarAvatarSize
@ -211,10 +212,27 @@ Menu {
hoverEnabled: true hoverEnabled: true
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.delay: Nheko.tooltipDelay
ToolTip.text: modelData.name ToolTip.text: modelData.name
onClicked: gridView.positionViewAtIndex(modelData.firstRowWith, ListView.Beginning) 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)
}
} }
} }

Loading…
Cancel
Save