reverted back to light colored login

This commit is contained in:
Andy Scherzinger 2015-08-18 17:48:10 +02:00
parent e79f92f566
commit da89715045
27 changed files with 53 additions and 30 deletions

View file

@ -133,7 +133,7 @@
<activity
android:name=".authentication.AuthenticatorActivity"
android:exported="true"
android:theme="@style/Theme.ownCloud.noActionBar.Login"
android:theme="@style/Theme.ownCloud.noActionBar"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 B

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 B

After

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 220 B

BIN
res/drawable-hdpi/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 465 B

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 639 B

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 760 B

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 B

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,015 B

After

Width:  |  Height:  |  Size: 967 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View file

@ -64,7 +64,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:onClick="onRefreshClick"
android:text="@string/auth_check_server"
android:visibility="gone"
android:contentDescription="@string/auth_check_server"/>
@ -94,7 +93,7 @@
android:inputType="textUri"
android:drawablePadding="5dp"
android:paddingRight="55dp"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/auth_host_address"
>
@ -136,7 +135,7 @@
android:checked="false"
android:onClick="onCheckClick"
android:text="@string/oauth_check_onoff"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:textAppearance="?android:attr/textAppearanceSmall"
android:contentDescription="@string/oauth_check_onoff"
@ -151,7 +150,7 @@
android:text="@string/oauth2_url_endpoint_auth"
android:singleLine="true"
android:inputType="textUri"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:visibility="gone">
</EditText>
@ -165,7 +164,7 @@
android:text="@string/oauth2_url_endpoint_access"
android:singleLine="true"
android:inputType="textUri"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:visibility="gone">
<requestFocus />
@ -178,7 +177,7 @@
android:ems="10"
android:hint="@string/auth_username"
android:inputType="textNoSuggestions"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/auth_username"
/>
@ -191,9 +190,8 @@
android:hint="@string/auth_password"
android:inputType="textPassword"
android:drawablePadding="5dp"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/auth_password"
/>
<TextView
@ -222,13 +220,13 @@
android:layout_alignParentBottom="true"
android:orientation="vertical" >
<Button
<android.support.v7.widget.AppCompatButton
android:id="@+id/buttonOK"
android:theme="@style/Button.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:enabled="false"
android:onClick="onOkClick"
android:text="@string/setup_btn_connect"
android:contentDescription="@string/setup_btn_connect"/>

View file

@ -50,7 +50,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:onClick="onRefreshClick"
android:text="@string/auth_check_server"
android:visibility="gone"
android:contentDescription="@string/auth_check_server"/>
@ -82,7 +81,7 @@
android:inputType="textUri"
android:drawablePadding="5dp"
android:paddingRight="55dp"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/auth_host_address"
>
@ -125,7 +124,7 @@
android:onClick="onCheckClick"
android:text="@string/oauth_check_onoff"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/oauth_check_onoff"
/>
@ -136,7 +135,7 @@
android:layout_height="wrap_content"
android:ems="10"
android:enabled="false"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:text="@string/oauth2_url_endpoint_auth"
android:singleLine="true"
@ -153,7 +152,7 @@
android:text="@string/oauth2_url_endpoint_access"
android:singleLine="true"
android:inputType="textUri"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:visibility="gone"/>
@ -164,7 +163,7 @@
android:ems="10"
android:hint="@string/auth_username"
android:inputType="textNoSuggestions"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/auth_username"
/>
@ -177,7 +176,7 @@
android:ems="10"
android:hint="@string/auth_password"
android:inputType="textPassword"
android:textColor="@color/login_text_color"
android:textColor="@color/primary"
android:textColorHint="@color/login_text_hint_color"
android:contentDescription="@string/auth_password"
/>
@ -197,12 +196,12 @@
<android.support.v7.widget.AppCompatButton
android:id="@+id/buttonOK"
style="@style/ownCloud.Button"
android:theme="@style/Button.Primary"
style="@style/Button.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:enabled="false"
android:onClick="onOkClick"
android:text="@string/setup_btn_connect"
android:contentDescription="@string/setup_btn_connect"/>

View file

@ -31,8 +31,8 @@
<color name="list_divider_background">#fff0f0f0</color>
<color name="filelist_icon_backgorund">#DDDDDD</color>
<color name="dark_background_text_color">#EEEEEE</color>
<color name="login_text_color">@color/dark_background_text_color</color>
<color name="login_text_hint_color">#777777</color>
<color name="login_text_color">#757575</color>
<color name="login_text_hint_color">#757575</color>
<color name="primary_button_color">@color/owncloud_blue_accent</color>
<color name="secondary_button_color">#D6D7D7</color>

View file

@ -28,8 +28,8 @@
<!-- Colors -->
<color name="login_background_color">#1D2D44</color>
<color name="login_logo_background_color">#1D2D44</color>
<color name="login_background_color">#FFFFFF</color>
<color name="login_logo_background_color">#FFFFFF</color>
<color name="background_color">#F7F7F7</color>
<color name="actionbar_start_color">#1D2D44</color>
<color name="actionbar_end_color">#1D2D44</color>

View file

@ -68,8 +68,16 @@
<style name="ownCloud.Button" parent="Widget.AppCompat.Button">
<item name="colorButtonNormal">@color/primary</item>
<item name="colorControlActivated">@color/primary_dark</item>
<item name="colorControlHighlight">@color/color_accent</item>
</style>
<style name="Button" parent="Base.Widget.AppCompat.Button">
<item name="colorButtonNormal">@color/secondary_button_color</item>
<item name="android:textColor">@color/color_accent</item>
</style>
<style name="Button.Primary" parent="Button">
<item name="colorButtonNormal">@color/primary_button_color</item>
<item name="android:textColor">@color/white</item>
</style>
<style name="Button.Borderless" parent="Base.Widget.AppCompat.Button.Borderless">

View file

@ -176,6 +176,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
private EditText mUsernameInput;
private EditText mPasswordInput;
private View mOkButton;
private View mCenteredRefreshButton;
private TextView mAuthStatusView;
private int mAuthStatusText = 0, mAuthStatusIcon = 0;
@ -251,6 +252,24 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
/// initialize general UI elements
initOverallUi();
mOkButton = findViewById(R.id.buttonOK);
mOkButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onOkClick();
}
});
mCenteredRefreshButton = findViewById(R.id.centeredRefreshButton);
mCenteredRefreshButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
checkOcServer();
}
});
mOkButton = findViewById(R.id.buttonOK);
/// initialize block to be moved to single Fragment to check server and get info about it
@ -870,10 +889,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
* is postponed until it is available.
*
* IMPORTANT ENTRY POINT 4
*
* @param view OK button
*/
public void onOkClick(View view) {
public void onOkClick() {
// this check should be unnecessary
if (mServerInfo.mVersion == null ||
!mServerInfo.mVersion.isVersionValid() ||

View file

@ -201,7 +201,7 @@ public class Uploader extends FileActivity
final AlertDialog.Builder builder = new Builder(this);
switch (id) {
case DIALOG_WAITING:
ProgressDialog pDialog = new ProgressDialog(this, R.style.ProgressDialogTheme);
ProgressDialog pDialog = new ProgressDialog(this);
pDialog.setIndeterminate(false);
pDialog.setCancelable(false);
pDialog.setMessage(getResources().getString(R.string.uploader_info_uploading));

View file

@ -45,6 +45,7 @@ public class IndeterminateProgressDialog extends DialogFragment {
*/
public static IndeterminateProgressDialog newInstance(int messageId, boolean cancelable) {
IndeterminateProgressDialog fragment = new IndeterminateProgressDialog();
fragment.setStyle(DialogFragment.STYLE_NO_FRAME, R.style.ownCloud_AlertDialog);
Bundle args = new Bundle();
args.putInt(ARG_MESSAGE_ID, messageId);
args.putBoolean(ARG_CANCELABLE, cancelable);