From f9bfda059ff822ccec367204d9e4d8bab0574490 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 5 Jun 2019 16:16:37 +0200 Subject: [PATCH] Theme rework WIP --- .../roomdirectory/PublicRoomsFragment.kt | 2 +- .../picker/RoomDirectoryPickerFragment.kt | 1 - .../main/res/layout/fragment_public_rooms.xml | 40 +++++++++++-------- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/PublicRoomsFragment.kt b/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/PublicRoomsFragment.kt index 5ffae5bb..8010ece2 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/PublicRoomsFragment.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/PublicRoomsFragment.kt @@ -58,7 +58,7 @@ class PublicRoomsFragment : VectorBaseFragment(), PublicRoomsController.Callback override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - vectorBaseActivity.setSupportActionBar(toolbar) + vectorBaseActivity.setSupportActionBar(publicRoomsToolbar) vectorBaseActivity.supportActionBar?.let { it.setDisplayShowHomeEnabled(true) diff --git a/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerFragment.kt b/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerFragment.kt index 6365d39a..51369a91 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerFragment.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/roomdirectory/picker/RoomDirectoryPickerFragment.kt @@ -28,7 +28,6 @@ import im.vector.riotredesign.R import im.vector.riotredesign.core.platform.VectorBaseFragment import im.vector.riotredesign.features.roomdirectory.RoomDirectoryModule import im.vector.riotredesign.features.roomdirectory.RoomDirectoryViewModel -import kotlinx.android.synthetic.main.fragment_public_rooms.toolbar import kotlinx.android.synthetic.main.fragment_room_directory_picker.* import org.koin.android.ext.android.inject import org.koin.android.scope.ext.android.bindScope diff --git a/vector/src/main/res/layout/fragment_public_rooms.xml b/vector/src/main/res/layout/fragment_public_rooms.xml index 03e78260..4e0f97a3 100644 --- a/vector/src/main/res/layout/fragment_public_rooms.xml +++ b/vector/src/main/res/layout/fragment_public_rooms.xml @@ -6,25 +6,21 @@ android:id="@+id/publicRoomsCoordinator" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/pale_grey"> + android:background="?riotx_header_panel_background"> - - - + android:layout_height="match_parent"> -