mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
improve home page ui (#340)
This commit is contained in:
parent
f106c9b702
commit
030550fc47
@ -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()
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user