From a767c84f74812032fa88b67eef99e0e1f720433e Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 22 Jul 2019 14:05:51 +1000 Subject: [PATCH] Fix remaining UI issues --- res/layout/activity_new_conversation.xml | 2 -- res/values/colors.xml | 9 +++++++-- res/values/themes.xml | 4 ++-- .../securesms/loki/NewConversationActivity.kt | 9 +++++++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/res/layout/activity_new_conversation.xml b/res/layout/activity_new_conversation.xml index f2f28a1b80..e929910b48 100644 --- a/res/layout/activity_new_conversation.xml +++ b/res/layout/activity_new_conversation.xml @@ -6,7 +6,6 @@ android:layout_height="match_parent" android:layout_marginStart="32dp" android:layout_marginEnd="32dp" - android:background="@color/white" android:orientation="vertical"> - #ff5bca5b - #ff5bca5b + + #78be20 + #0a0a0a + + + @color/loki_green + @color/loki_green #555bca5b #882090ea diff --git a/res/values/themes.xml b/res/values/themes.xml index 093d7a6139..9ce3781a0a 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -281,7 +281,7 @@ @color/textsecure_primary_dark @color/signal_primary_dark @color/signal_primary_dark - @color/core_grey_95 + @color/loki_darkest_gray @style/AppCompatAlertDialogStyleDark @style/AppCompatDialogStyleDark @@ -339,7 +339,7 @@ @color/textsecure_primary_dark @drawable/divet_lower_right_light - @color/core_grey_95 + @color/loki_darkest_gray #22ffffff #ffeeeeee @drawable/compose_background_dark diff --git a/src/org/thoughtcrime/securesms/loki/NewConversationActivity.kt b/src/org/thoughtcrime/securesms/loki/NewConversationActivity.kt index f4a044c164..3942d300e4 100644 --- a/src/org/thoughtcrime/securesms/loki/NewConversationActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/NewConversationActivity.kt @@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.loki import android.content.Intent import android.os.Bundle +import android.view.MenuItem import android.widget.Toast import kotlinx.android.synthetic.main.activity_new_conversation.* import org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity @@ -33,6 +34,14 @@ class NewConversationActivity : PassphraseRequiredActionBarActivity() { dynamicTheme.onResume(this) } + override fun onOptionsItemSelected(item: MenuItem): Boolean { + if (item.itemId == android.R.id.home) { + onBackPressed() + return true + } + return super.onOptionsItemSelected(item) + } + private fun startNewConversationIfPossible() { val hexEncodedPublicKey = publicKeyEditText.text.toString().trim() if (PublicKeyValidation.isValid(hexEncodedPublicKey)) {