diff --git a/library/ui-styles/src/main/res/values/styles_buttons.xml b/library/ui-styles/src/main/res/values/styles_buttons.xml index c8dcacb8ed..702f427cc0 100644 --- a/library/ui-styles/src/main/res/values/styles_buttons.xml +++ b/library/ui-styles/src/main/res/values/styles_buttons.xml @@ -65,4 +65,8 @@ ?colorOnPrimary + + diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt index c25fe546c3..80f545b166 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt @@ -211,12 +211,14 @@ class RoomListFragment @Inject constructor( } private fun setupCreateRoomButton() { - when (roomListParams.displayMode) { - RoomListDisplayMode.NOTIFICATIONS -> views.createChatFabMenu.isVisible = true - RoomListDisplayMode.PEOPLE -> views.createChatRoomButton.isVisible = true - RoomListDisplayMode.ROOMS -> views.createGroupRoomButton.isVisible = true - RoomListDisplayMode.FILTERED -> Unit // No button in this mode - } + // TODO: Uncomment +// when (roomListParams.displayMode) { +// RoomListDisplayMode.NOTIFICATIONS -> views.createChatFabMenu.isVisible = true +// RoomListDisplayMode.PEOPLE -> views.createChatRoomButton.isVisible = false +// RoomListDisplayMode.PEOPLE -> views.createChatRoomButton.isVisible = true +// RoomListDisplayMode.ROOMS -> views.createGroupRoomButton.isVisible = true +// RoomListDisplayMode.FILTERED -> Unit // No button in this mode +// } views.createChatRoomButton.debouncedClicks { fabCreateDirectChat() diff --git a/vector/src/main/res/drawable/ic_new_chat.xml b/vector/src/main/res/drawable/ic_new_chat.xml new file mode 100644 index 0000000000..ec3ef46fa4 --- /dev/null +++ b/vector/src/main/res/drawable/ic_new_chat.xml @@ -0,0 +1,10 @@ + + + diff --git a/vector/src/main/res/drawable/ic_open_spaces.xml b/vector/src/main/res/drawable/ic_open_spaces.xml new file mode 100644 index 0000000000..180f71f1cd --- /dev/null +++ b/vector/src/main/res/drawable/ic_open_spaces.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/vector/src/main/res/layout/fragment_room_list.xml b/vector/src/main/res/layout/fragment_room_list.xml index a8eec6ff3a..97e2725a1f 100644 --- a/vector/src/main/res/layout/fragment_room_list.xml +++ b/vector/src/main/res/layout/fragment_room_list.xml @@ -55,4 +55,48 @@ tools:layout_marginEnd="144dp" tools:visibility="visible" /> + + + + + + + + diff --git a/vector/src/main/res/values/strings.xml b/vector/src/main/res/values/strings.xml index 770df1f770..4157f173c2 100644 --- a/vector/src/main/res/values/strings.xml +++ b/vector/src/main/res/values/strings.xml @@ -1810,6 +1810,7 @@ Open the create room menu Close the create room menu… Create a new direct conversation + Create a new conversation or room Create a new room Close keys backup banner Jump to bottom