improved dm ui navbar style
This commit is contained in:
parent
977550c7b0
commit
c5dc9376de
|
@ -165,6 +165,9 @@ class MessageConversationInfoFragment : BaseFragment(), IToolBarSupportFragment,
|
|||
appBarIcon.style = profileImageStyle
|
||||
conversationAvatar.style = profileImageStyle
|
||||
|
||||
toolbarLayout.setStatusBarScrimColor(theme.statusBarColor)
|
||||
coordinatorLayout.setStatusBarBackgroundColor(theme.statusBarColor)
|
||||
|
||||
val avatarBackground = ChameleonUtils.getColorDependent(theme.colorToolbar)
|
||||
appBarIcon.setShapeBackground(avatarBackground)
|
||||
appBarTitle.setTextColor(ChameleonUtils.getColorDependent(theme.colorToolbar))
|
||||
|
@ -214,6 +217,10 @@ class MessageConversationInfoFragment : BaseFragment(), IToolBarSupportFragment,
|
|||
inflater.inflate(R.menu.menu_messages_conversation_info, menu)
|
||||
}
|
||||
|
||||
override fun onApplySystemWindowInsets(insets: Rect) {
|
||||
// No-op
|
||||
}
|
||||
|
||||
override fun onPrepareOptionsMenu(menu: Menu) {
|
||||
menu.setItemAvailability(R.id.clear_messages, true)
|
||||
if (adapter.conversation?.conversation_extras_type == ExtrasType.TWITTER_OFFICIAL) {
|
||||
|
|
|
@ -24,6 +24,7 @@ import android.app.Activity
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.graphics.PorterDuff
|
||||
import android.graphics.Rect
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.support.v4.app.FragmentActivity
|
||||
|
@ -379,6 +380,10 @@ class MessagesConversationFragment : AbsContentListRecyclerViewFragment<Messages
|
|||
mediaPreviewAdapter.setAltText(position, altText)
|
||||
}
|
||||
|
||||
override fun onApplySystemWindowInsets(insets: Rect) {
|
||||
view?.setPadding(insets.left, insets.top, insets.right, insets.bottom)
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
fun onGetMessagesTaskEvent(event: GetMessagesTaskEvent) {
|
||||
if (!event.running && event.taskTag == loadMoreTaskTag) {
|
||||
|
|
|
@ -17,14 +17,15 @@
|
|||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/conversationContainer"
|
||||
<org.mariotaku.twidere.view.TintedStatusRelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/conversationContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="visible"
|
||||
app:setPadding="true"
|
||||
tools:context=".fragment.message.MessagesConversationFragment">
|
||||
|
||||
<include
|
||||
|
@ -180,4 +181,4 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:background="?android:windowContentOverlay"/>
|
||||
</RelativeLayout>
|
||||
</org.mariotaku.twidere.view.TintedStatusRelativeLayout>
|
|
@ -3,6 +3,7 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/coordinatorLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
|
|
Loading…
Reference in New Issue