Skip to content

Commit

Permalink
Merge pull request #1690 from apicellaj/PrefBackground
Browse files Browse the repository at this point in the history
Change settings background color to white
  • Loading branch information
mario authored Oct 19, 2017
2 parents d4cf475 + 64a8e3f commit ff32f5e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import android.preference.PreferenceScreen;
import android.preference.SwitchPreference;
import android.support.annotation.LayoutRes;
import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatDelegate;
import android.view.Menu;
Expand Down Expand Up @@ -134,6 +135,8 @@ public void onCreate(Bundle savedInstanceState) {
actionBar.setDisplayHomeAsUpEnabled(true);
ThemeUtils.setColoredTitle(actionBar, getString(R.string.actionbar_settings));
actionBar.setBackgroundDrawable(new ColorDrawable(ThemeUtils.primaryColor()));
getWindow().getDecorView().setBackgroundDrawable(new ColorDrawable(ResourcesCompat
.getColor(getResources(), R.color.background_color, null)));

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setStatusBarColor(ThemeUtils.primaryDarkColor());
Expand Down

0 comments on commit ff32f5e

Please sign in to comment.