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( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
Spacer(Modifier.size(8.dp)) Spacer(Modifier.size(4.dp))
AddUrlButton { AddUrlButton {
component.requestAddNewDownload() component.requestAddNewDownload()
} }

View File

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

View File

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

View File

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