diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt index 72623614..55d2a1fe 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt @@ -99,11 +99,15 @@ class ThreadActivity : SimpleActivity() { private var isAttachmentPickerVisible = false override fun onCreate(savedInstanceState: Bundle?) { + isMaterialActivity = true super.onCreate(savedInstanceState) setContentView(R.layout.activity_thread) setupOptionsMenu() refreshMenuItems() + updateMaterialActivityViews(thread_coordinator, null, false) + setupMaterialScrollListener(null, thread_toolbar) + val extras = intent.extras if (extras == null) { toast(R.string.unknown_error_occurred) @@ -147,7 +151,7 @@ class ThreadActivity : SimpleActivity() { override fun onResume() { super.onResume() - setupToolbar(thread_toolbar, NavigationIcon.Arrow) + setupToolbar(thread_toolbar, NavigationIcon.Arrow, statusBarColor = getProperBackgroundColor()) val smsDraft = getSmsDraft(threadId) if (smsDraft != null) { @@ -164,6 +168,10 @@ class ThreadActivity : SimpleActivity() { } } } + + val bottomBarColor = getBottomNavigationBackgroundColor() + thread_send_message_holder.setBackgroundColor(bottomBarColor) + updateNavigationBarColor(bottomBarColor) } override fun onPause() { @@ -1406,9 +1414,8 @@ class ThreadActivity : SimpleActivity() { private fun setupScheduleSendUi() { val textColor = getProperTextColor() scheduled_message_holder.background.applyColorFilter(getProperPrimaryColor().darkenColor()) + scheduled_message_icon.applyColorFilter(textColor) scheduled_message_button.apply { - val clockDrawable = ResourcesCompat.getDrawable(resources, R.drawable.ic_clock_vector, theme)?.apply { applyColorFilter(textColor) } - setCompoundDrawablesWithIntrinsicBounds(clockDrawable, null, null, null) setTextColor(textColor) setOnClickListener { launchScheduleSendDialog(scheduledDateTime) diff --git a/app/src/main/res/layout/activity_thread.xml b/app/src/main/res/layout/activity_thread.xml index 42448012..9329a50e 100644 --- a/app/src/main/res/layout/activity_thread.xml +++ b/app/src/main/res/layout/activity_thread.xml @@ -6,28 +6,21 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - - + android:layout_height="?attr/actionBarSize" + android:background="@color/color_primary" + app:menu="@menu/menu_thread" + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> + android:layout_marginTop="?attr/actionBarSize" + android:fillViewport="true" + android:scrollbars="none"> @@ -98,17 +91,18 @@ + @@ -127,203 +121,215 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + app:layout_constraintStart_toStartOf="parent"> - + + + + + + + + + + + + + + + + + + + + + + + + - + android:layout_height="@dimen/divider_height" + android:layout_alignParentStart="true" + android:layout_alignParentEnd="true" + android:background="@color/divider_grey" + android:importantForAccessibility="no" + app:layout_constraintBottom_toTopOf="@id/attachment_picker_holder" /> + + + + + +