@@ -15,7 +15,6 @@ import androidx.compose.ui.res.stringResource
15
15
import androidx.compose.ui.text.*
16
16
import androidx.compose.ui.text.font.FontWeight
17
17
import androidx.compose.ui.unit.dp
18
- import androidx.compose.ui.unit.sp
19
18
import com.aliucord.manager.R
20
19
import com.aliucord.manager.ui.components.SegmentedButton
21
20
import com.aliucord.manager.ui.screens.home.InstallData
@@ -43,7 +42,7 @@ fun InstalledItemCard(
43
42
)
44
43
) {
45
44
Column (
46
- verticalArrangement = Arrangement .spacedBy(14 .dp),
45
+ verticalArrangement = Arrangement .spacedBy(24 .dp),
47
46
modifier = Modifier .padding(20 .dp),
48
47
) {
49
48
Row (
@@ -59,12 +58,24 @@ fun InstalledItemCard(
59
58
.clip(CircleShape ),
60
59
)
61
60
62
- Text (
63
- text = " \" ${data.name} \" " ,
64
- fontWeight = FontWeight .SemiBold ,
65
- style = LocalTextStyle .current.copy(fontSize = 18 .sp),
66
- color = MaterialTheme .colorScheme.onSurfaceVariant.copy(alpha = .94f ),
67
- )
61
+ Column {
62
+ Text (
63
+ text = " \" ${data.name} \" " ,
64
+ fontWeight = FontWeight .SemiBold ,
65
+ color = MaterialTheme .colorScheme.onSurfaceVariant.copy(alpha = .94f ),
66
+ )
67
+
68
+ Text (
69
+ text = data.packageName,
70
+ style = MaterialTheme .typography.bodySmall,
71
+ color = MaterialTheme .colorScheme.onSurfaceVariant,
72
+ modifier = Modifier
73
+ .padding(start = 1 .dp)
74
+ .offset(y = (- 2 ).dp)
75
+ .alpha(.7f )
76
+ .basicMarquee(),
77
+ )
78
+ }
68
79
69
80
Spacer (Modifier .weight(1f , fill = true ))
70
81
@@ -88,77 +99,6 @@ fun InstalledItemCard(
88
99
}
89
100
}
90
101
91
- FlowRow (
92
- maxItemsInEachRow = 2 ,
93
- // horizontalArrangement = Arrangement.spacedBy(10.dp),
94
- horizontalArrangement = Arrangement .SpaceAround ,
95
- verticalArrangement = Arrangement .spacedBy(4 .dp),
96
- modifier = Modifier
97
- .fillMaxWidth()
98
- .padding(horizontal = 4 .dp),
99
- ) {
100
- Column (
101
- verticalArrangement = Arrangement .spacedBy(2 .dp),
102
- horizontalAlignment = Alignment .CenterHorizontally ,
103
- ) {
104
- Text (
105
- text = " Account:" ,
106
- style = MaterialTheme .typography.bodyMedium,
107
- color = MaterialTheme .colorScheme.onSurface,
108
- )
109
- Text (
110
- text = " rushii" ,
111
- style = MaterialTheme .typography.bodySmall,
112
- color = MaterialTheme .colorScheme.onSurfaceVariant,
113
- modifier = Modifier .basicMarquee(),
114
- )
115
- }
116
-
117
- Column (
118
- verticalArrangement = Arrangement .spacedBy(2 .dp),
119
- horizontalAlignment = Alignment .CenterHorizontally ,
120
- ) {
121
- Text (
122
- text = " Plugins:" ,
123
- style = MaterialTheme .typography.bodyMedium,
124
- color = MaterialTheme .colorScheme.onSurface,
125
- )
126
- Text (
127
- text = " 129" ,
128
- style = MaterialTheme .typography.bodySmall,
129
- color = MaterialTheme .colorScheme.onSurfaceVariant,
130
- modifier = Modifier .basicMarquee(),
131
- )
132
- }
133
-
134
- Column (
135
- verticalArrangement = Arrangement .spacedBy(2 .dp),
136
- horizontalAlignment = Alignment .CenterHorizontally ,
137
- ) {
138
- Text (
139
- text = " Package name:" ,
140
- style = MaterialTheme .typography.bodyMedium,
141
- color = MaterialTheme .colorScheme.onSurface,
142
- )
143
- Text (
144
- text = data.packageName,
145
- style = MaterialTheme .typography.bodySmall,
146
- color = MaterialTheme .colorScheme.onSurfaceVariant,
147
- modifier = Modifier .basicMarquee(),
148
- )
149
- }
150
- // LabelTextItem(
151
- // label = stringResource(R.string.label_pkg_name),
152
- // value = data.packageName,
153
- // modifier = Modifier.basicMarquee(),
154
- // )
155
- //
156
- // LabelTextItem(
157
- // label = "Plugins:",
158
- // value = "Unknown",
159
- // )
160
- }
161
-
162
102
Row (
163
103
horizontalArrangement = Arrangement .spacedBy(2 .dp),
164
104
modifier = Modifier .clip(MaterialTheme .shapes.large),
0 commit comments