From f53f246f6ef4a2bf4ec6c5d2f95effef88f627a0 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 30 Apr 2019 11:26:57 +0200 Subject: [PATCH] rebase fixing plus proper theming of legacy login fields Signed-off-by: Andy Scherzinger --- .../ui/fragment/ExtendedListFragment.java | 1 - src/main/res/layout-land/account_setup.xml | 57 ++++++++++--------- src/main/res/layout/account_setup.xml | 37 ++++++------ 3 files changed, 51 insertions(+), 44 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java index 6d8229da45..eec70bb477 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java @@ -56,7 +56,6 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.nextcloud.client.account.UserAccountManager; import com.nextcloud.client.di.Injectable; import com.nextcloud.client.preferences.AppPreferences; -import com.nextcloud.client.preferences.PreferenceManager; import com.owncloud.android.MainApp; import com.owncloud.android.R; import com.owncloud.android.lib.common.utils.Log_OC; diff --git a/src/main/res/layout-land/account_setup.xml b/src/main/res/layout-land/account_setup.xml index 394282d533..31d852dfb7 100644 --- a/src/main/res/layout-land/account_setup.xml +++ b/src/main/res/layout-land/account_setup.xml @@ -85,12 +85,15 @@ android:id="@+id/hostUrlFrame" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="@dimen/zero"> + android:layout_marginBottom="@dimen/zero" + android:background="@color/primary"> + android:layout_height="wrap_content" + app:boxBackgroundColor="@color/primary" + app:hintTextColor="@color/fg_inverse"> + android:theme="@style/Nextcloud.EditText.Login"> @@ -159,44 +162,46 @@ android:contentDescription="@string/auth_testing_connection"/> - - + app:boxBackgroundColor="@color/primary" + app:hintTextColor="@color/fg_inverse" + android:visibility="gone"> + + android:id="@+id/input_layout_account_password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:boxBackgroundColor="@color/primary" + app:hintTextColor="@color/fg_inverse" + android:visibility="gone" + app:passwordToggleDrawable="@drawable/password_visibility_selector" + app:passwordToggleTint="@color/login_text_hint_color"> - + android:textColorHint="@color/login_text_hint_color" /> - - - + android:id="@+id/input_layout_account_username" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:boxBackgroundColor="@color/primary" + app:hintTextColor="@color/fg_inverse" + android:visibility="gone"> + @@ -191,6 +193,7 @@ android:hint="@string/auth_password" android:inputType="textPassword" android:textColor="@color/login_text_color" + android:theme="@style/Nextcloud.EditText.Login" android:textColorHint="@color/login_text_hint_color" />