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