Compare commits
1 Commits
work/redst
...
work/nvrwh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8b269869c |
@@ -224,7 +224,8 @@ Kirigami.Page {
|
||||
Kirigami.ListSectionHeader {
|
||||
height: implicitHeight
|
||||
width: listView.width
|
||||
label: roomListModel.categoryName(section)
|
||||
label: root.connection.localUserId == "@nicofee:matrix.org" && roomListModel.categoryName(section) == "Friends" ? i18n("People I vaguely sometimes chat with and Nate Graham") : roomListModel.categoryName(section)
|
||||
Component.onCompleted: _contents[0].wrapMode = Text.Wrap
|
||||
action: Kirigami.Action {
|
||||
onTriggered: roomListModel.setCategoryVisible(section, !roomListModel.categoryVisible(section))
|
||||
}
|
||||
@@ -235,7 +236,7 @@ Kirigami.Page {
|
||||
width: Kirigami.Units.iconSizes.small
|
||||
height: Kirigami.Units.iconSizes.small
|
||||
}
|
||||
text: roomListModel.categoryVisible(section) ? i18nc("Collapse <section name>", "Collapse %1", roomListModel.categoryName(section)) : i18nc("Expand <section name", "Expand %1", roomListModel.categoryName(section))
|
||||
text: roomListModel.categoryVisible(section) ? i18nc("Collapse <section name>", "Collapse %1", root.connection.localUserId == "@nicofee:matrix.org" && roomListModel.categoryName(section) == "Friends" ? i18n("People I vaguely sometimes chat with and Nate Graham") : roomListModel.categoryName(section)) : i18nc("Expand <section name", "Expand %1", root.connection.localUserId == "@nicofee:matrix.org" && roomListModel.categoryName(section) == "Friends" ? i18n("People I vaguely sometimes chat with and Nate Graham") : roomListModel.categoryName(section))
|
||||
display: QQC2.Button.IconOnly
|
||||
|
||||
QQC2.ToolTip.text: text
|
||||
|
||||
@@ -102,7 +102,7 @@ QQC2.Control {
|
||||
Layout.maximumHeight: width - Kirigami.Units.smallSpacing
|
||||
Layout.topMargin: Kirigami.Units.smallSpacing / 2
|
||||
|
||||
text: i18nc("@button View all one-on-one chats with your friends.", "Friends")
|
||||
text: root.connection.localUserId == "@nicofee:matrix.org" ? i18n("People I vaguely sometimes chat with and Nate Graham") : i18nc("@button View all one-on-one chats with your friends.", "Friends")
|
||||
contentItem: Kirigami.Icon {
|
||||
source: "system-users"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user