Improve the bottom mobile navigation bar

The previous set of actions seems like a random selection, how many
rooms is someone creating to be that important?

I have redone it to have way fewer actions, mostly notification and
settings.
This commit is contained in:
Joshua Goins
2026-01-13 18:36:49 -05:00
parent 74c12e89ea
commit 2bacbe7ac7
4 changed files with 42 additions and 50 deletions

View File

@@ -29,7 +29,17 @@ RowLayout {
// Roughly equivalent to what Kirigami does for its built-in headings
Layout.leftMargin: Kirigami.Units.gridUnit - Kirigami.Units.mediumSpacing
visible: !root.collapsed
text: i18nc("@title", "Rooms")
text: {
if (Kirigami.Settings.isMobile) {
if (RoomManager.currentSpace === '') {
return i18nc("@title Home space", "Home");
} else if(RoomManager.currentSpace === 'DM') {
return i18nc("@title", "Direct Messages");
}
return root.connection.room(RoomManager.currentSpace).displayName;
}
return i18nc("@title List of rooms", "Rooms");
}
}
Item {
Layout.fillWidth: true