diff --git a/app/ui/src/main/java/com/fsck/k9/ui/K9Drawer.java b/app/ui/src/main/java/com/fsck/k9/ui/K9Drawer.java index 790e95ef6..f32033f11 100644 --- a/app/ui/src/main/java/com/fsck/k9/ui/K9Drawer.java +++ b/app/ui/src/main/java/com/fsck/k9/ui/K9Drawer.java @@ -80,10 +80,6 @@ public class K9Drawer { drawer = new DrawerBuilder() .withActivity(parent) - .withDisplayBelowStatusBar(false) - .withTranslucentStatusBar(false) - .withDrawerLayout(R.layout.material_drawer_fits_not) - .withActionBarDrawerToggle(true) .withOnDrawerItemClickListener(createItemClickListener()) .withOnDrawerListener(parent.createOnDrawerListener()) .withSavedInstance(savedInstanceState) @@ -96,8 +92,7 @@ public class K9Drawer { private AccountHeader buildAccountHeader() { AccountHeaderBuilder headerBuilder = new AccountHeaderBuilder() .withActivity(parent) - .withHeaderBackground(R.drawable.drawer_header_background) - .withTranslucentStatusBar(false); + .withHeaderBackground(R.drawable.drawer_header_background); if (!K9.isHideSpecialAccounts()) { headerBuilder.addProfiles(new ProfileDrawerItem() @@ -216,7 +211,7 @@ public class K9Drawer { } else { unifiedInboxSelected = false; accountHeader.setActiveProfile((account.getAccountNumber()+1) << DRAWER_ACCOUNT_SHIFT); - accountHeader.getHeaderBackgroundView().setColorFilter(account.getChipColor(), PorterDuff.Mode.OVERLAY); + accountHeader.getHeaderBackgroundView().setColorFilter(account.getChipColor(), PorterDuff.Mode.MULTIPLY); ViewModelProvider viewModelProvider = ViewModelProviders.of(parent, new MessageListViewModelFactory()); MessageListViewModel viewModel = viewModelProvider.get(MessageListViewModel.class); viewModel.getFolders(account).observe(parent, new Observer>() { diff --git a/app/ui/src/main/res/drawable-hdpi/drawer_header_background.png b/app/ui/src/main/res/drawable-hdpi/drawer_header_background.png new file mode 100644 index 000000000..f2a357a89 Binary files /dev/null and b/app/ui/src/main/res/drawable-hdpi/drawer_header_background.png differ diff --git a/app/ui/src/main/res/drawable-mdpi/drawer_header_background.png b/app/ui/src/main/res/drawable-mdpi/drawer_header_background.png new file mode 100644 index 000000000..b4900bc1e Binary files /dev/null and b/app/ui/src/main/res/drawable-mdpi/drawer_header_background.png differ diff --git a/app/ui/src/main/res/drawable-xhdpi/drawer_header_background.png b/app/ui/src/main/res/drawable-xhdpi/drawer_header_background.png new file mode 100644 index 000000000..8f8a2a17f Binary files /dev/null and b/app/ui/src/main/res/drawable-xhdpi/drawer_header_background.png differ diff --git a/app/ui/src/main/res/drawable-xxhdpi/drawer_header_background.png b/app/ui/src/main/res/drawable-xxhdpi/drawer_header_background.png new file mode 100644 index 000000000..16c19e0ab Binary files /dev/null and b/app/ui/src/main/res/drawable-xxhdpi/drawer_header_background.png differ diff --git a/app/ui/src/main/res/drawable/drawer_header_background.xml b/app/ui/src/main/res/drawable/drawer_header_background.xml deleted file mode 100644 index 7f2ca9cc3..000000000 --- a/app/ui/src/main/res/drawable/drawer_header_background.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/ui/src/main/res/values/themes.xml b/app/ui/src/main/res/values/themes.xml index f44e711c5..058e52d29 100644 --- a/app/ui/src/main/res/values/themes.xml +++ b/app/ui/src/main/res/values/themes.xml @@ -1,5 +1,5 @@ - +