Skip to content

Commit 041aa50

Browse files
ArthurKun21wowuz
authored andcommitted
update support icons (Fate-Grand-Automata#1963)
1 parent e61e7db commit 041aa50

File tree

11 files changed

+4
-3
lines changed

11 files changed

+4
-3
lines changed

app/src/main/java/io/github/fate_grand_automata/ui/battle_config_item/SupportGroup.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import androidx.compose.ui.layout.ContentScale
4040
import androidx.compose.ui.res.painterResource
4141
import androidx.compose.ui.res.stringResource
4242
import androidx.compose.ui.unit.dp
43+
import coil3.compose.AsyncImage
4344
import io.github.fate_grand_automata.R
4445
import io.github.fate_grand_automata.prefs.core.SupportPrefsCore
4546
import io.github.fate_grand_automata.scripts.enums.SupportClass
@@ -196,13 +197,13 @@ fun SupportClassPicker(
196197
else Color.Transparent
197198
}
198199

199-
Image(
200-
painterResource(it.drawable),
200+
AsyncImage(
201+
it.drawable,
201202
contentDescription = it.name,
202203
contentScale = ContentScale.Crop,
204+
alpha = alpha,
203205
modifier = Modifier
204206
.size(25.dp)
205-
.alpha(alpha)
206207
.border(2.dp, borderClass, DiamondShape)
207208
.clip(DiamondShape)
208209
.clickable {
839 Bytes
Loading
-1.74 KB
Loading
-10.8 KB
Loading
289 Bytes
Loading
-1.63 KB
Loading
-11.8 KB
Loading
-1.7 KB
Loading
-3.3 KB
Loading
-9.98 KB
Loading

0 commit comments

Comments
 (0)