lib updates
This commit is contained in:
+2
-2
@@ -3,11 +3,11 @@ package dev.meloda.overseerr.settings.model
|
||||
import dev.meloda.overseerr.appDir
|
||||
import io.github.xxfast.kstore.KStore
|
||||
import io.github.xxfast.kstore.file.storeOf
|
||||
import okio.Path.Companion.toPath
|
||||
import kotlinx.io.files.Path
|
||||
|
||||
actual class SettingsStoreProvider actual constructor() {
|
||||
|
||||
actual fun provideStore(): KStore<AppSettings> {
|
||||
return storeOf(file = "$appDir/app_settings.json".toPath())
|
||||
return storeOf(file = Path("$appDir/app_settings.json"))
|
||||
}
|
||||
}
|
||||
|
||||
+4
-6
@@ -22,9 +22,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import cafe.adriel.voyager.core.screen.Screen
|
||||
import cafe.adriel.voyager.navigator.LocalNavigator
|
||||
import cafe.adriel.voyager.navigator.currentOrThrow
|
||||
import dev.chrisbanes.haze.HazeState
|
||||
import dev.chrisbanes.haze.haze
|
||||
import dev.chrisbanes.haze.hazeChild
|
||||
import dev.chrisbanes.haze.*
|
||||
import dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi
|
||||
import dev.chrisbanes.haze.materials.HazeMaterials
|
||||
import dev.meloda.overseerr.screens.requests.RequestsViewModel
|
||||
@@ -78,7 +76,7 @@ class RequestsScreen : Screen {
|
||||
},
|
||||
colors = TopAppBarDefaults.topAppBarColors(containerColor = Color.Transparent),
|
||||
modifier = Modifier
|
||||
.hazeChild(
|
||||
.hazeEffect(
|
||||
state = hazeState,
|
||||
style = hazeStyle
|
||||
).fillMaxWidth(),
|
||||
@@ -106,7 +104,7 @@ class RequestsScreen : Screen {
|
||||
LazyColumn(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.haze(state = hazeState)
|
||||
.hazeSource(state = hazeState)
|
||||
.pullToRefresh(
|
||||
isRefreshing = screenState.isLoading,
|
||||
state = refreshState,
|
||||
@@ -159,7 +157,7 @@ class RequestsScreen : Screen {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.align(Alignment.BottomCenter)
|
||||
.hazeChild(
|
||||
.hazeEffect(
|
||||
state = hazeState,
|
||||
style = hazeStyle
|
||||
)
|
||||
|
||||
+2
-2
@@ -3,10 +3,10 @@ package dev.meloda.overseerr.settings.model
|
||||
import dev.meloda.overseerr.appDir
|
||||
import io.github.xxfast.kstore.KStore
|
||||
import io.github.xxfast.kstore.file.storeOf
|
||||
import okio.Path.Companion.toPath
|
||||
import kotlinx.io.files.Path
|
||||
|
||||
actual class SettingsStoreProvider actual constructor() {
|
||||
actual fun provideStore(): KStore<AppSettings> {
|
||||
return storeOf(file = "$appDir/app_settings.json".toPath())
|
||||
return storeOf(file = Path("$appDir/app_settings.json"))
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -3,10 +3,10 @@ package dev.meloda.overseerr.settings.model
|
||||
import dev.meloda.overseerr.appDir
|
||||
import io.github.xxfast.kstore.KStore
|
||||
import io.github.xxfast.kstore.file.storeOf
|
||||
import okio.Path.Companion.toPath
|
||||
import kotlinx.io.files.Path
|
||||
|
||||
actual class SettingsStoreProvider actual constructor() {
|
||||
actual fun provideStore(): KStore<AppSettings> {
|
||||
return storeOf(file = "$appDir/app_settings.json".toPath())
|
||||
return storeOf(file = Path("$appDir/app_settings.json"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ fun main() = application {
|
||||
state = rememberWindowState(width = 800.dp, height = 600.dp),
|
||||
onCloseRequest = ::exitApplication
|
||||
) {
|
||||
window.minimumSize = Dimension(350, 600)
|
||||
window.minimumSize = Dimension(360, 600)
|
||||
App()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user