mirror of
https://github.com/GrakovNe/lissen-android.git
synced 2026-08-01 19:09:05 -04:00
Revert "feat(ui): implement proper edge-to-edge support (Android 15 / targetSdk 35) (#357)"
This reverts commit d1cec349
This commit is contained in:
@@ -21,6 +21,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.imePadding
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
import androidx.compose.material.ExperimentalMaterialApi
|
||||
@@ -331,6 +332,7 @@ fun LibraryScreen(
|
||||
}
|
||||
}
|
||||
},
|
||||
modifier = Modifier.systemBarsPadding(),
|
||||
)
|
||||
},
|
||||
bottomBar = {
|
||||
@@ -347,11 +349,13 @@ fun LibraryScreen(
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxSize(),
|
||||
content = { innerPadding ->
|
||||
Box(
|
||||
modifier =
|
||||
Modifier
|
||||
.padding(innerPadding)
|
||||
.pullRefresh(pullRefreshState)
|
||||
.fillMaxSize(),
|
||||
) {
|
||||
@@ -367,13 +371,7 @@ fun LibraryScreen(
|
||||
totalItems = libraryCount,
|
||||
ignoreItems = listOf("recent_books", "library_title"),
|
||||
),
|
||||
contentPadding =
|
||||
PaddingValues(
|
||||
start = 16.dp,
|
||||
end = 16.dp,
|
||||
top = innerPadding.calculateTopPadding(),
|
||||
bottom = innerPadding.calculateBottomPadding(),
|
||||
),
|
||||
contentPadding = PaddingValues(horizontal = 16.dp),
|
||||
) {
|
||||
item(key = "recent_books") {
|
||||
val showRecent = isRecentVisible()
|
||||
@@ -490,10 +488,7 @@ fun LibraryScreen(
|
||||
state = pullRefreshState,
|
||||
contentColor = colorScheme.primary,
|
||||
backgroundColor = colorScheme.surfaceContainer,
|
||||
modifier =
|
||||
Modifier
|
||||
.align(Alignment.TopCenter)
|
||||
.padding(top = innerPadding.calculateTopPadding()),
|
||||
modifier = Modifier.align(Alignment.TopCenter),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ import androidx.compose.foundation.layout.aspectRatio
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.navigationBarsPadding
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.width
|
||||
@@ -101,7 +100,6 @@ fun MiniPlayerComposable(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxSize()
|
||||
.navigationBarsPadding()
|
||||
.padding(horizontal = 12.dp),
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
@@ -132,7 +130,6 @@ fun MiniPlayerComposable(
|
||||
.fillMaxWidth()
|
||||
.background(colorScheme.background)
|
||||
.clickable { navController.showPlayer(book.id, book.title, book.subtitle) }
|
||||
.navigationBarsPadding()
|
||||
.padding(horizontal = 20.dp, vertical = 8.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
|
||||
@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.imePadding
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
@@ -118,6 +119,7 @@ fun LoginScreen(
|
||||
Scaffold(
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxSize(),
|
||||
content = { innerPadding ->
|
||||
Box(
|
||||
|
||||
@@ -17,6 +17,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.outlined.ArrowBack
|
||||
@@ -241,6 +242,7 @@ fun PlayerScreen(
|
||||
}
|
||||
}
|
||||
},
|
||||
modifier = Modifier.systemBarsPadding(),
|
||||
content = { innerPadding ->
|
||||
Column(
|
||||
modifier =
|
||||
|
||||
@@ -75,7 +75,7 @@ fun NavigationBarComposable(
|
||||
|
||||
Surface(
|
||||
shadowElevation = 4.dp,
|
||||
modifier = modifier,
|
||||
modifier = modifier.height(64.dp),
|
||||
) {
|
||||
NavigationBar(
|
||||
containerColor = Color.Transparent,
|
||||
|
||||
@@ -33,7 +33,7 @@ fun NavigationBarPlaceholderComposable(
|
||||
) {
|
||||
Surface(
|
||||
shadowElevation = 4.dp,
|
||||
modifier = modifier,
|
||||
modifier = modifier.height(64.dp),
|
||||
) {
|
||||
NavigationBar(
|
||||
containerColor = Color.Transparent,
|
||||
|
||||
@@ -7,6 +7,7 @@ import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
@@ -77,6 +78,7 @@ fun SettingsScreen(
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxHeight(),
|
||||
content = { innerPadding ->
|
||||
Column(
|
||||
|
||||
@@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
@@ -83,6 +84,7 @@ fun AdvancedSettingsComposable(
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxHeight(),
|
||||
content = { innerPadding ->
|
||||
Column(
|
||||
|
||||
@@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.itemsIndexed
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
@@ -75,6 +76,7 @@ fun CustomHeadersSettingsScreen(onBack: () -> Unit) {
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxHeight(),
|
||||
content = { innerPadding ->
|
||||
LazyColumn(
|
||||
|
||||
@@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.itemsIndexed
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
@@ -92,6 +93,7 @@ fun LocalUrlSettingsScreen(onBack: () -> Unit) {
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxHeight(),
|
||||
content = { innerPadding ->
|
||||
LazyColumn(
|
||||
|
||||
@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
@@ -72,6 +73,7 @@ fun SeekSettingsScreen(onBack: () -> Unit) {
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxHeight(),
|
||||
content = { innerPadding ->
|
||||
Column(
|
||||
|
||||
@@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
@@ -65,6 +66,7 @@ fun CacheSettingsScreen(
|
||||
},
|
||||
modifier =
|
||||
Modifier
|
||||
.systemBarsPadding()
|
||||
.fillMaxHeight(),
|
||||
content = { innerPadding ->
|
||||
Column(
|
||||
|
||||
@@ -60,9 +60,7 @@ fun LissenTheme(
|
||||
|
||||
SideEffect {
|
||||
window?.let {
|
||||
val insetsController = WindowCompat.getInsetsController(it, view)
|
||||
insetsController.isAppearanceLightStatusBars = !isDarkTheme
|
||||
insetsController.isAppearanceLightNavigationBars = !isDarkTheme
|
||||
WindowCompat.getInsetsController(it, view).isAppearanceLightStatusBars = !isDarkTheme
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user