diff --git a/app/src/main/java/foundation/e/accountmanager/ui/setup/EeloAuthenticatorFragment.kt b/app/src/main/java/foundation/e/accountmanager/ui/setup/EeloAuthenticatorFragment.kt
index 3f488bf7efebdf6b67aba8ab60651e6f54b24caf..4217d52816e1da65c8f16869702cc411c72c0dde 100644
--- a/app/src/main/java/foundation/e/accountmanager/ui/setup/EeloAuthenticatorFragment.kt
+++ b/app/src/main/java/foundation/e/accountmanager/ui/setup/EeloAuthenticatorFragment.kt
@@ -46,7 +46,7 @@ class EeloAuthenticatorFragment : Fragment() {
v.lifecycleOwner = this
v.model = model
- v.root.urlpwd_other_account_title_panel.setOnClickListener() { expandCollapse() }
+ v.root.server_toggle_button.setOnClickListener() { expandCollapse() }
v.root.urlpwd_user_name.setOnFocusChangeListener() { v, hasFocus ->
if (!hasFocus) {
@@ -60,7 +60,7 @@ class EeloAuthenticatorFragment : Fragment() {
}
}
- v.login.setOnClickListener { login() }
+ v.root.sign_in.setOnClickListener { login() }
// code below is to draw toggle button in its correct state and show or hide server url input field
//add by Vincent, 18/02/2019
@@ -69,15 +69,15 @@ class EeloAuthenticatorFragment : Fragment() {
}
//This allow the button to be redraw in the correct state if user turn screen
- if (toggleButtonState == true) {
- v.root.expand_collapse_button.setChecked(toggleButtonState)
+ if (toggleButtonState) {
+ v.root.server_toggle_button.setCompoundDrawablesWithIntrinsicBounds(null, null , resources.getDrawable(R.drawable.ic_expand_less), null)
v.root.urlpwd_server_uri_layout.setVisibility(View.VISIBLE)
v.root.urlpwd_server_uri.setEnabled(true)
} else {
+ v.root.server_toggle_button.setCompoundDrawablesWithIntrinsicBounds(null, null , resources.getDrawable(R.drawable.ic_expand_more), null)
v.root.urlpwd_server_uri_layout.setVisibility(View.GONE)
v.root.urlpwd_server_uri.setEnabled(false)
}
-
return v.root
}
@@ -154,18 +154,17 @@ class EeloAuthenticatorFragment : Fragment() {
* Show/Hide panel containing server's uri input field.
*/
private fun expandCollapse() {
- //inverse state of Toggle button
- expand_collapse_button.setChecked(!expand_collapse_button.isChecked())
-
- if (expand_collapse_button.isChecked) {
- urlpwd_server_uri_layout.setVisibility(View.VISIBLE)
- urlpwd_server_uri.setEnabled(true)
- toggleButtonState = true;
- } else {
- urlpwd_server_uri_layout.setVisibility(View.GONE)
- urlpwd_server_uri.setEnabled(false)
- toggleButtonState = false;
- }
+ if (!toggleButtonState) {
+ server_toggle_button.setCompoundDrawablesWithIntrinsicBounds(null, null , resources.getDrawable(R.drawable.ic_expand_less), null)
+ urlpwd_server_uri_layout.setVisibility(View.VISIBLE)
+ urlpwd_server_uri.setEnabled(true)
+ toggleButtonState = true
+ } else {
+ server_toggle_button.setCompoundDrawablesWithIntrinsicBounds(null, null , resources.getDrawable(R.drawable.ic_expand_more), null)
+ urlpwd_server_uri_layout.setVisibility(View.GONE)
+ urlpwd_server_uri.setEnabled(false)
+ toggleButtonState = false
+ }
}
}
diff --git a/app/src/main/res/color/edittext.xml b/app/src/main/res/color/edittext.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3bccb0b2ef8f5afd635baa303e89887a84c6e33e
--- /dev/null
+++ b/app/src/main/res/color/edittext.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_expand_less.xml b/app/src/main/res/drawable/ic_expand_less.xml
index e8ab253fa49ccfeb002e150d8b659fb5d7dcfe4c..da367740da8b6f6a398f3790bdea475a4f50da9e 100644
--- a/app/src/main/res/drawable/ic_expand_less.xml
+++ b/app/src/main/res/drawable/ic_expand_less.xml
@@ -4,7 +4,7 @@
android:viewportWidth="24"
android:viewportHeight="24">
diff --git a/app/src/main/res/drawable/ic_expand_more.xml b/app/src/main/res/drawable/ic_expand_more.xml
index 8c09c2dbaed46f1165557e069a3e62837d0f8445..22a48ffa4128bf0f89eee4460d88d4f8d1ffd889 100644
--- a/app/src/main/res/drawable/ic_expand_more.xml
+++ b/app/src/main/res/drawable/ic_expand_more.xml
@@ -4,7 +4,7 @@
android:viewportWidth="24"
android:viewportHeight="24">
diff --git a/app/src/main/res/drawable/ic_murena_logo.xml b/app/src/main/res/drawable/ic_murena_logo.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6eff4e8331f76e162e27af82ab96dadd213b5841
--- /dev/null
+++ b/app/src/main/res/drawable/ic_murena_logo.xml
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/fragment_eelo_authenticator.xml b/app/src/main/res/layout/fragment_eelo_authenticator.xml
index 1e416b8a55dc243e68d7263d0fbb5c7658598b13..2b62454b22c48f110d81a7de82d0101c4c57ba01 100644
--- a/app/src/main/res/layout/fragment_eelo_authenticator.xml
+++ b/app/src/main/res/layout/fragment_eelo_authenticator.xml
@@ -50,22 +50,32 @@
android:paddingTop="8dp"
android:paddingBottom="16dp">
+
+
+ android:textSize="17sp" />
@@ -96,54 +109,41 @@
android:textColor="@color/primaryTextColor" />
-
-
-
-
-
-
-
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="24dp"
+ android:layout_marginEnd="16dp"
+ android:text="@string/sign_in"
+ android:textColor="@android:color/white"
+ app:backgroundTint="@*android:color/accent_material_light" />
+
+
+
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8727d1db519a14937bdd44879c3780464e116f5c
--- /dev/null
+++ b/app/src/main/res/values-night/colors.xml
@@ -0,0 +1,6 @@
+
+
+ @*android:color/bright_foreground_holo_dark
+ #61ffffff
+ #BDFFFFFF
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 4f9dbc1b652c4b6a0f7eb0f761ef0decc9ba99f9..4ec441a4100a1f287a03debad1954d0bf3031aa7 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -12,4 +12,7 @@
@*android:color/accent_material_light
#61000000
#BD000000
+ @*android:color/bright_foreground_holo_light
+ #61000000
+ #BD000000
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 06b51e30d8c0f97066cd8418010e04bed7ec243c..d6e68e8a1685a2a8cf1fe90f74a986d1f62bf1e1 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -162,7 +162,7 @@
Add account
- Log in with your e.email or murena.io ID:
+ Use your e.email or murena.io ID to sign in:
Login with email address
Email address
Valid email address required
@@ -376,4 +376,5 @@
The invitation couldn\'t be delivered to your email due to an online failure.\n\nPlease try again later.\n\nNote: you can also skip this process and add an account later in Settings. In case of difficulties, please contact support.
Enter email to receive invitation
Please check your internet connection
+ Sign In
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 9a25ec978966b0a90f180c087a2f8d1b54d9f804..b04a7aebebe6e79ebd94182bef9f9ebc39d46aa2 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -100,7 +100,7 @@