mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
UI: Fix status bar/NavLib issues, temporarily
This commit is contained in:
parent
d8afa47d2c
commit
dce4ef822b
@ -229,8 +229,8 @@ class MainActivity : AppCompatActivity() {
|
|||||||
drawer.init(this@MainActivity)
|
drawer.init(this@MainActivity)
|
||||||
|
|
||||||
SystemBarsUtil(this@MainActivity).run {
|
SystemBarsUtil(this@MainActivity).run {
|
||||||
paddingByKeyboard = b.navView
|
//paddingByKeyboard = b.navView
|
||||||
appFullscreen = true
|
appFullscreen = false
|
||||||
statusBarColor = getColorFromAttr(context, android.R.attr.colorBackground)
|
statusBarColor = getColorFromAttr(context, android.R.attr.colorBackground)
|
||||||
statusBarDarker = false
|
statusBarDarker = false
|
||||||
statusBarFallbackLight = COLOR_HALF_TRANSPARENT
|
statusBarFallbackLight = COLOR_HALF_TRANSPARENT
|
||||||
@ -239,6 +239,8 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
b.navView.configSystemBarsUtil(this)
|
b.navView.configSystemBarsUtil(this)
|
||||||
|
|
||||||
|
// TODO fix navlib navbar detection, orientation change issues, status bar color setting if not fullscreen
|
||||||
|
|
||||||
commit()
|
commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,6 +95,8 @@
|
|||||||
<item name="mal_color_secondary">?android:textColorSecondary</item>
|
<item name="mal_color_secondary">?android:textColorSecondary</item>
|
||||||
<item name="mal_card_background">?colorSurface</item>
|
<item name="mal_card_background">?colorSurface</item>
|
||||||
<item name="mal_divider_color">@color/dividerColor</item>
|
<item name="mal_divider_color">@color/dividerColor</item>
|
||||||
|
|
||||||
|
<item name="android:statusBarColor" tools:targetApi="lollipop">?android:windowBackground</item>
|
||||||
</style>
|
</style>
|
||||||
<style name="AppTheme.Dark" parent="NavView.Dark">
|
<style name="AppTheme.Dark" parent="NavView.Dark">
|
||||||
<item name="colorPrimary">#64b5f6</item>
|
<item name="colorPrimary">#64b5f6</item>
|
||||||
@ -119,6 +121,8 @@
|
|||||||
<item name="mal_color_secondary">@color/secondaryTextDark</item>
|
<item name="mal_color_secondary">@color/secondaryTextDark</item>
|
||||||
<item name="mal_card_background">?colorSurface</item>
|
<item name="mal_card_background">?colorSurface</item>
|
||||||
<item name="mal_divider_color">@color/dividerColor</item>
|
<item name="mal_divider_color">@color/dividerColor</item>
|
||||||
|
|
||||||
|
<item name="android:statusBarColor" tools:targetApi="lollipop">?android:windowBackground</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user