diff --git a/app/k9mail/src/main/AndroidManifest.xml b/app/k9mail/src/main/AndroidManifest.xml
index ff83a773874d8343233125af215a00ba24538bb0..6c889e67bdb962eb133a65fb224563f8e3369881 100644
--- a/app/k9mail/src/main/AndroidManifest.xml
+++ b/app/k9mail/src/main/AndroidManifest.xml
@@ -75,11 +75,6 @@
android:configChanges="locale"
android:label="@string/account_setup_basics_title"/>
-
-
.
- */
-
-package com.fsck.k9.activity.setup
-
-import android.app.Activity
-import android.content.Intent
-import android.os.Bundle
-import android.view.MenuItem
-import com.fsck.k9.activity.MessageList
-import com.fsck.k9.ui.R
-import com.fsck.k9.ui.base.K9Activity
-import com.fsck.k9.ui.settings.import.SettingsImportResultViewModel
-import com.fsck.k9.ui.settings.import.SettingsImportSuccess
-import org.koin.androidx.viewmodel.ext.android.viewModel
-
-/**
- * Prompts the user to select a exported settings file
- *
- */
-class AccountSetupImportSettings : K9Activity() {
-
- private val resultViewModel: SettingsImportResultViewModel by viewModel()
-
- public override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setLayout(R.layout.account_setup_import_settings)
- setUpActionBar()
-
- handleOnSuccessCallback()
- }
-
- private fun handleOnSuccessCallback() {
- resultViewModel.settingsImportResult.observe(this) {
- if (it == SettingsImportSuccess) {
- startActivityClearTop(MessageList::class.java)
- }
- }
- }
-
- private fun startActivityClearTop(clazz: Class) {
- val intent = Intent(this@AccountSetupImportSettings, clazz)
- intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK)
- startActivity(intent)
- finish()
- }
-
- private fun setUpActionBar() {
- setTitle(R.string.settings_import_title)
- supportActionBar?.setDisplayHomeAsUpEnabled(true)
- }
-
- override fun onOptionsItemSelected(item: MenuItem): Boolean {
- if (item.itemId == android.R.id.home) {
- onBackPressed()
- return true
- }
-
- return super.onOptionsItemSelected(item)
- }
-
- override fun onBackPressed() {
- startActivityClearTop(AccountSetupBasics::class.java)
- }
-}
diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt
index ae0ef86780f56b1aa8ea020a731c8a3d803fe03a..6ec83f7b6a370439b898a4649db18362675b0509 100644
--- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt
+++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt
@@ -20,7 +20,6 @@ class OnboardingActivity : K9Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setLayout(R.layout.activity_onboarding)
- setTitle(R.string.account_setup_basics_title)
initializeActionBar()
}
@@ -46,4 +45,4 @@ class OnboardingActivity : K9Activity() {
activity.startActivity(intent)
}
}
-}
\ No newline at end of file
+}
diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/WelcomeFragment.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/WelcomeFragment.kt
index 5848703a7d39afe6984da48817cf4ec07408b9de..5b2eecb227ae6a6b0b62295a1ac85d1841ab9781 100644
--- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/WelcomeFragment.kt
+++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/WelcomeFragment.kt
@@ -6,6 +6,8 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
+import androidx.appcompat.app.ActionBar
+import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.fsck.k9.ui.BuildConfig
@@ -29,7 +31,7 @@ class WelcomeFragment : Fragment() {
super.onViewCreated(view, savedInstanceState)
val welcome: TextView = view.findViewById(R.id.welcome_message)
- welcome.text = htmlToSpanned.convert(getString(R.string.accounts_welcome))
+ welcome.text = htmlToSpanned.convert(getString(R.string.welcome_message_text))
welcome.movementMethod = LinkMovementMethod.getInstance()
view.findViewById(R.id.next).setOnClickListener { launchAccountSetup() }
@@ -42,6 +44,24 @@ class WelcomeFragment : Fragment() {
}
}
+ override fun onResume() {
+ super.onResume()
+ getActionBar()?.hide()
+ }
+
+ override fun onStop() {
+ getActionBar()?.show()
+ super.onStop()
+ }
+
+ private fun getActionBar(): ActionBar? {
+ if (activity is AppCompatActivity) {
+ return (activity as AppCompatActivity).supportActionBar
+ }
+
+ return null
+ }
+
private fun launchAccountSetup() {
if (BuildConfig.USE_NEW_SETUP_UI_FOR_ONBOARDING) {
findNavController().navigate(R.id.action_welcomeScreen_to_newAddAccountScreen)
@@ -59,4 +79,4 @@ class WelcomeFragment : Fragment() {
findNavController().navigate(R.id.action_welcomeScreen_to_messageListScreen)
requireActivity().finish()
}
-}
\ No newline at end of file
+}
diff --git a/app/ui/legacy/src/main/res/layout/account_setup_import_settings.xml b/app/ui/legacy/src/main/res/color/btn_color_bg_state.xml
similarity index 53%
rename from app/ui/legacy/src/main/res/layout/account_setup_import_settings.xml
rename to app/ui/legacy/src/main/res/color/btn_color_bg_state.xml
index 74eeb9a10f654e81bc484467503e1a9d4fbf5c78..b95f55832d9d2805632b0098990303302e781950 100644
--- a/app/ui/legacy/src/main/res/layout/account_setup_import_settings.xml
+++ b/app/ui/legacy/src/main/res/color/btn_color_bg_state.xml
@@ -15,19 +15,9 @@
~ along with this program. If not, see .
-->
-
-
-
+
+
-
-
-
+
+
diff --git a/app/ui/legacy/src/main/res/drawable/btn_bg_rounded_corner.xml b/app/ui/legacy/src/main/res/drawable/btn_bg_rounded_corner.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0e0e0ad38c7861321ea0595087aa6143c8f326ae
--- /dev/null
+++ b/app/ui/legacy/src/main/res/drawable/btn_bg_rounded_corner.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/ui/legacy/src/main/res/drawable/ic_welcome_mail.xml b/app/ui/legacy/src/main/res/drawable/ic_welcome_mail.xml
new file mode 100644
index 0000000000000000000000000000000000000000..65ed11d0d020bb3c5b1ff0f4a07e609d789599a2
--- /dev/null
+++ b/app/ui/legacy/src/main/res/drawable/ic_welcome_mail.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/ui/legacy/src/main/res/layout/fragment_settings_import.xml b/app/ui/legacy/src/main/res/layout/fragment_settings_import.xml
index d0b61cbd6df911f18293dee7be8a156f77594af9..e340107ef85d7703a7d8fa8d31df53a18f067356 100644
--- a/app/ui/legacy/src/main/res/layout/fragment_settings_import.xml
+++ b/app/ui/legacy/src/main/res/layout/fragment_settings_import.xml
@@ -51,7 +51,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bottomBarBackground"
- android:elevation="8dp"
android:minHeight="56dp"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="UnusedAttribute">
diff --git a/app/ui/legacy/src/main/res/layout/fragment_welcome_message.xml b/app/ui/legacy/src/main/res/layout/fragment_welcome_message.xml
index 1b11746c1f7408fac251c7861593d159429b78f7..a7f962a44efd79bc649f1efbd711c22e0e6e4774 100644
--- a/app/ui/legacy/src/main/res/layout/fragment_welcome_message.xml
+++ b/app/ui/legacy/src/main/res/layout/fragment_welcome_message.xml
@@ -1,35 +1,65 @@
-
+ android:layout_height="match_parent">
-
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toTopOf="@id/bottomBarHolder">
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ android:textAlignment="center"
+ android:textColor="?android:attr/textColorSecondary"
+ android:textSize="14sp"
+ android:layout_marginLeft="71dp"
+ android:layout_marginRight="71dp"
+ android:layout_marginTop="16dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/welcome_title"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toRightOf="parent"/>
+
+
+
+
+
+
+
+
+
diff --git a/app/ui/legacy/src/main/res/layout/wizard_cancel.xml b/app/ui/legacy/src/main/res/layout/wizard_cancel.xml
index 15bc04d23e3a71312a8c87bbf68a61c2cb7fd567..25ec43d8ae8730914ae3d904c6477254489d387b 100644
--- a/app/ui/legacy/src/main/res/layout/wizard_cancel.xml
+++ b/app/ui/legacy/src/main/res/layout/wizard_cancel.xml
@@ -1,12 +1,6 @@
-
-
-
\ No newline at end of file
+
diff --git a/app/ui/legacy/src/main/res/layout/wizard_done.xml b/app/ui/legacy/src/main/res/layout/wizard_done.xml
index 89c69b6901debe7fc5ceccb9e826b794d73c98ac..85be2e4d2830f15b588f439c04b4d4464697c1d7 100644
--- a/app/ui/legacy/src/main/res/layout/wizard_done.xml
+++ b/app/ui/legacy/src/main/res/layout/wizard_done.xml
@@ -1,12 +1,6 @@
-
-
-
\ No newline at end of file
+
diff --git a/app/ui/legacy/src/main/res/layout/wizard_next.xml b/app/ui/legacy/src/main/res/layout/wizard_next.xml
index 9d44e367ba36368423b14f1f0360088503337ade..32b1e7cbb9556349cf69297b4a93af9d5ee54edb 100644
--- a/app/ui/legacy/src/main/res/layout/wizard_next.xml
+++ b/app/ui/legacy/src/main/res/layout/wizard_next.xml
@@ -1,12 +1,6 @@
-
-
-
\ No newline at end of file
+
diff --git a/app/ui/legacy/src/main/res/layout/wizard_setup.xml b/app/ui/legacy/src/main/res/layout/wizard_setup.xml
index 570c56ad4122a5783df749bd58955727a9658e30..1d0237069d2f9c207efac74d777a9b22733358e5 100644
--- a/app/ui/legacy/src/main/res/layout/wizard_setup.xml
+++ b/app/ui/legacy/src/main/res/layout/wizard_setup.xml
@@ -1,44 +1,37 @@
-
+
-
-
-
+ android:layout_marginEnd="16dp" >
-
-
-
+
diff --git a/app/ui/legacy/src/main/res/layout/wizard_welcome.xml b/app/ui/legacy/src/main/res/layout/wizard_welcome.xml
index 9aa27d17a34ca15ec86beb366f7138ac17142093..0f4ed4373b820f88ae4640924b967dee883dab51 100644
--- a/app/ui/legacy/src/main/res/layout/wizard_welcome.xml
+++ b/app/ui/legacy/src/main/res/layout/wizard_welcome.xml
@@ -1,35 +1,37 @@
-
+
-
-
-
+ android:layout_marginEnd="16dp" >
-
+
-
\ No newline at end of file
+
diff --git a/app/ui/legacy/src/main/res/navigation/navigation_onboarding.xml b/app/ui/legacy/src/main/res/navigation/navigation_onboarding.xml
index 03d12ab54b1656f2122c782de50c48c80cdc2d1d..0e4d692d5d221bf8cda95115f842eca234d430de 100644
--- a/app/ui/legacy/src/main/res/navigation/navigation_onboarding.xml
+++ b/app/ui/legacy/src/main/res/navigation/navigation_onboarding.xml
@@ -48,4 +48,4 @@
android:name="com.fsck.k9.activity.MessageList"
tools:layout="@layout/message_list"/>
-
\ No newline at end of file
+
diff --git a/app/ui/legacy/src/main/res/values-night/colors.xml b/app/ui/legacy/src/main/res/values-night/colors.xml
index dbdfd3d5261e06a8802e97721cfa20181869ed91..df719f1a2bf4d5ed7c093dee1fce78e6df748485 100644
--- a/app/ui/legacy/src/main/res/values-night/colors.xml
+++ b/app/ui/legacy/src/main/res/values-night/colors.xml
@@ -25,4 +25,6 @@
#4b4b4b
#474747
#cfcfcf
-
\ No newline at end of file
+
+ #664c4c4c
+
diff --git a/app/ui/legacy/src/main/res/values/colors.xml b/app/ui/legacy/src/main/res/values/colors.xml
index a2af1f29623639824a2ffd08964c8e744b9482d6..fb3193bb4fe7bf27407e932410f1a5376aada3c0 100644
--- a/app/ui/legacy/src/main/res/values/colors.xml
+++ b/app/ui/legacy/src/main/res/values/colors.xml
@@ -61,4 +61,6 @@
#FFC300
#FFFFFF
+
+ #26000000
diff --git a/app/ui/legacy/src/main/res/values/strings.xml b/app/ui/legacy/src/main/res/values/strings.xml
index 8fbe4fbf5fe84881804b75ba1d6ed203dc5cadab..a40e2c5e6d08112656ad2e33d3d59b3ac75c37be 100644
--- a/app/ui/legacy/src/main/res/values/strings.xml
+++ b/app/ui/legacy/src/main/res/values/strings.xml
@@ -27,6 +27,7 @@
Find out what\'s new in this release
Welcome to Mail
+ Set up a new account or import your email accounts from a previous settings file.
Mail is the default mail client for /e/OS
-- Sent from /e/OS Mail.