Skip to content

Commit

Permalink
Default text color is now white
Browse files Browse the repository at this point in the history
Closes #55
  • Loading branch information
fexed committed Sep 15, 2022
1 parent 94a8e28 commit e0aa637
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/src/main/java/com/fexed/spacecadetpinball/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.Intent;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
Expand Down Expand Up @@ -311,26 +312,25 @@ protected void onResume() {
mBinding.right.setTypeface(ResourcesCompat.getFont(getContext(), R.font.bauhauscheavy));
mBinding.right.setTextColor(ResourcesCompat.getColor(getResources(), R.color.purple_200, getTheme()));
} else {
int defaultColor = mBinding.plunger.getCurrentTextColor();
mBinding.ballstxt.setTypeface(Typeface.DEFAULT);
mBinding.ballstxt.setTextColor(defaultColor);
mBinding.ballstxt.setTextColor(Color.WHITE);
mBinding.txtscore.setTypeface(Typeface.DEFAULT);
mBinding.txtscore.setTextColor(defaultColor);
mBinding.txtscore.setTextColor(Color.WHITE);
mBinding.infotxt.setTypeface(Typeface.DEFAULT);
mBinding.infotxt.setTextColor(defaultColor);
mBinding.infotxt.setTextColor(Color.WHITE);
mBinding.missiontxt.setTypeface(Typeface.DEFAULT);
mBinding.missiontxt.setTextColor(defaultColor);
mBinding.missiontxt.setTextColor(Color.WHITE);
mBinding.plunger.setTypeface(Typeface.DEFAULT);
mBinding.tiltLeft.setTypeface(Typeface.DEFAULT);
mBinding.tiltLeft.setTextColor(defaultColor);
mBinding.tiltLeft.setTextColor(Color.WHITE);
mBinding.tiltBottom.setTypeface(Typeface.DEFAULT);
mBinding.tiltBottom.setTextColor(defaultColor);
mBinding.tiltBottom.setTextColor(Color.WHITE);
mBinding.tiltRight.setTypeface(Typeface.DEFAULT);
mBinding.tiltRight.setTextColor(defaultColor);
mBinding.tiltRight.setTextColor(Color.WHITE);
mBinding.left.setTypeface(Typeface.DEFAULT);
mBinding.left.setTextColor(defaultColor);
mBinding.left.setTextColor(Color.WHITE);
mBinding.right.setTypeface(Typeface.DEFAULT);
mBinding.right.setTextColor(defaultColor);
mBinding.right.setTextColor(Color.WHITE);
}

if (isGameReady) setVolume(getSharedPreferences("com.fexed.spacecadetpinball", Context.MODE_PRIVATE).getInt("volume", 100));
Expand Down

0 comments on commit e0aa637

Please sign in to comment.