diff --git a/app/src/main/java/org/shadowice/flocke/andotp/AboutActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/AboutActivity.java index fe4fc550..bf5d0b69 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/AboutActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/AboutActivity.java @@ -25,11 +25,13 @@ package org.shadowice.flocke.andotp; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; +import android.graphics.ColorFilter; import android.net.Uri; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.View; import android.view.ViewStub; +import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; @@ -48,6 +50,11 @@ public class AboutActivity extends BaseActivity { private static final String BUGREPORT_URI = GITHUB_URI + "/issues"; + int[] imageResources = { + R.id.aboutImgVersion, R.id.aboutImgLicense, R.id.aboutImgChangelog, R.id.aboutImgSource, + R.id.aboutImgOpenSource, R.id.aboutImgAuthor1, R.id.aboutImgAuthor2, R.id.aboutImgBugs + }; + @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -62,6 +69,12 @@ public class AboutActivity extends BaseActivity { stub.setLayoutResource(R.layout.content_about); View v = stub.inflate(); + ColorFilter filter = ThemeHelper.getThemeColorFilter(this, android.R.attr.textColorSecondary); + for (int i : imageResources) { + ImageView imgView = (ImageView) v.findViewById(i); + imgView.getDrawable().setColorFilter(filter); + } + String versionName = ""; try { PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), 0); diff --git a/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java b/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java index 7b503071..6b402f1e 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/EntriesCardAdapter.java @@ -28,6 +28,7 @@ import android.content.ClipboardManager; import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; +import android.graphics.ColorFilter; import android.preference.PreferenceManager; import android.support.v7.widget.CardView; import android.support.v7.widget.PopupMenu; @@ -43,6 +44,7 @@ import android.widget.Filter; import android.widget.Filterable; import android.widget.FrameLayout; import android.widget.ImageButton; +import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; @@ -296,7 +298,6 @@ public class EntriesCardAdapter extends RecyclerView.Adapter) results.values; notifyDataSetChanged(); - } } @@ -306,26 +307,44 @@ public class EntriesCardAdapter extends RecyclerView.Adapter diff --git a/app/src/main/res/drawable/ic_visibility_visible.xml b/app/src/main/res/drawable/ic_visibility_visible.xml index ba7bd673..eb6143a2 100644 --- a/app/src/main/res/drawable/ic_visibility_visible.xml +++ b/app/src/main/res/drawable/ic_visibility_visible.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/layout/activity_container.xml b/app/src/main/res/layout/activity_container.xml index c419c953..43bad359 100644 --- a/app/src/main/res/layout/activity_container.xml +++ b/app/src/main/res/layout/activity_container.xml @@ -23,7 +23,7 @@ android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:navigationIcon="?homeAsUpIndicator" - app:popupTheme="@style/AppTheme.PopupOverlay" /> + app:popupTheme="?attr/actionBarPopupTheme" /> diff --git a/app/src/main/res/layout/component_card.xml b/app/src/main/res/layout/component_card.xml index 398fe883..574ba27d 100644 --- a/app/src/main/res/layout/component_card.xml +++ b/app/src/main/res/layout/component_card.xml @@ -24,31 +24,55 @@ android:layout_weight="1"> - + android:visibility="gone"> - + + + + + + + android:layout_height="wrap_content"> + + + + + + @@ -336,6 +342,7 @@ android:gravity="center_vertical" > @@ -426,6 +433,7 @@ android:gravity="center_vertical" > #00600F #FFCC00 - #CFD8DC - #727272 #B6B6B6 - #333333 - #003087 + #333333 + #f5f5f5 + #003087 + #009cde #212121 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 5ae09359..8abca995 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,4 +1,7 @@ + + + @@ -26,6 +32,9 @@ @color/colorPrimaryDark @color/colorAccent + @color/github_light + @color/paypal_light + @style/AppTheme.Dark.PopupOverlay