mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Fake extension repo url so that certain K company didn't go for my *ss
This commit is contained in:
parent
c602b913e8
commit
ca5ec72c04
1 changed files with 10 additions and 2 deletions
|
@ -3,6 +3,7 @@ package dev.yokai.presentation.extension.repo.component
|
|||
import android.content.res.Configuration
|
||||
import androidx.compose.foundation.basicMarquee
|
||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.icons.Icons
|
||||
|
@ -58,7 +59,9 @@ fun ExtensionRepoItem(
|
|||
)
|
||||
if (repoUrl != null) {
|
||||
Text(
|
||||
modifier = Modifier.weight(1.0f).basicMarquee(),
|
||||
modifier = Modifier
|
||||
.weight(1.0f)
|
||||
.basicMarquee(),
|
||||
text = repoUrl,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
fontSize = 16.sp,
|
||||
|
@ -117,7 +120,12 @@ fun ExtensionRepoItem(
|
|||
@Preview(name = "Light", uiMode = Configuration.UI_MODE_NIGHT_NO, showBackground = true)
|
||||
@Composable
|
||||
fun ExtensionRepoItemPreview() {
|
||||
val input = "https://raw.githubusercontent.com/null2264/totally-real-extensions/repo/index.min.json"
|
||||
Surface {
|
||||
ExtensionRepoItem(repoUrl = "https://raw.githubusercontent.com/keiyoushi/extensions/repo/index.min.json")
|
||||
Column {
|
||||
ExtensionRepoItem(repoUrl = input)
|
||||
ExtensionRepoItem(inputHint = "Url")
|
||||
ExtensionRepoItem(inputHint = "Url", inputText = input)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue