mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-12-22 20:57:54 +01:00
Compose->build152
This commit is contained in:
parent
b5de14ae75
commit
a186a1a1e7
@ -13,13 +13,4 @@ allprojects {
|
||||
maven(url = "https://kotlin.bintray.com/kotlin-js-wrappers/")
|
||||
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||||
}
|
||||
}
|
||||
/*
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
|
||||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
|
||||
)
|
||||
}
|
||||
}*/
|
||||
}
|
@ -67,7 +67,7 @@ object JetBrains {
|
||||
|
||||
object Compose {
|
||||
// __LATEST_COMPOSE_RELEASE_VERSION__
|
||||
const val VERSION = "0.3.0-build150"
|
||||
const val VERSION = "0.3.0-build152"
|
||||
const val gradlePlugin = "org.jetbrains.compose:compose-gradle-plugin:$VERSION"
|
||||
}
|
||||
}
|
||||
|
@ -76,11 +76,11 @@ fun TrackCard(
|
||||
pic = pic,
|
||||
"Album Art",
|
||||
modifier = Modifier
|
||||
.preferredWidth(75.dp)
|
||||
.preferredHeight(90.dp)
|
||||
.width(75.dp)
|
||||
.height(90.dp)
|
||||
.clip(MaterialTheme.shapes.medium)
|
||||
)
|
||||
Column(modifier = Modifier.padding(horizontal = 8.dp).preferredHeight(60.dp).weight(1f),verticalArrangement = Arrangement.SpaceEvenly) {
|
||||
Column(modifier = Modifier.padding(horizontal = 8.dp).height(60.dp).weight(1f),verticalArrangement = Arrangement.SpaceEvenly) {
|
||||
Text(track.title,maxLines = 1,overflow = TextOverflow.Ellipsis,style = SpotiFlyerTypography.h6,color = colorAccent)
|
||||
Row(
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
@ -138,8 +138,8 @@ fun CoverImage(
|
||||
pic,
|
||||
"Cover Image",
|
||||
modifier = Modifier
|
||||
.preferredWidth(210.dp)
|
||||
.preferredHeight(230.dp)
|
||||
.width(210.dp)
|
||||
.height(230.dp)
|
||||
.clip(MaterialTheme.shapes.medium)
|
||||
)
|
||||
Text(
|
||||
|
@ -235,7 +235,7 @@ fun AboutColumn(modifier: Modifier = Modifier) {
|
||||
.clickable(onClick = { openPlatform("","http://github.com/Shabinder/SpotiFlyer") }),
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
Icon(Icons.Rounded.Flag,"Help Translate",Modifier.preferredSize(32.dp))
|
||||
Icon(Icons.Rounded.Flag,"Help Translate",Modifier.size(32.dp))
|
||||
Spacer(modifier = Modifier.padding(start = 16.dp))
|
||||
Column {
|
||||
Text(
|
||||
@ -334,9 +334,9 @@ fun DownloadRecordItem(
|
||||
ImageLoad(
|
||||
pic,
|
||||
"Album Art",
|
||||
modifier = Modifier.preferredHeight(75.dp).preferredWidth(90.dp)
|
||||
modifier = Modifier.height(75.dp).width(90.dp)
|
||||
)
|
||||
Column(modifier = Modifier.padding(horizontal = 8.dp).preferredHeight(60.dp).weight(1f),verticalArrangement = Arrangement.SpaceEvenly) {
|
||||
Column(modifier = Modifier.padding(horizontal = 8.dp).height(60.dp).weight(1f),verticalArrangement = Arrangement.SpaceEvenly) {
|
||||
Text(item.name,maxLines = 1,overflow = TextOverflow.Ellipsis,style = SpotiFlyerTypography.h6,color = colorAccent)
|
||||
Row(
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
@ -366,7 +366,7 @@ fun HomeCategoryTabIndicator(
|
||||
) {
|
||||
Spacer(
|
||||
modifier.padding(horizontal = 24.dp)
|
||||
.preferredHeight(4.dp)
|
||||
.height(4.dp)
|
||||
.background(color, RoundedCornerShape(topStartPercent = 100, topEndPercent = 100))
|
||||
)
|
||||
}
|
@ -59,7 +59,7 @@ fun AppBar(
|
||||
Image(
|
||||
imageVector = SpotiFlyerLogo(),
|
||||
"SpotiFlyer Logo",
|
||||
Modifier.preferredSize(32.dp),
|
||||
Modifier.size(32.dp),
|
||||
)
|
||||
Spacer(Modifier.padding(horizontal = 4.dp))
|
||||
Text(
|
||||
|
@ -1,9 +1,6 @@
|
||||
package com.shabinder.common.ui
|
||||
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.preferredSize
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.Surface
|
||||
import androidx.compose.material.Text
|
||||
@ -49,7 +46,7 @@ actual fun Toast(
|
||||
contentAlignment = Alignment.BottomCenter
|
||||
) {
|
||||
Surface(
|
||||
modifier = Modifier.preferredSize(300.dp, 70.dp),
|
||||
modifier = Modifier.size(300.dp, 70.dp),
|
||||
color = Color(23, 23, 23),
|
||||
shape = RoundedCornerShape(4.dp)
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user