From 5ceb58e6de987fd48842fd9a8b5ca4748fe875cc Mon Sep 17 00:00:00 2001 From: shabinder Date: Sun, 14 Feb 2021 05:29:58 +0530 Subject: [PATCH] Spotify Req Fix. --- .../shabinder/common/main/SpotiFlyerMainUi.kt | 1 - .../shabinder/common/root/SpotiFlyerRootUi.kt | 16 +++++++--------- .../common/di/spotify/SpotifyRequests.kt | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/main/SpotiFlyerMainUi.kt b/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/main/SpotiFlyerMainUi.kt index 35146168..54b677cb 100644 --- a/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/main/SpotiFlyerMainUi.kt +++ b/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/main/SpotiFlyerMainUi.kt @@ -36,7 +36,6 @@ fun SpotiFlyerMainContent(component: SpotiFlyerMain){ val model by component.models.collectAsState(SpotiFlyerMain.State()) Column { - SearchPanel( model.link, component::onInputLinkChanged, diff --git a/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/root/SpotiFlyerRootUi.kt b/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/root/SpotiFlyerRootUi.kt index 16676bd6..439d3864 100644 --- a/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/root/SpotiFlyerRootUi.kt +++ b/common/compose-ui/src/commonMain/kotlin/com/shabinder/common/root/SpotiFlyerRootUi.kt @@ -4,9 +4,9 @@ import androidx.compose.animation.core.* import androidx.compose.animation.core.Spring.StiffnessLow import androidx.compose.foundation.Image import androidx.compose.foundation.layout.* -import androidx.compose.material.MaterialTheme -import androidx.compose.material.Text -import androidx.compose.material.TopAppBar +import androidx.compose.material.* +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Settings import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier @@ -108,15 +108,13 @@ fun AppBar( ) } }, - /*actions = { - Providers(AmbientContentAlpha provides ContentAlpha.medium) { + actions = { IconButton( - onClick = { *//* TODO: Open Preferences*//* } + onClick = { /*TODO: Open Preferences*/ } ) { - Icon(Icons.Filled.Settings, tint = Color.Gray) + Icon(Icons.Filled.Settings,"Preferences", tint = Color.Gray) } - } - },*/ + }, modifier = modifier, elevation = 0.dp ) diff --git a/common/dependency-injection/src/commonMain/kotlin/com/shabinder/common/di/spotify/SpotifyRequests.kt b/common/dependency-injection/src/commonMain/kotlin/com/shabinder/common/di/spotify/SpotifyRequests.kt index 7c078364..a561303c 100644 --- a/common/dependency-injection/src/commonMain/kotlin/com/shabinder/common/di/spotify/SpotifyRequests.kt +++ b/common/dependency-injection/src/commonMain/kotlin/com/shabinder/common/di/spotify/SpotifyRequests.kt @@ -7,7 +7,7 @@ import com.shabinder.common.models.spotify.Track import io.ktor.client.* import io.ktor.client.request.* -private const val BASE_URL = "https://api.spotify.com/v1/" +private const val BASE_URL = "https://api.spotify.com/v1" interface SpotifyRequests {