| 1 |
Descriptionscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/patches/`020250914~2769642.patch`#Description.: fix most reply rendering issues with qt 6.9.2 |
| 2 |
Authorscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/patches/`020250914~2769642.patch`#Author.: Nicolas Werner <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Originscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/patches/`020250914~2769642.patch`#Origin.: upstream, https://github.com/Nheko-Reborn/nheko/commit/2769642 |
| 4 |
Last-Updatescip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/patches/`020250914~2769642.patch`#Last-Update.: 2025-09-24 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/resources/qml/TimelineBubbleMessageStyle.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/TimelineBubbleMessageStyle.qml`: |
| 8 |
+++ b/resources/qml/TimelineBubbleMessageStyle.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/TimelineBubbleMessageStyle.qml`: |
| 9 |
@@ -210,9 +210,10 @@ |
| 10 |
|
| 11 |
AbstractButton { |
| 12 |
id: replyRow |
| 13 |
|
| 14 |
+ visible: wrapper.replyTo |
| 15 |
+ |
| 16 |
+ leftPadding: Nheko.paddingSmall + 4 |
| 17 |
|
| 18 |
|
| 19 |
anchors.left: parent.left |
| 20 |
anchors.right: parent.right |
| 21 |
|
| 22 |
@@ -225,19 +226,7 @@ |
| 23 |
cursorShape: Qt.PointingHandCursor |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
+ contentItem: Column { |
| 40 |
spacing: 0 |
| 41 |
|
| 42 |
id: replyCol |
| 43 |
@@ -247,7 +236,7 @@ |
| 44 |
|
| 45 |
contentItem: Label { |
| 46 |
id: userName_ |
| 47 |
|
| 48 |
+ text: wrapper.reply?.userName ?? 'missing name' |
| 49 |
color: replyRow.userColor |
| 50 |
textFormat: Text.RichText |
| 51 |
width: wrapper.maxWidth |
| 52 |
@@ -259,12 +248,20 @@ |
| 53 |
replyUserButton, |
| 54 |
wrapper.reply, |
| 55 |
] |
| 56 |
|
| 57 |
} |
| 58 |
|
| 59 |
background: Rectangle { |
| 60 |
//width: replyRow.implicitContentWidth |
| 61 |
color: Qt.tint(palette.base, Qt.hsla(replyRow.userColor.hslHue, 0.5, replyRow.userColor.hslLightness, 0.1)) |
| 62 |
+ Rectangle { |
| 63 |
+ anchors.top: parent.top |
| 64 |
+ anchors.bottom: parent.bottom |
| 65 |
+ anchors.left: parent.left |
| 66 |
+ |
| 67 |
+ id: replyLine |
| 68 |
+ color: replyRow.userColor |
| 69 |
+ width: 4 |
| 70 |
+ } |
| 71 |
} |
| 72 |
|
| 73 |
onClicked: { |
| 74 |
--- a/resources/qml/TimelineDefaultMessageStyle.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/TimelineDefaultMessageStyle.qml`: |
| 75 |
+++ b/resources/qml/TimelineDefaultMessageStyle.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/TimelineDefaultMessageStyle.qml`: |
| 76 |
@@ -192,9 +192,9 @@ |
| 77 |
|
| 78 |
AbstractButton { |
| 79 |
id: replyRow |
| 80 |
|
| 81 |
+ visible: wrapper.replyTo |
| 82 |
|
| 83 |
|
| 84 |
+ leftPadding: Nheko.paddingSmall + 4 |
| 85 |
|
| 86 |
property color userColor: TimelineManager.userColor(wrapper.reply?.userId ?? '', palette.base) |
| 87 |
|
| 88 |
@@ -205,19 +205,7 @@ |
| 89 |
cursorShape: Qt.PointingHandCursor |
| 90 |
} |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
+ contentItem: Column { |
| 106 |
spacing: 0 |
| 107 |
|
| 108 |
id: replyCol |
| 109 |
@@ -227,7 +215,7 @@ |
| 110 |
|
| 111 |
contentItem: Label { |
| 112 |
id: userName_ |
| 113 |
|
| 114 |
+ text: wrapper.reply?.userName ?? 'missing name' |
| 115 |
color: replyRow.userColor |
| 116 |
textFormat: Text.RichText |
| 117 |
width: wrapper.maxWidth |
| 118 |
@@ -239,12 +227,20 @@ |
| 119 |
replyUserButton, |
| 120 |
wrapper.reply, |
| 121 |
] |
| 122 |
|
| 123 |
} |
| 124 |
|
| 125 |
background: Rectangle { |
| 126 |
|
| 127 |
color: Qt.tint(palette.base, Qt.hsla(replyRow.userColor.hslHue, 0.5, replyRow.userColor.hslLightness, 0.1)) |
| 128 |
+ |
| 129 |
+ Rectangle { |
| 130 |
+ anchors.top: parent.top |
| 131 |
+ anchors.bottom: parent.bottom |
| 132 |
+ anchors.left: parent.left |
| 133 |
+ |
| 134 |
+ id: replyLine |
| 135 |
+ color: replyRow.userColor |
| 136 |
+ width: 4 |
| 137 |
+ } |
| 138 |
} |
| 139 |
|
| 140 |
onClicked: { |
| 141 |
--- a/resources/qml/TopBar.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/TopBar.qml`: |
| 142 |
+++ b/resources/qml/TopBar.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/TopBar.qml`: |
| 143 |
@@ -312,7 +312,7 @@ |
| 144 |
ImageButton { |
| 145 |
id: deletePinButton |
| 146 |
|
| 147 |
|
| 148 |
+ Layout.alignment: Qt.AlignTop | Qt.AlignRight |
| 149 |
Layout.preferredHeight: 16 |
| 150 |
Layout.preferredWidth: 16 |
| 151 |
ToolTip.text: qsTr("Unpin") |
| 152 |
--- a/resources/qml/delegates/Reply.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/delegates/Reply.qml`: |
| 153 |
+++ b/resources/qml/delegates/Reply.qmlscip-debian debian nheko 0.12.1-1+ds+~0.10.1+ds+~1.0.0+ds+~0.3.2+ds-1 nheko/upstream/`resources/qml/delegates/Reply.qml`: |
| 154 |
@@ -5,6 +5,7 @@ |
| 155 |
import QtQuick |
| 156 |
import QtQuick.Controls |
| 157 |
import QtQuick.Window |
| 158 |
+import QtQuick.Layouts |
| 159 |
import im.nheko |
| 160 |
import "../" |
| 161 |
|
| 162 |
@@ -21,7 +22,11 @@ |
| 163 |
property string userId: eventId ? room.dataById(eventId, Room.UserId, "") : "" |
| 164 |
property string userName: eventId ? room.dataById(eventId, Room.UserName, "") : "" |
| 165 |
implicitHeight: replyContainer.height |
| 166 |
|
| 167 |
+ implicitWidth: replyContainer.implicitWidth + leftPadding + rightPadding |
| 168 |
+ |
| 169 |
+ leftPadding: 4 + Nheko.paddingSmall |
| 170 |
+ rightPadding: Nheko.paddingSmall |
| 171 |
+ |
| 172 |
required property int maxWidth |
| 173 |
property bool limitHeight: false |
| 174 |
|
| 175 |
@@ -31,14 +36,14 @@ |
| 176 |
} |
| 177 |
|
| 178 |
onClicked: { |
| 179 |
|
| 180 |
+ let link = timelineEvent.main.linkAt != undefined && timelineEvent.main.linkAt(pressX-colorline.width, pressY - userName_.implicitHeight); |
| 181 |
if (link) { |
| 182 |
Nheko.openLink(link) |
| 183 |
} else { |
| 184 |
room.showEvent(r.eventId) |
| 185 |
} |
| 186 |
} |
| 187 |
|
| 188 |
+ onPressAndHold: replyContextMenu.show(timelineEvent.main.copyText, timelineEvent.main.linkAt(pressX-colorline.width, pressY - userName_.implicitHeight), r.eventId) |
| 189 |
|
| 190 |
contentItem: TimelineEvent { |
| 191 |
id: timelineEvent |
| 192 |
@@ -51,49 +56,36 @@ |
| 193 |
maxWidth: r.maxWidth |
| 194 |
limitAsReply: r.limitHeight |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
+ data: Column { |
| 199 |
id: replyContainer |
| 200 |
|
| 201 |
|
| 202 |
+ spacing: 0 |
| 203 |
|
| 204 |
clip: r.limitHeight |
| 205 |
|
| 206 |
height: r.limitHeight ? Math.min( timelineEvent.main?.height, timelineView.height / 10) + Nheko.paddingSmall + usernameBtn.height : undefined |
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
+ // FIXME: I have no idea, why this name doesn't render in the reply popup on Qt 6.9.2 |
| 234 |
+ AbstractButton { |
| 235 |
+ id: usernameBtn |
| 236 |
+ |
| 237 |
+ visible: r.eventId |
| 238 |
+ |
| 239 |
+ contentItem: Label { |
| 240 |
+ visible: r.eventId |
| 241 |
+ id: userName_ |
| 242 |
+ text: r.userName |
| 243 |
+ color: r.userColor |
| 244 |
+ textFormat: Text.RichText |
| 245 |
+ width: timelineEvent.main?.width |
| 246 |
} |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
+ onClicked: room.openUserProfile(r.userId) |
| 252 |
} |
| 253 |
|
| 254 |
+ data: [ |
| 255 |
+ usernameBtn, timelineEvent.main, |
| 256 |
+ ] |
| 257 |
} |
| 258 |
+ |
| 259 |
} |
| 260 |
|
| 261 |
background: Rectangle { |
| 262 |
@@ -103,6 +95,16 @@ |
| 263 |
property color userColor: TimelineManager.userColor(r.userId, palette.base) |
| 264 |
property color bgColor: palette.base |
| 265 |
color: Qt.tint(bgColor, Qt.hsla(userColor.hslHue, 0.5, userColor.hslLightness, 0.1)) |
| 266 |
+ |
| 267 |
+ Rectangle { |
| 268 |
+ anchors.top: parent.top |
| 269 |
+ anchors.bottom: parent.bottom |
| 270 |
+ anchors.left: parent.left |
| 271 |
+ |
| 272 |
+ id: colorline |
| 273 |
+ color: backgroundItem.userColor |
| 274 |
+ width: 4 |
| 275 |
+ } |
| 276 |
} |
| 277 |
|
| 278 |
} |