Skip to content

Commit

Permalink
[Refactor] Fix theme name.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Dec 16, 2023
1 parent 6522372 commit 14fe93a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun UntrackerTheme(
window.statusBarColor = Color.Transparent.toArgb()
insetsController.isAppearanceLightStatusBars = lightSystemBars
}
// android:windowLightNavigationBar is API 27 despite
// android:windowLightNavigationBar is API 27 despite that
// View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR is API 26.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
window.navigationBarColor = Color.Transparent.toArgb()
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<style name="Base.Theme.Untracker" parent="Platform.Theme.Untracker" />
<style name="Theme.Untracker" parent="Base.Theme.Untracker" />

<style name="Platform.V21.Theme.Untracker.Translucent" parent="Theme.Untracker">
<style name="Platform.Theme.Untracker.Translucent.V21" parent="Theme.Untracker">
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
Expand All @@ -35,7 +35,7 @@
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
</style>
<style name="Platform.Theme.Untracker.Translucent" parent="Platform.V21.Theme.Untracker.Translucent" />
<style name="Platform.Theme.Untracker.Translucent" parent="Platform.Theme.Untracker.Translucent.V21" />
<style name="Base.Theme.Untracker.Translucent" parent="Platform.Theme.Untracker.Translucent" />
<style name="Theme.Untracker.Translucent" parent="Base.Theme.Untracker.Translucent" />
</resources>

0 comments on commit 14fe93a

Please sign in to comment.