Skip to content

Commit

Permalink
Smaller icons on library item icons and "Add to playlist" dialog (#288)
Browse files Browse the repository at this point in the history
* Translated 5 strings in Korean translation

* Completed Korean Translation

* Revert "Completed Korean Translation"

This reverts commit b2034f9.

* Completed Korean Translation (edit)

* Smaller icons on library item icons and "Add to playlist" dialog

* Changed the + icon alignment in AddToPlaylistDialog.kt
  • Loading branch information
unsignedchar-256 authored Aug 24, 2024
1 parent 74bd123 commit 7e63e7b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
14 changes: 8 additions & 6 deletions app/src/main/java/com/malopieds/innertune/ui/component/Items.kt
Original file line number Diff line number Diff line change
Expand Up @@ -990,11 +990,13 @@ fun PlaylistListItem(
}
when (playlist.thumbnails.size) {
0 ->
Icon(
painter = painterResource(painter),
contentDescription = null,
modifier = Modifier.size(ListThumbnailSize),
)
Box(modifier = Modifier.size(ListThumbnailSize)) {
Icon(
painter = painterResource(painter),
contentDescription = null,
modifier = Modifier.size(24.dp).align(Alignment.Center),
)
}

1 ->
AsyncImage(
Expand Down Expand Up @@ -1076,7 +1078,7 @@ fun PlaylistGridItem(
tint = LocalContentColor.current.copy(alpha = 0.8f),
modifier =
Modifier
.size(width / 2)
.size(48.dp)
.align(Alignment.Center),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.malopieds.innertune.ui.menu

import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Icon
Expand All @@ -14,10 +16,12 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.malopieds.innertune.LocalDatabase
import com.malopieds.innertune.R
import com.malopieds.innertune.constants.ListThumbnailSize
Expand Down Expand Up @@ -56,12 +60,16 @@ fun AddToPlaylistDialog(
ListItem(
title = stringResource(R.string.create_playlist),
thumbnailContent = {
Image(
painter = painterResource(R.drawable.add),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.onBackground),
modifier = Modifier.size(ListThumbnailSize),
)
Box(
modifier = Modifier.size(ListThumbnailSize)
) {
Image(
painter = painterResource(R.drawable.add),
contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.onBackground),
modifier = Modifier.size(24.dp).align(Alignment.Center),
)
}
},
modifier =
Modifier.clickable {
Expand Down

0 comments on commit 7e63e7b

Please sign in to comment.