Merge branch 'master' into work/srevinsaju/command-completion
This commit is contained in:
@@ -46,6 +46,7 @@ Popup {
|
|||||||
implicitHeight: Math.min(completionListView.contentHeight, Kirigami.Units.gridUnit * 5)
|
implicitHeight: Math.min(completionListView.contentHeight, Kirigami.Units.gridUnit * 5)
|
||||||
|
|
||||||
contentItem: ScrollView {
|
contentItem: ScrollView {
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
ListView {
|
ListView {
|
||||||
id: completionListView
|
id: completionListView
|
||||||
implicitWidth: contentWidth
|
implicitWidth: contentWidth
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ a{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-pill{}
|
.user-pill{}
|
||||||
</style>" + (isEmote ? "* <a href='https://matrix.to/#/" + author.id + "' style='color: " + author.color + "'>" + author.displayName + "</a> " : "") + model.display + (isEdited ? (" <span style=\"color: " + Kirigami.Theme.disabledTextColor + "\">" + "<span style='font-size: " + Kirigani.Theme.defaultFont.pixelSize +"px'>" + i18n(" (edited)") + "</span>") : "")
|
</style>" + (isEmote ? "* <a href='https://matrix.to/#/" + author.id + "' style='color: " + author.color + "'>" + author.displayName + "</a> " : "") + model.display + (isEdited ? (" <span style=\"color: " + Kirigami.Theme.disabledTextColor + "\">" + "<span style='font-size: " + Kirigami.Theme.defaultFont.pixelSize +"px'>" + i18n(" (edited)") + "</span>") : "")
|
||||||
|
|
||||||
color: Kirigami.Theme.textColor
|
color: Kirigami.Theme.textColor
|
||||||
font.pointSize: !replyVisible && isEmoji.test(model.display) ? Kirigami.Theme.defaultFont.pointSize * 4 : Kirigami.Theme.defaultFont.pointSize
|
font.pointSize: !replyVisible && isEmoji.test(model.display) ? Kirigami.Theme.defaultFont.pointSize * 4 : Kirigami.Theme.defaultFont.pointSize
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import NeoChat.Component 1.0
|
|||||||
import NeoChat.Dialog 1.0
|
import NeoChat.Dialog 1.0
|
||||||
|
|
||||||
QQC2.ItemDelegate {
|
QQC2.ItemDelegate {
|
||||||
|
id: messageDelegate
|
||||||
default property alias innerObject : column.children
|
default property alias innerObject : column.children
|
||||||
readonly property bool sentByMe: author.isLocalUser
|
readonly property bool sentByMe: author.isLocalUser
|
||||||
readonly property bool darkBackground: !sentByMe
|
readonly property bool darkBackground: !sentByMe
|
||||||
@@ -71,6 +72,7 @@ QQC2.ItemDelegate {
|
|||||||
Layout.rightMargin: Kirigami.Units.smallSpacing
|
Layout.rightMargin: Kirigami.Units.smallSpacing
|
||||||
Layout.bottomMargin: 0
|
Layout.bottomMargin: 0
|
||||||
Layout.topMargin: model.showAuthor ? Kirigami.Units.smallSpacing : 0
|
Layout.topMargin: model.showAuthor ? Kirigami.Units.smallSpacing : 0
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Kirigami.Avatar {
|
Kirigami.Avatar {
|
||||||
Layout.minimumWidth: Kirigami.Units.gridUnit * 2
|
Layout.minimumWidth: Kirigami.Units.gridUnit * 2
|
||||||
@@ -104,15 +106,15 @@ QQC2.ItemDelegate {
|
|||||||
visible: !model.showAuthor && Config.showAvatarInTimeline
|
visible: !model.showAuthor && Config.showAvatarInTimeline
|
||||||
}
|
}
|
||||||
|
|
||||||
QQC2.ItemDelegate {
|
QQC2.Control {
|
||||||
id: bubble
|
id: bubble
|
||||||
Layout.maximumWidth: mainColumn.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 2
|
|
||||||
implicitHeight: contentItem.implicitHeight + topPadding
|
implicitHeight: contentItem.implicitHeight + topPadding
|
||||||
topPadding: Kirigami.Units.largeSpacing
|
topPadding: Kirigami.Units.largeSpacing
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
Layout.maximumWidth: mainColumn.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 2
|
||||||
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
id: column
|
id: column
|
||||||
@@ -173,6 +175,9 @@ QQC2.ItemDelegate {
|
|||||||
border.width: Kirigami.Units.devicePixelRatio
|
border.width: Kirigami.Units.devicePixelRatio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loader {
|
Loader {
|
||||||
id: loader
|
id: loader
|
||||||
|
|||||||
@@ -377,6 +377,7 @@ Kirigami.ScrollablePage {
|
|||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: "emote"
|
roleValue: "emote"
|
||||||
delegate: TimelineContainer {
|
delegate: TimelineContainer {
|
||||||
|
id: emoteContainer
|
||||||
width: messageListView.width
|
width: messageListView.width
|
||||||
isLoaded: timelineDelegateChooser.delegateLoaded
|
isLoaded: timelineDelegateChooser.delegateLoaded
|
||||||
isEmote: true
|
isEmote: true
|
||||||
@@ -387,8 +388,8 @@ Kirigami.ScrollablePage {
|
|||||||
innerObject: TextDelegate {
|
innerObject: TextDelegate {
|
||||||
isEmote: true
|
isEmote: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: emoteContainer.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 4
|
||||||
Layout.rightMargin: Kirigami.Units.largeSpacing
|
Layout.rightMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.bottomMargin: Kirigami.Units.largeSpacing * 2
|
Layout.bottomMargin: Kirigami.Units.largeSpacing * 2
|
||||||
TapHandler {
|
TapHandler {
|
||||||
@@ -406,6 +407,7 @@ Kirigami.ScrollablePage {
|
|||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: "message"
|
roleValue: "message"
|
||||||
delegate: TimelineContainer {
|
delegate: TimelineContainer {
|
||||||
|
id: messageContainer
|
||||||
width: messageListView.width
|
width: messageListView.width
|
||||||
isLoaded: timelineDelegateChooser.delegateLoaded
|
isLoaded: timelineDelegateChooser.delegateLoaded
|
||||||
onReplyClicked: goToEvent(eventID)
|
onReplyClicked: goToEvent(eventID)
|
||||||
@@ -414,6 +416,7 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
innerObject: TextDelegate {
|
innerObject: TextDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: messageContainer.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 4
|
||||||
Layout.rightMargin: Kirigami.Units.largeSpacing
|
Layout.rightMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.bottomMargin: Kirigami.Units.largeSpacing
|
Layout.bottomMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
@@ -432,6 +435,7 @@ Kirigami.ScrollablePage {
|
|||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: "notice"
|
roleValue: "notice"
|
||||||
delegate: TimelineContainer {
|
delegate: TimelineContainer {
|
||||||
|
id: noticeContainer
|
||||||
width: messageListView.width
|
width: messageListView.width
|
||||||
isLoaded: timelineDelegateChooser.delegateLoaded
|
isLoaded: timelineDelegateChooser.delegateLoaded
|
||||||
onReplyClicked: goToEvent(eventID)
|
onReplyClicked: goToEvent(eventID)
|
||||||
@@ -439,6 +443,7 @@ Kirigami.ScrollablePage {
|
|||||||
hoverComponent: hoverActions
|
hoverComponent: hoverActions
|
||||||
innerObject: TextDelegate {
|
innerObject: TextDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: noticeContainer.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 4
|
||||||
Layout.rightMargin: Kirigami.Units.largeSpacing
|
Layout.rightMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.bottomMargin: Kirigami.Units.largeSpacing * 2
|
Layout.bottomMargin: Kirigami.Units.largeSpacing * 2
|
||||||
|
|||||||
@@ -79,8 +79,8 @@
|
|||||||
<p xml:lang="uk">Клієнт matrix, децентралізованого протоколу обміну даними.</p>
|
<p xml:lang="uk">Клієнт matrix, децентралізованого протоколу обміну даними.</p>
|
||||||
<p xml:lang="x-test">xxA client for matrix, the decentralized communication protocol.xx</p>
|
<p xml:lang="x-test">xxA client for matrix, the decentralized communication protocol.xx</p>
|
||||||
</description>
|
</description>
|
||||||
<url type="homepage">https://kde.org</url>
|
<url type="homepage">https://apps.kde.org/neochat/</url>
|
||||||
<url type="bugtracker">https://bugs.kde.org</url>
|
<url type="bugtracker">https://invent.kde.org/network/neochat/-/issues</url>
|
||||||
<categories>
|
<categories>
|
||||||
<category>Network</category>
|
<category>Network</category>
|
||||||
</categories>
|
</categories>
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ void ActionsHandler::postMessage(const QString &text,
|
|||||||
"#aa00ff", "#d400ff", "#ff00ff", "#ff00d4", "#ff00aa", "#ff0080", "#ff0055", "#ff002b", "#ff0000"};
|
"#aa00ff", "#d400ff", "#ff00ff", "#ff00d4", "#ff00aa", "#ff0080", "#ff0055", "#ff002b", "#ff0000"};
|
||||||
|
|
||||||
if (cleanedText.indexOf(shrugPrefix) == 0) {
|
if (cleanedText.indexOf(shrugPrefix) == 0) {
|
||||||
cleanedText = QStringLiteral("¯\\\\_(ツ)\\_/¯") % cleanedText.remove(0, shrugPrefix.length());
|
cleanedText = QStringLiteral("¯\\_(ツ)_/¯") % cleanedText.remove(0, shrugPrefix.length());
|
||||||
m_room->postHtmlMessage(cleanedText, cleanedText, messageEventType, replyEventId, editEventId);
|
m_room->postHtmlMessage(cleanedText, cleanedText, messageEventType, replyEventId, editEventId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user