use primary color as exported theme name

This commit is contained in:
Wind He 2025-05-06 18:12:13 +08:00
parent a92e82e2e2
commit a809631f55
No known key found for this signature in database

View File

@ -324,8 +324,9 @@ sealed class Theme : Parcelable {
genericActiveForegroundColor = onPrimary
)
@OptIn(ExperimentalStdlibApi::class)
fun toCustom() = Custom(
name = name,
name = name + "#" + this.accentKeyBackgroundColor.toHexString(), // Use primary color as identifier
isDark = isDark,
backgroundImage = null,
backgroundColor = backgroundColor,