Skip to content

Commit 60b0baf

Browse files
committed
style: enable light status bar and remove targetApi tool
This commit enables `android:windowLightStatusBar` in the main theme to ensure status bar icons are visible on light backgrounds. It also removes the `tools:targetApi="l"` attribute from the status bar color item, as it is likely no longer needed for the project's minimum SDK version.
1 parent 495f45b commit 60b0baf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/res/values/themes.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
<item name="colorSecondaryVariant">@color/black</item>
1111
<item name="colorOnSecondary">@color/white</item>
1212
<!-- Status bar color. -->
13-
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
13+
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
1414
<!-- Customize your theme here. -->
1515
<!-- To change the popup menu and app text color -->
1616
<item name="android:textColor">?attr/colorPrimary</item>
1717
<!-- To change the background of options menu-->
1818
<item name="android:itemBackground">?attr/colorOnPrimary</item>
19+
20+
<item name="android:windowLightStatusBar">true</item>
1921
</style>
2022
</resources>

0 commit comments

Comments
 (0)