Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
GrakovNe committed Nov 29, 2024
1 parent d6ba045 commit e97a08f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ fun PlayerScreen(
)
} else {
PlayingQueuePlaceholderComposable(
libraryViewModel = libraryViewModel,
modifier = Modifier,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,23 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import com.valentinilk.shimmer.shimmer
import org.grakovne.lissen.R
import org.grakovne.lissen.ui.screens.player.composable.provideNowPlayingTitle
import org.grakovne.lissen.viewmodel.LibraryViewModel

@Composable
fun PlayingQueuePlaceholderComposable(modifier: Modifier = Modifier) {
fun PlayingQueuePlaceholderComposable(
libraryViewModel: LibraryViewModel,
modifier: Modifier = Modifier,
) {
val context = LocalContext.current

Column(modifier = modifier.padding(horizontal = 16.dp)) {
Text(
text = stringResource(R.string.player_screen_library_playing_title),
text = provideNowPlayingTitle(libraryViewModel.fetchPreferredLibraryType(), context),
fontSize = typography.titleMedium.fontSize * 1.25f,
fontWeight = FontWeight.SemiBold,
color = MaterialTheme.colorScheme.primary,
Expand Down

0 comments on commit e97a08f

Please sign in to comment.