Increase alpha for back to top a little bit

This commit is contained in:
Albert221 2017-11-29 13:21:48 +01:00 committed by Isaac Hutt
parent ab5d2857f7
commit 1dc61691dc

View File

@ -495,13 +495,13 @@ public class KiwixMobileActivity extends BaseActivity implements WebViewCallback
} }
private void backToTopAppearDaily() { private void backToTopAppearDaily() {
backToTopButton.getBackground().setAlpha((int) (0.6 * 255)); backToTopButton.setAlpha(0.6f);
backToTopButton.setBackgroundColor(getResources().getColor(R.color.back_to_top_background)); backToTopButton.setBackgroundColor(getResources().getColor(R.color.back_to_top_background));
backToTopButton.setTextColor(getResources().getColor(R.color.back_to_top_text)); backToTopButton.setTextColor(getResources().getColor(R.color.back_to_top_text));
} }
private void backToTopAppearNightly() { private void backToTopAppearNightly() {
backToTopButton.getBackground().setAlpha((int) (0.7 * 255)); backToTopButton.setAlpha(0.7f);
backToTopButton.setBackgroundColor(getResources().getColor(R.color.back_to_top_background_night)); backToTopButton.setBackgroundColor(getResources().getColor(R.color.back_to_top_background_night));
backToTopButton.setTextColor(getResources().getColor(R.color.back_to_top_text_night)); backToTopButton.setTextColor(getResources().getColor(R.color.back_to_top_text_night));
} }