mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2026-01-22 19:44:04 +01:00
Cleanup
This commit is contained in:
@@ -39,9 +39,8 @@ fun KtorImage(
|
||||
alpha: Float = DefaultAlpha,
|
||||
colorFilter: ColorFilter? = null,
|
||||
retries: Int = 3,
|
||||
httpClient: Http? = null
|
||||
client: Http = remember { AppScope.getInstance() }
|
||||
) {
|
||||
val client = remember { httpClient ?: AppScope.getInstance() }
|
||||
BoxWithConstraints {
|
||||
val drawable: MutableState<ImageBitmap?> = remember { mutableStateOf(null) }
|
||||
val loading: MutableState<Boolean> = remember { mutableStateOf(true) }
|
||||
|
||||
@@ -68,8 +68,7 @@ private class AppThemeViewModel @Inject constructor(
|
||||
val primary by colors.primaryStateFlow.collectAsState()
|
||||
val secondary by colors.secondaryStateFlow.collectAsState()
|
||||
|
||||
val material = getMaterialColors(baseTheme.colors, primary, secondary)
|
||||
return material
|
||||
return getMaterialColors(baseTheme.colors, primary, secondary)
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
Reference in New Issue
Block a user