<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daley Nyae on Medium]]></title>
        <description><![CDATA[Stories by Daley Nyae on Medium]]></description>
        <link>https://medium.com/@daleynyae?source=rss-80c0c715128b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hdi33Cqt8ZS0slHMWy_rNg.jpeg</url>
            <title>Stories by Daley Nyae on Medium</title>
            <link>https://medium.com/@daleynyae?source=rss-80c0c715128b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:33:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daleynyae/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to change status bar color to match your app’s theme in Compose]]></title>
            <link>https://medium.com/@daleynyae/how-to-change-status-bar-color-to-match-your-apps-theme-in-compose-f17954475808?source=rss-80c0c715128b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f17954475808</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-status-bar]]></category>
            <dc:creator><![CDATA[Daley Nyae]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 04:51:17 GMT</pubDate>
            <atom:updated>2023-03-29T11:41:52.925Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How to change status bar color to match your app’s theme in Compose</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*STxyHAXEi35wFq4R0BnGsA.png" /><figcaption><a href="https://source.android.com/docs/devices/automotive/hmi/status_bar">https://source.android.com/docs/devices/automotive/hmi/status_bar</a></figcaption></figure><p>If you want to change the status app bar color to match the app’s <strong>light theme</strong>, here are a series of procedures to follow</p><p>Navigate to <strong>app&gt;res&gt;values&gt;colors.xml</strong></p><p>Delete all the contents of the &lt;resources&gt; tag</p><p>Add in your color of choice and set its hex value <strong>i.e</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DA5pqBzs_Q8GeJkQYyepbA.png" /></figure><p><strong>Navigate to app&gt;res&gt;values&gt;themes.xml </strong>and replace the color in android:statusBarColor to the color of your choice i.e</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEHZA4yxep9krIBI1Oe3ig.png" /></figure><p>In the themes.xml file, add windowLightStatusBar and set it to true under the status bar color. This makes it clear to see the icons</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r7tsLvynkUkc9f7iqqu5sA.png" /></figure><p>Here is how to change the status bar color in <strong>dark theme</strong></p><p>In the res folder, add a new Android Resources Directory and give it a name of your choice<strong> i.e values-night</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*7Et96t-KzdXSp-ILrEBRMg.png" /></figure><p>Switch to <strong>Project Source Files </strong>view</p><p>Navigate to <strong>app&gt;src&gt;main&gt;res&gt;values-night</strong></p><p>Within values-night, add a <strong>Value Resource File</strong> called <strong>themes.xml</strong></p><p>Add a style tag with the name<strong> “Theme.&lt;AppName&gt;” and the parent as “android:style/Theme.Material.NoActionBar”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMi_gPNpFlDZITs6_mkcCA.png" /></figure><p>Add the status bar color of your choice. You do not need to add the windowsStatusLightBarColor because it is white by default</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_FX4Peu6eotrszT_ZcVWQ.png" /></figure><p>Run your app in dark theme to see the status bar color</p><p>Works on <strong>Android API Level 21 and above</strong></p><p><strong>Happy coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f17954475808" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>