Set primaryDarkColor

This commit is contained in:
Shinokuni 2019-12-28 17:23:39 +01:00
parent db8d6e58c2
commit bb480c6496
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.lifecycle.ViewModelProviders;
import androidx.paging.PagedList;
@ -405,6 +406,7 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou
drawer.getDrawerLayout().setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
refreshLayout.setEnabled(false);
actionMode.getMenuInflater().inflate(R.menu.item_list_contextual_menu, menu);
getWindow().setStatusBarColor(ContextCompat.getColor(this, R.color.primary_dark));
return true;
}

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#0072bc</color>
<color name="colorPrimaryDark">#000000</color> <!-- #d7d7d7 -->
<color name="colorPrimaryDark">#00478b</color>
<color name="colorAccent">#0072bc</color>
<color name="colorControlNormal">#d7d7d7</color>
<color name="colorBackground">#fafafa</color>