title: Dark theme android app
body: <p>I'm trying to create a dark theme similar to the one in OxygenOS on OnePlus devices.</p>
  
  <p><a href="https://i.stack.imgur.com/gwVCi.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/gwVCi.jpg" alt="enter image description here"></a></p>
  
  <p>I changed the window background to black but the problem is the action bar is not becoming pure black.</p>
  
  <pre><code>&lt;style name="DarkTheme" parent="Theme.AppCompact"&gt;
      &lt;item name="android:colorPrimary"&gt;@color/black&lt;/item&gt;
      &lt;item name="android:colorPrimaryDark"&gt;@color/black&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;@color/white&lt;/item&gt;
      &lt;item name="android:colorAccent"&gt;@color/white&lt;/item&gt;
      &lt;item name="android:color"&gt;@color/white&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@color/black&lt;/item&gt;
      &lt;item name="android:navigationBarColor"&gt;@color/black&lt;/item&gt;
      &lt;item name="android:actionBarStyle"&gt;@color/black&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>