improve home page ui (#340)

This commit is contained in:
AmirHossein Abdolmotallebi 2025-01-01 09:37:45 +03:30 committed by GitHub
parent f106c9b702
commit 030550fc47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -245,7 +245,7 @@ fun HomePage(component: HomeComponent) {
Row(
verticalAlignment = Alignment.CenterVertically,
) {
Spacer(Modifier.size(8.dp))
Spacer(Modifier.size(4.dp))
AddUrlButton {
component.requestAddNewDownload()
}

View File

@ -169,7 +169,7 @@ fun DownloadList(
)
) {
WithContentAlpha(1f) {
val shape = RoundedCornerShape(12.dp)
val shape = RoundedCornerShape(6.dp)
Box(
Modifier
.widthIn(min = getTableSize().visibleWidth)
@ -228,7 +228,7 @@ fun DownloadList(
myColors.selectionGradient(0.10f, 0.05f, selectionColor),
shape
)
.background(myColors.selectionGradient(0.15f, 0f, selectionColor))
.background(myColors.selectionGradient(0.15f, 0.03f, selectionColor))
} else {
it.border(1.dp, Color.Transparent)
}

View File

@ -33,7 +33,7 @@ fun SearchBox(
placeholder: String = myStringResource(Res.string.search_in_the_list),
modifier: Modifier,
) {
val shape = RoundedCornerShape(12.dp)
val shape = RoundedCornerShape(6.dp)
val textSize = myTextSizes.base
MyTextField(
text = text,

View File

@ -22,7 +22,7 @@ fun AddUrlButton(
modifier: Modifier=Modifier,
onClick:()->Unit
) {
val shape = RoundedCornerShape(12.dp)
val shape = RoundedCornerShape(6.dp)
val addUrlIcon = MyIcons.link
val downloadIcon = MyIcons.download
Row(