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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user