Remove shadows

This commit is contained in:
vfsfitvnm 2022-07-27 17:28:18 +02:00
parent f5a0c2fe09
commit 4e460a1427
4 changed files with 4 additions and 11 deletions

View file

@ -26,7 +26,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.clip import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.graphics.ColorFilter import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
@ -156,7 +155,6 @@ fun ArtistScreen(browseId: String) {
} }
} }
} }
.shadow(elevation = 2.dp, shape = CircleShape)
.background( .background(
color = colorPalette.elevatedBackground, color = colorPalette.elevatedBackground,
shape = CircleShape shape = CircleShape
@ -185,8 +183,7 @@ fun ArtistScreen(browseId: String) {
} }
} }
} }
.shadow(elevation = 2.dp, shape = CircleShape) .background(
.background(
color = colorPalette.elevatedBackground, color = colorPalette.elevatedBackground,
shape = CircleShape shape = CircleShape
) )

View file

@ -27,7 +27,6 @@ import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.graphics.ColorFilter import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
@ -177,7 +176,6 @@ fun BackupAndRestoreScreen() {
val dateFormat = SimpleDateFormat("yyyyMMddHHmmss") val dateFormat = SimpleDateFormat("yyyyMMddHHmmss")
backupLauncher.launch("vimusic_${dateFormat.format(Date())}.db") backupLauncher.launch("vimusic_${dateFormat.format(Date())}.db")
} }
.shadow(elevation = 8.dp, shape = CircleShape)
.background( .background(
color = colorPalette.elevatedBackground, color = colorPalette.elevatedBackground,
shape = CircleShape shape = CircleShape
@ -212,8 +210,7 @@ fun BackupAndRestoreScreen() {
.clickable { .clickable {
isShowingRestoreDialog = true isShowingRestoreDialog = true
} }
.shadow(elevation = 8.dp, shape = CircleShape) .background(
.background(
color = colorPalette.elevatedBackground, color = colorPalette.elevatedBackground,
shape = CircleShape shape = CircleShape
) )

View file

@ -61,8 +61,8 @@ val BlackColorPalette = DarkColorPalette.copy(
val LightColorPalette = ColorPalette( val LightColorPalette = ColorPalette(
background = Color(0xfffdfdfe), background = Color(0xfffdfdfe),
lightBackground = Color(0xFFf8f8fc), lightBackground = Color(0xfff8f8fc),
elevatedBackground = Color(0xfffdfdfe), elevatedBackground = Color(0xfff8f8fc),
backgroundContainer = Color(0xffeaeaf5), backgroundContainer = Color(0xffeaeaf5),
lightGray = Color(0xfff8f8f8), lightGray = Color(0xfff8f8f8),
gray = Color(0xFFE5E5E5), gray = Color(0xFFE5E5E5),

View file

@ -212,7 +212,6 @@ fun CurrentPlaylistView(
interactionSource = remember { MutableInteractionSource() }, interactionSource = remember { MutableInteractionSource() },
onClick = layoutState::collapseSoft onClick = layoutState::collapseSoft
) )
.shadow(elevation = 8.dp)
.height(64.dp) .height(64.dp)
.background(colorPalette.elevatedBackground) .background(colorPalette.elevatedBackground)
.fillMaxWidth() .fillMaxWidth()