diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/categories/components/CategoriesScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/categories/components/CategoriesScreenContent.kt index 01c453ce..2a182908 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/categories/components/CategoriesScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/categories/components/CategoriesScreenContent.kt @@ -18,8 +18,10 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed @@ -54,8 +56,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import com.vanpra.composematerialdialogs.rememberMaterialDialogState import kotlinx.collections.immutable.ImmutableList diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/downloads/components/DownloadsScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/downloads/components/DownloadsScreenContent.kt index df5397cc..65d79e24 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/downloads/components/DownloadsScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/downloads/components/DownloadsScreenContent.kt @@ -19,8 +19,10 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn @@ -63,8 +65,6 @@ import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import kotlinx.collections.immutable.ImmutableList import kotlinx.collections.immutable.toImmutableList diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/extensions/components/ExtensionsScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/extensions/components/ExtensionsScreenContent.kt index 820ba9dd..05dc4b41 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/extensions/components/ExtensionsScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/extensions/components/ExtensionsScreenContent.kt @@ -20,9 +20,11 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn @@ -66,8 +68,6 @@ import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import com.vanpra.composematerialdialogs.MaterialDialog import com.vanpra.composematerialdialogs.MaterialDialogState diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryMangaList.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryMangaList.kt index a58a5567..6710cc80 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryMangaList.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryMangaList.kt @@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.requiredHeight @@ -37,7 +38,6 @@ import ca.gosyer.jui.uicore.components.MangaListItemTitle import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryScreenContent.kt index 70a1ba93..7fee1595 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/LibraryScreenContent.kt @@ -19,8 +19,10 @@ import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.WindowInsetsSides import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.pager.PagerState import androidx.compose.foundation.pager.rememberPagerState @@ -52,8 +54,6 @@ import ca.gosyer.jui.ui.library.settings.LibrarySheet import ca.gosyer.jui.ui.library.settings.LibrarySideMenu import ca.gosyer.jui.uicore.components.ErrorScreen import ca.gosyer.jui.uicore.components.LoadingScreen -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import kotlinx.collections.immutable.ImmutableList import kotlinx.collections.immutable.toImmutableList diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaComfortableGrid.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaComfortableGrid.kt index 3311a026..89964f3d 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaComfortableGrid.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaComfortableGrid.kt @@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.windowInsetsPadding @@ -41,7 +42,6 @@ import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberVerticalScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCompactGrid.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCompactGrid.kt index c666c9fa..7d5ab08b 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCompactGrid.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCompactGrid.kt @@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.windowInsetsPadding @@ -45,7 +46,6 @@ import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberVerticalScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList expect fun Modifier.libraryMangaModifier( diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCoverOnlyGrid.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCoverOnlyGrid.kt index 1ad8a5e2..6f9901cf 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCoverOnlyGrid.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/library/components/MangaCoverOnlyGrid.kt @@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.windowInsetsPadding @@ -37,7 +38,6 @@ import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberVerticalScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/MainMenu.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/MainMenu.kt index e2754815..6d5199c9 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/MainMenu.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/MainMenu.kt @@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.WindowInsetsSides import androidx.compose.foundation.layout.consumeWindowInsets import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width @@ -36,7 +37,6 @@ import ca.gosyer.jui.ui.base.navigation.DisplayController import ca.gosyer.jui.ui.base.navigation.withDisplayController import ca.gosyer.jui.ui.main.components.SideMenu import ca.gosyer.jui.ui.main.components.WithBottomNav -import ca.gosyer.jui.uicore.insets.navigationBars import cafe.adriel.voyager.navigator.Navigator import cafe.adriel.voyager.transitions.FadeTransition import kotlinx.coroutines.delay diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/components/AboutContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/components/AboutContent.kt index e11f85ec..b16c8b5e 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/components/AboutContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/components/AboutContent.kt @@ -19,9 +19,11 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn @@ -52,8 +54,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import ca.gosyer.jui.uicore.resources.toPainter import com.google.accompanist.flowlayout.FlowMainAxisAlignment diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/licenses/components/LicensesContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/licenses/components/LicensesContent.kt index 842fe5c7..c8e07eb5 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/licenses/components/LicensesContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/about/licenses/components/LicensesContent.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.rememberLazyListState import androidx.compose.material.Scaffold @@ -30,8 +32,6 @@ import ca.gosyer.jui.uicore.components.LoadingScreen import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import com.mikepenz.aboutlibraries.Libs import com.mikepenz.aboutlibraries.ui.compose.Libraries diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/BottomNav.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/BottomNav.kt index 3ce3b6b4..ec2bd5d5 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/BottomNav.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/BottomNav.kt @@ -18,6 +18,7 @@ import androidx.compose.foundation.layout.WindowInsetsSides import androidx.compose.foundation.layout.defaultMinSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.selection.selectableGroup @@ -41,7 +42,6 @@ import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import androidx.compose.ui.util.fastForEach import ca.gosyer.jui.ui.main.TopLevelMenus -import ca.gosyer.jui.uicore.insets.navigationBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.navigator.Navigator diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/SideMenu.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/SideMenu.kt index dc56718b..9ea03abf 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/SideMenu.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/components/SideMenu.kt @@ -19,6 +19,7 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.systemBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll @@ -39,7 +40,6 @@ import ca.gosyer.jui.presentation.build.BuildKonfig import ca.gosyer.jui.ui.base.navigation.DisplayController import ca.gosyer.jui.ui.main.MoreMenus import ca.gosyer.jui.ui.main.TopLevelMenus -import ca.gosyer.jui.uicore.insets.systemBars import cafe.adriel.voyager.navigator.Navigator @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/more/components/MoreContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/more/components/MoreContent.kt index 8c64e777..c7444d96 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/more/components/MoreContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/main/more/components/MoreContent.kt @@ -20,9 +20,11 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn @@ -44,8 +46,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import ca.gosyer.jui.uicore.resources.toPainter import cafe.adriel.voyager.navigator.LocalNavigator diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/components/MangaScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/components/MangaScreenContent.kt index ecd323c4..df7279b2 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/components/MangaScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/components/MangaScreenContent.kt @@ -15,8 +15,10 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items @@ -73,8 +75,6 @@ import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.icons.JuiAssets import ca.gosyer.jui.uicore.icons.juiassets.DonePrev -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.navigator.LocalNavigator import com.vanpra.composematerialdialogs.rememberMaterialDialogState diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAdvancedScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAdvancedScreen.kt index d85e9d91..d9f7059a 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAdvancedScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAdvancedScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -38,8 +40,6 @@ import ca.gosyer.jui.ui.viewModel import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.prefs.PreferenceMutableStateFlow import ca.gosyer.jui.uicore.resources.stringResource import ca.gosyer.jui.uicore.vm.ContextWrapper diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAppearanceScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAppearanceScreen.kt index b784c179..e64156c3 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAppearanceScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsAppearanceScreen.kt @@ -24,9 +24,11 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn @@ -73,8 +75,6 @@ import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.components.secondaryItemAlpha -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.prefs.PreferenceMutableStateFlow import ca.gosyer.jui.uicore.resources.stringResource import ca.gosyer.jui.uicore.theme.ExtraColors diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt index a395e476..d294cb69 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt @@ -13,9 +13,11 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -57,8 +59,6 @@ import ca.gosyer.jui.ui.viewModel import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import ca.gosyer.jui.uicore.vm.ContextWrapper import ca.gosyer.jui.uicore.vm.ViewModel diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBrowseScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBrowseScreen.kt index fa9cdcb7..f0abe520 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBrowseScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBrowseScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -28,8 +30,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.core.screen.ScreenKey diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsDownloadsScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsDownloadsScreen.kt index c703983f..6f9e84b0 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsDownloadsScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsDownloadsScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -28,8 +30,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.core.screen.ScreenKey diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsGeneralScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsGeneralScreen.kt index 95013838..35983c0d 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsGeneralScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsGeneralScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -40,8 +42,6 @@ import ca.gosyer.jui.ui.viewModel import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.prefs.PreferenceMutableStateFlow import ca.gosyer.jui.uicore.resources.readTextAsync import ca.gosyer.jui.uicore.resources.stringResource @@ -54,7 +54,6 @@ import kotlinx.collections.immutable.ImmutableMap import kotlinx.collections.immutable.persistentMapOf import kotlinx.collections.immutable.toImmutableMap import kotlinx.datetime.Clock -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.jsonArray diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsLibraryScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsLibraryScreen.kt index d2aa662b..eeed547e 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsLibraryScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsLibraryScreen.kt @@ -18,8 +18,10 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -53,8 +55,6 @@ import ca.gosyer.jui.ui.viewModel import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.prefs.PreferenceMutableStateFlow import ca.gosyer.jui.uicore.resources.stringResource import ca.gosyer.jui.uicore.vm.ContextWrapper diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsParentalControlsScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsParentalControlsScreen.kt index f195c3b6..c6b9f105 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsParentalControlsScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsParentalControlsScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -28,8 +30,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.core.screen.ScreenKey diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsReaderScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsReaderScreen.kt index 0b99e3a8..3597ea80 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsReaderScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsReaderScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -42,8 +44,6 @@ import ca.gosyer.jui.ui.viewModel import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.prefs.PreferenceMutableStateFlow import ca.gosyer.jui.uicore.prefs.asStateIn import ca.gosyer.jui.uicore.resources.stringResource diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsScreen.kt index 17b6f693..6281c031 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -37,8 +39,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.core.screen.ScreenKey diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsSecurityScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsSecurityScreen.kt index 98311f06..b5dc3010 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsSecurityScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsSecurityScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -28,8 +30,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.core.screen.ScreenKey diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsServerScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsServerScreen.kt index d8ab3d76..859ecce2 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsServerScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsServerScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListScope @@ -40,8 +42,6 @@ import ca.gosyer.jui.ui.viewModel import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.prefs.PreferenceMutableStateFlow import ca.gosyer.jui.uicore.prefs.asStateIn import ca.gosyer.jui.uicore.prefs.asStringStateIn diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsTrackingScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsTrackingScreen.kt index c5e4daf1..0715fca7 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsTrackingScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsTrackingScreen.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.rememberLazyListState @@ -28,8 +30,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.core.screen.ScreenKey diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaComfortableGrid.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaComfortableGrid.kt index 9fe29798..42af9a76 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaComfortableGrid.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaComfortableGrid.kt @@ -17,6 +17,7 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.windowInsetsPadding @@ -43,7 +44,6 @@ import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberVerticalScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaCompactGrid.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaCompactGrid.kt index 04c49ee3..962752dc 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaCompactGrid.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaCompactGrid.kt @@ -17,6 +17,7 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.windowInsetsPadding @@ -47,7 +48,6 @@ import ca.gosyer.jui.uicore.components.mangaAspectRatio import ca.gosyer.jui.uicore.components.rememberVerticalScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaList.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaList.kt index b8e2ed46..56382b87 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaList.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceMangaList.kt @@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.requiredHeight @@ -37,7 +38,6 @@ import ca.gosyer.jui.uicore.components.MangaListItemTitle import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList @Composable diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceScreenContent.kt index dc159b13..2902e1e2 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/browse/components/SourceScreenContent.kt @@ -18,8 +18,10 @@ import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.WindowInsetsSides import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.material.DropdownMenu @@ -60,8 +62,6 @@ import ca.gosyer.jui.ui.main.components.bottomNav import ca.gosyer.jui.ui.sources.browse.filter.SourceFiltersMenu import ca.gosyer.jui.ui.sources.browse.filter.model.SourceFiltersView import ca.gosyer.jui.uicore.components.LoadingScreen -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import kotlinx.collections.immutable.ImmutableList import kotlinx.collections.immutable.toImmutableList diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/components/SourcesMenu.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/components/SourcesMenu.kt index 05d2385c..673e5050 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/components/SourcesMenu.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/components/SourcesMenu.kt @@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.requiredSize @@ -49,7 +50,6 @@ import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.navigator.LocalNavigator import cafe.adriel.voyager.navigator.currentOrThrow diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/components/GlobalSearchScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/components/GlobalSearchScreenContent.kt index 621f0bb1..1a3b6f4e 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/components/GlobalSearchScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/components/GlobalSearchScreenContent.kt @@ -20,8 +20,10 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyRow @@ -55,8 +57,6 @@ import ca.gosyer.jui.uicore.components.HorizontalScrollbar import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import kotlinx.collections.immutable.ImmutableList diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/home/components/SourceHomeScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/home/components/SourceHomeScreenContent.kt index 235fbc50..8e3baafd 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/home/components/SourceHomeScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/home/components/SourceHomeScreenContent.kt @@ -21,9 +21,11 @@ import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn @@ -65,8 +67,6 @@ import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.rememberVerticalScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding import ca.gosyer.jui.uicore.image.ImageLoaderImage -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import com.vanpra.composematerialdialogs.rememberMaterialDialogState import kotlinx.collections.immutable.ImmutableList diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/settings/components/SourceSettingsScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/settings/components/SourceSettingsScreenContent.kt index 29ef4c16..e6a23463 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/settings/components/SourceSettingsScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/settings/components/SourceSettingsScreenContent.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items @@ -47,8 +49,6 @@ import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.keyboardHandler import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import com.vanpra.composematerialdialogs.MaterialDialog import com.vanpra.composematerialdialogs.TextFieldStyle diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/updates/components/UpdatesScreenContent.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/updates/components/UpdatesScreenContent.kt index e72ee461..21e19b6d 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/updates/components/UpdatesScreenContent.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/updates/components/UpdatesScreenContent.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.layout.add import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBars import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed @@ -63,8 +65,6 @@ import ca.gosyer.jui.uicore.components.LoadingScreen import ca.gosyer.jui.uicore.components.VerticalScrollbar import ca.gosyer.jui.uicore.components.rememberScrollbarAdapter import ca.gosyer.jui.uicore.components.scrollbarPadding -import ca.gosyer.jui.uicore.insets.navigationBars -import ca.gosyer.jui.uicore.insets.statusBars import ca.gosyer.jui.uicore.resources.stringResource import cafe.adriel.voyager.navigator.LocalNavigator import kotlinx.collections.immutable.ImmutableList diff --git a/ui-core/src/androidMain/kotlin/ca/gosyer/jui/uicore/insets/AndroidWindowInsets.kt b/ui-core/src/androidMain/kotlin/ca/gosyer/jui/uicore/insets/AndroidWindowInsets.kt deleted file mode 100644 index e6eef299..00000000 --- a/ui-core/src/androidMain/kotlin/ca/gosyer/jui/uicore/insets/AndroidWindowInsets.kt +++ /dev/null @@ -1,295 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -@file:Suppress("unused") - -package ca.gosyer.jui.uicore.insets - -import androidx.compose.foundation.layout.ExperimentalLayoutApi -import androidx.compose.foundation.layout.WindowInsets -import androidx.compose.foundation.layout.areNavigationBarsVisible -import androidx.compose.foundation.layout.areStatusBarsVisible -import androidx.compose.foundation.layout.areSystemBarsVisible -import androidx.compose.foundation.layout.captionBar -import androidx.compose.foundation.layout.captionBarIgnoringVisibility -import androidx.compose.foundation.layout.displayCutout -import androidx.compose.foundation.layout.ime -import androidx.compose.foundation.layout.isCaptionBarVisible -import androidx.compose.foundation.layout.isImeVisible -import androidx.compose.foundation.layout.isTappableElementVisible -import androidx.compose.foundation.layout.mandatorySystemGestures -import androidx.compose.foundation.layout.navigationBars -import androidx.compose.foundation.layout.navigationBarsIgnoringVisibility -import androidx.compose.foundation.layout.safeContent -import androidx.compose.foundation.layout.safeDrawing -import androidx.compose.foundation.layout.safeGestures -import androidx.compose.foundation.layout.statusBars -import androidx.compose.foundation.layout.statusBarsIgnoringVisibility -import androidx.compose.foundation.layout.systemBars -import androidx.compose.foundation.layout.systemBarsIgnoringVisibility -import androidx.compose.foundation.layout.systemGestures -import androidx.compose.foundation.layout.tappableElement -import androidx.compose.foundation.layout.tappableElementIgnoringVisibility -import androidx.compose.foundation.layout.waterfall -import androidx.compose.runtime.Composable -import androidx.compose.runtime.NonRestartableComposable -import androidx.core.view.WindowInsetsCompat - -/** - * For the [WindowInsetsCompat.Type.captionBar]. - */ -actual val WindowInsets.Companion.captionBar: WindowInsets - @Composable - @NonRestartableComposable - get() = captionBar - -/** - * For the [WindowInsetsCompat.Type.displayCutout]. This insets represents the area that the - * display cutout (e.g. for camera) is and important content should be excluded from. - */ -actual val WindowInsets.Companion.displayCutout: WindowInsets - @Composable - @NonRestartableComposable - get() = displayCutout - -/** - * For the [WindowInsetsCompat.Type.ime]. On API level 23 (M) and above, the soft keyboard can be - * detected and [ime] will update when it shows. On API 30 (R) and above, the [ime] insets will - * animate synchronously with the actual IME animation. - * - * Developers should set `android:windowSoftInputMode="adjustResize"` in their - * `AndroidManifest.xml` file and call `WindowCompat.setDecorFitsSystemWindows(window, false)` - * in their [android.app.Activity.onCreate]. - */ -actual val WindowInsets.Companion.ime: WindowInsets - @Composable - @NonRestartableComposable - get() = ime - -/** - * For the [WindowInsetsCompat.Type.mandatorySystemGestures]. These insets represents the - * space where system gestures have priority over application gestures. - */ -actual val WindowInsets.Companion.mandatorySystemGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = mandatorySystemGestures - -/** - * For the [WindowInsetsCompat.Type.navigationBars]. These insets represent where - * system UI places navigation bars. Interactive UI should avoid the navigation bars - * area. - */ -actual val WindowInsets.Companion.navigationBars: WindowInsets - @Composable - @NonRestartableComposable - get() = navigationBars - -/** - * For the [WindowInsetsCompat.Type.statusBars]. - */ -actual val WindowInsets.Companion.statusBars: WindowInsets - @Composable - @NonRestartableComposable - get() = statusBars - -/** - * For the [WindowInsetsCompat.Type.systemBars]. - */ -actual val WindowInsets.Companion.systemBars: WindowInsets - @Composable - @NonRestartableComposable - get() = systemBars - -/** - * For the [WindowInsetsCompat.Type.systemGestures]. - */ -actual val WindowInsets.Companion.systemGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = systemGestures - -/** - * For the [WindowInsetsCompat.Type.tappableElement]. - */ -actual val WindowInsets.Companion.tappableElement: WindowInsets - @Composable - @NonRestartableComposable - get() = tappableElement - -/** - * The insets for the curved areas in a waterfall display. - */ -actual val WindowInsets.Companion.waterfall: WindowInsets - @Composable - @NonRestartableComposable - get() = waterfall - -/** - * The insets that include areas where content may be covered by other drawn content. - * This includes all [system bars][systemBars], [display cutout][displayCutout], and - * [soft keyboard][ime]. - */ -actual val WindowInsets.Companion.safeDrawing: WindowInsets - @Composable - @NonRestartableComposable - get() = safeDrawing - -/** - * The insets that include areas where gestures may be confused with other input, - * including [system gestures][systemGestures], - * [mandatory system gestures][mandatorySystemGestures], - * [rounded display areas][waterfall], and [tappable areas][tappableElement]. - */ -actual val WindowInsets.Companion.safeGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = safeGestures - -/** - * The insets that include all areas that may be drawn over or have gesture confusion, - * including everything in [safeDrawing] and [safeGestures]. - */ -actual val WindowInsets.Companion.safeContent: WindowInsets - @Composable - @NonRestartableComposable - get() = safeContent - -/** - * The insets that the [WindowInsetsCompat.Type.captionBar] will consume if shown. - * If it cannot be shown then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.captionBarIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = captionBarIgnoringVisibility - -/** - * The insets that [WindowInsetsCompat.Type.navigationBars] will consume if shown. - * These insets represent where system UI places navigation bars. Interactive UI should - * avoid the navigation bars area. If navigation bars cannot be shown, then this will be - * empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.navigationBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = navigationBarsIgnoringVisibility - -/** - * The insets that [WindowInsetsCompat.Type.statusBars] will consume if shown. - * If the status bar can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.statusBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = statusBarsIgnoringVisibility - -/** - * The insets that [WindowInsetsCompat.Type.systemBars] will consume if shown. - * - * If system bars can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.systemBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = systemBarsIgnoringVisibility - -/** - * The insets that [WindowInsetsCompat.Type.tappableElement] will consume if active. - * - * If there are never tappable elements then this is empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.tappableElementIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = tappableElementIgnoringVisibility - -/** - * `true` when the [caption bar][captionBar] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isCaptionBarVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = isCaptionBarVisible - -/** - * `true` when the [soft keyboard][ime] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isImeVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = isImeVisible - -/** - * `true` when the [statusBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areStatusBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = areStatusBarsVisible - -/** - * `true` when the [navigationBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areNavigationBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = areNavigationBarsVisible - -/** - * `true` when the [systemBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areSystemBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = areSystemBarsVisible - -/** - * `true` when the [tappableElement] is being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isTappableElementVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = isTappableElementVisible diff --git a/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/components/BottomActionMenu.kt b/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/components/BottomActionMenu.kt index 7d71e5ca..6e22ca01 100644 --- a/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/components/BottomActionMenu.kt +++ b/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/components/BottomActionMenu.kt @@ -19,6 +19,7 @@ import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.WindowInsetsSides import androidx.compose.foundation.layout.asPaddingValues +import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size @@ -41,7 +42,6 @@ import androidx.compose.ui.hapticfeedback.HapticFeedbackType import androidx.compose.ui.platform.LocalHapticFeedback import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp -import ca.gosyer.jui.uicore.insets.navigationBars import kotlinx.collections.immutable.ImmutableList import kotlinx.coroutines.Job import kotlinx.coroutines.delay diff --git a/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/insets/WindowInsets.kt b/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/insets/WindowInsets.kt deleted file mode 100644 index e1174cf2..00000000 --- a/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/insets/WindowInsets.kt +++ /dev/null @@ -1,270 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -@file:Suppress("KDocUnresolvedReference") - -package ca.gosyer.jui.uicore.insets - -import androidx.compose.foundation.layout.ExperimentalLayoutApi -import androidx.compose.foundation.layout.WindowInsets -import androidx.compose.runtime.Composable -import androidx.compose.runtime.NonRestartableComposable - -/** - * For the [WindowInsetsCompat.Type.captionBar]. - */ -expect val WindowInsets.Companion.captionBar: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.displayCutout]. This insets represents the area that the - * display cutout (e.g. for camera) is and important content should be excluded from. - */ -expect val WindowInsets.Companion.displayCutout: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.ime]. On API level 23 (M) and above, the soft keyboard can be - * detected and [ime] will update when it shows. On API 30 (R) and above, the [ime] insets will - * animate synchronously with the actual IME animation. - * - * Developers should set `android:windowSoftInputMode="adjustResize"` in their - * `AndroidManifest.xml` file and call `WindowCompat.setDecorFitsSystemWindows(window, false)` - * in their [android.app.Activity.onCreate]. - */ -expect val WindowInsets.Companion.ime: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.mandatorySystemGestures]. These insets represents the - * space where system gestures have priority over application gestures. - */ -expect val WindowInsets.Companion.mandatorySystemGestures: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.navigationBars]. These insets represent where - * system UI places navigation bars. Interactive UI should avoid the navigation bars - * area. - */ -expect val WindowInsets.Companion.navigationBars: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.statusBars]. - */ -expect val WindowInsets.Companion.statusBars: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.systemBars]. - */ -expect val WindowInsets.Companion.systemBars: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.systemGestures]. - */ -expect val WindowInsets.Companion.systemGestures: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * For the [WindowInsetsCompat.Type.tappableElement]. - */ -expect val WindowInsets.Companion.tappableElement: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * The insets for the curved areas in a waterfall display. - */ -expect val WindowInsets.Companion.waterfall: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * The insets that include areas where content may be covered by other drawn content. - * This includes all [system bars][systemBars], [display cutout][displayCutout], and - * [soft keyboard][ime]. - */ -expect val WindowInsets.Companion.safeDrawing: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * The insets that include areas where gestures may be confused with other input, - * including [system gestures][systemGestures], - * [mandatory system gestures][mandatorySystemGestures], - * [rounded display areas][waterfall], and [tappable areas][tappableElement]. - */ -expect val WindowInsets.Companion.safeGestures: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * The insets that include all areas that may be drawn over or have gesture confusion, - * including everything in [safeDrawing] and [safeGestures]. - */ -expect val WindowInsets.Companion.safeContent: WindowInsets - @Composable - @NonRestartableComposable - get - -/** - * The insets that the [WindowInsetsCompat.Type.captionBar] will consume if shown. - * If it cannot be shown then this will be empty. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.captionBarIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * The insets that [WindowInsetsCompat.Type.navigationBars] will consume if shown. - * These insets represent where system UI places navigation bars. Interactive UI should - * avoid the navigation bars area. If navigation bars cannot be shown, then this will be - * empty. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.navigationBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * The insets that [WindowInsetsCompat.Type.statusBars] will consume if shown. - * If the status bar can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.statusBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * The insets that [WindowInsetsCompat.Type.systemBars] will consume if shown. - * - * If system bars can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.systemBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * The insets that [WindowInsetsCompat.Type.tappableElement] will consume if active. - * - * If there are never tappable elements then this is empty. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.tappableElementIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * `true` when the [caption bar][captionBar] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.isCaptionBarVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * `true` when the [soft keyboard][ime] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.isImeVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * `true` when the [statusBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.areStatusBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * `true` when the [navigationBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.areNavigationBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * `true` when the [systemBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.areSystemBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get - -/** - * `true` when the [tappableElement] is being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -expect val WindowInsets.Companion.isTappableElementVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get diff --git a/ui-core/src/desktopMain/kotlin/ca/gosyer/jui/uicore/insets/DesktopWindowInsets.kt b/ui-core/src/desktopMain/kotlin/ca/gosyer/jui/uicore/insets/DesktopWindowInsets.kt deleted file mode 100644 index 32eb3732..00000000 --- a/ui-core/src/desktopMain/kotlin/ca/gosyer/jui/uicore/insets/DesktopWindowInsets.kt +++ /dev/null @@ -1,287 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -@file:Suppress("KDocUnresolvedReference", "unused") - -package ca.gosyer.jui.uicore.insets - -import androidx.compose.foundation.layout.ExperimentalLayoutApi -import androidx.compose.foundation.layout.WindowInsets -import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.NonRestartableComposable -import androidx.compose.ui.unit.Density -import androidx.compose.ui.unit.LayoutDirection - -@Immutable -object EmptyWindowInsets : WindowInsets { - override fun getBottom(density: Density): Int = 0 - override fun getLeft( - density: Density, - layoutDirection: LayoutDirection, - ): Int = 0 - override fun getRight( - density: Density, - layoutDirection: LayoutDirection, - ): Int = 0 - override fun getTop(density: Density): Int = 0 -} - -/** - * For the [WindowInsetsCompat.Type.captionBar]. - */ -actual val WindowInsets.Companion.captionBar: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.displayCutout]. This insets represents the area that the - * display cutout (e.g. for camera) is and important content should be excluded from. - */ -actual val WindowInsets.Companion.displayCutout: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.ime]. On API level 23 (M) and above, the soft keyboard can be - * detected and [ime] will update when it shows. On API 30 (R) and above, the [ime] insets will - * animate synchronously with the actual IME animation. - * - * Developers should set `android:windowSoftInputMode="adjustResize"` in their - * `AndroidManifest.xml` file and call `WindowCompat.setDecorFitsSystemWindows(window, false)` - * in their [android.app.Activity.onCreate]. - */ -actual val WindowInsets.Companion.ime: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.mandatorySystemGestures]. These insets represents the - * space where system gestures have priority over application gestures. - */ -actual val WindowInsets.Companion.mandatorySystemGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.navigationBars]. These insets represent where - * system UI places navigation bars. Interactive UI should avoid the navigation bars - * area. - */ -actual val WindowInsets.Companion.navigationBars: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.statusBars]. - */ -actual val WindowInsets.Companion.statusBars: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.systemBars]. - */ -actual val WindowInsets.Companion.systemBars: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.systemGestures]. - */ -actual val WindowInsets.Companion.systemGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.tappableElement]. - */ -actual val WindowInsets.Companion.tappableElement: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets for the curved areas in a waterfall display. - */ -actual val WindowInsets.Companion.waterfall: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that include areas where content may be covered by other drawn content. - * This includes all [system bars][systemBars], [display cutout][displayCutout], and - * [soft keyboard][ime]. - */ -actual val WindowInsets.Companion.safeDrawing: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that include areas where gestures may be confused with other input, - * including [system gestures][systemGestures], - * [mandatory system gestures][mandatorySystemGestures], - * [rounded display areas][waterfall], and [tappable areas][tappableElement]. - */ -actual val WindowInsets.Companion.safeGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that include all areas that may be drawn over or have gesture confusion, - * including everything in [safeDrawing] and [safeGestures]. - */ -actual val WindowInsets.Companion.safeContent: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that the [WindowInsetsCompat.Type.captionBar] will consume if shown. - * If it cannot be shown then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.captionBarIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.navigationBars] will consume if shown. - * These insets represent where system UI places navigation bars. Interactive UI should - * avoid the navigation bars area. If navigation bars cannot be shown, then this will be - * empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.navigationBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.statusBars] will consume if shown. - * If the status bar can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.statusBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.systemBars] will consume if shown. - * - * If system bars can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.systemBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.tappableElement] will consume if active. - * - * If there are never tappable elements then this is empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.tappableElementIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * `true` when the [caption bar][captionBar] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isCaptionBarVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [soft keyboard][ime] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isImeVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [statusBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areStatusBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [navigationBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areNavigationBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [systemBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areSystemBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [tappableElement] is being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isTappableElementVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false diff --git a/ui-core/src/iosMain/kotlin/ca/gosyer/jui/uicore/insets/IosWindowInsets.kt b/ui-core/src/iosMain/kotlin/ca/gosyer/jui/uicore/insets/IosWindowInsets.kt deleted file mode 100644 index 32eb3732..00000000 --- a/ui-core/src/iosMain/kotlin/ca/gosyer/jui/uicore/insets/IosWindowInsets.kt +++ /dev/null @@ -1,287 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -@file:Suppress("KDocUnresolvedReference", "unused") - -package ca.gosyer.jui.uicore.insets - -import androidx.compose.foundation.layout.ExperimentalLayoutApi -import androidx.compose.foundation.layout.WindowInsets -import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.NonRestartableComposable -import androidx.compose.ui.unit.Density -import androidx.compose.ui.unit.LayoutDirection - -@Immutable -object EmptyWindowInsets : WindowInsets { - override fun getBottom(density: Density): Int = 0 - override fun getLeft( - density: Density, - layoutDirection: LayoutDirection, - ): Int = 0 - override fun getRight( - density: Density, - layoutDirection: LayoutDirection, - ): Int = 0 - override fun getTop(density: Density): Int = 0 -} - -/** - * For the [WindowInsetsCompat.Type.captionBar]. - */ -actual val WindowInsets.Companion.captionBar: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.displayCutout]. This insets represents the area that the - * display cutout (e.g. for camera) is and important content should be excluded from. - */ -actual val WindowInsets.Companion.displayCutout: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.ime]. On API level 23 (M) and above, the soft keyboard can be - * detected and [ime] will update when it shows. On API 30 (R) and above, the [ime] insets will - * animate synchronously with the actual IME animation. - * - * Developers should set `android:windowSoftInputMode="adjustResize"` in their - * `AndroidManifest.xml` file and call `WindowCompat.setDecorFitsSystemWindows(window, false)` - * in their [android.app.Activity.onCreate]. - */ -actual val WindowInsets.Companion.ime: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.mandatorySystemGestures]. These insets represents the - * space where system gestures have priority over application gestures. - */ -actual val WindowInsets.Companion.mandatorySystemGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.navigationBars]. These insets represent where - * system UI places navigation bars. Interactive UI should avoid the navigation bars - * area. - */ -actual val WindowInsets.Companion.navigationBars: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.statusBars]. - */ -actual val WindowInsets.Companion.statusBars: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.systemBars]. - */ -actual val WindowInsets.Companion.systemBars: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.systemGestures]. - */ -actual val WindowInsets.Companion.systemGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * For the [WindowInsetsCompat.Type.tappableElement]. - */ -actual val WindowInsets.Companion.tappableElement: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets for the curved areas in a waterfall display. - */ -actual val WindowInsets.Companion.waterfall: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that include areas where content may be covered by other drawn content. - * This includes all [system bars][systemBars], [display cutout][displayCutout], and - * [soft keyboard][ime]. - */ -actual val WindowInsets.Companion.safeDrawing: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that include areas where gestures may be confused with other input, - * including [system gestures][systemGestures], - * [mandatory system gestures][mandatorySystemGestures], - * [rounded display areas][waterfall], and [tappable areas][tappableElement]. - */ -actual val WindowInsets.Companion.safeGestures: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that include all areas that may be drawn over or have gesture confusion, - * including everything in [safeDrawing] and [safeGestures]. - */ -actual val WindowInsets.Companion.safeContent: WindowInsets - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that the [WindowInsetsCompat.Type.captionBar] will consume if shown. - * If it cannot be shown then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.captionBarIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.navigationBars] will consume if shown. - * These insets represent where system UI places navigation bars. Interactive UI should - * avoid the navigation bars area. If navigation bars cannot be shown, then this will be - * empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.navigationBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.statusBars] will consume if shown. - * If the status bar can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.statusBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.systemBars] will consume if shown. - * - * If system bars can never be shown, then this will be empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.systemBarsIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * The insets that [WindowInsetsCompat.Type.tappableElement] will consume if active. - * - * If there are never tappable elements then this is empty. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.tappableElementIgnoringVisibility: WindowInsets - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = EmptyWindowInsets - -/** - * `true` when the [caption bar][captionBar] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isCaptionBarVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [soft keyboard][ime] is being displayed, irrespective of - * whether it intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isImeVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [statusBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areStatusBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [navigationBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areNavigationBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [systemBars] are being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.areSystemBarsVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false - -/** - * `true` when the [tappableElement] is being displayed, irrespective of - * whether they intersects with the Window. - */ -@ExperimentalLayoutApi -actual val WindowInsets.Companion.isTappableElementVisible: Boolean - @Suppress("OPT_IN_MARKER_ON_WRONG_TARGET") - @ExperimentalLayoutApi - @Composable - @NonRestartableComposable - get() = false