No more warnings 1.4Beta

This commit is contained in:
inhale-dir 2024-12-13 13:20:13 +01:00
parent 10341bf86c
commit 0b1b327b23

View File

@ -14,6 +14,9 @@ import androidx.compose.foundation.verticalScroll
import androidx.compose.foundation.rememberScrollState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.automirrored.filled.List
import androidx.compose.material.icons.automirrored.filled.NavigateBefore
import androidx.compose.material.icons.automirrored.filled.NavigateNext
import androidx.compose.material.icons.filled.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
@ -72,9 +75,6 @@ fun ReaderScreen(
val backgroundColor = MaterialTheme.colorScheme.background.toArgb()
val textColor = MaterialTheme.colorScheme.onBackground.toArgb()
// Add state for reading position
var currentReadingPosition by remember { mutableStateOf(0) }
LaunchedEffect(Unit) {
try {
currentSettings = settingsStore.getSettings()
@ -171,7 +171,7 @@ fun ReaderScreen(
},
actions = {
IconButton(onClick = { showChapterList = true }) {
Icon(Icons.Default.List, contentDescription = "Chapters")
Icon(Icons.AutoMirrored.Filled.List, contentDescription = "Chapters")
}
IconButton(onClick = { showSettings = true }) {
Icon(Icons.Default.Settings, contentDescription = "Settings")
@ -260,7 +260,7 @@ fun ReaderScreen(
onClick = { if (currentChapterIndex > 0) currentChapterIndex-- },
enabled = currentChapterIndex > 0
) {
Icon(Icons.Default.NavigateBefore, "Previous chapter")
Icon(Icons.AutoMirrored.Filled.NavigateBefore, "Previous chapter")
}
Text(
@ -272,7 +272,7 @@ fun ReaderScreen(
onClick = { if (currentChapterIndex < chapters.size - 1) currentChapterIndex++ },
enabled = currentChapterIndex < chapters.size - 1
) {
Icon(Icons.Default.NavigateNext, "Next chapter")
Icon(Icons.AutoMirrored.Filled.NavigateNext, "Next chapter")
}
}
}