mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #1690 from apicellaj/PrefBackground
Change settings background color to white
This commit is contained in:
commit
ff32f5e3d7
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,7 @@ import android.preference.PreferenceManager;
|
|||
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;
|
||||
|
@ -134,6 +135,8 @@ public class Preferences extends PreferenceActivity
|
|||
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());
|
||||
|
|
Loading…
Reference in a new issue