From a809631f554710ad0831a13433527f0a1f757f21 Mon Sep 17 00:00:00 2001 From: Wind He Date: Tue, 6 May 2025 18:12:13 +0800 Subject: [PATCH] use primary color as exported theme name --- app/src/main/java/org/fcitx/fcitx5/android/data/theme/Theme.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/fcitx/fcitx5/android/data/theme/Theme.kt b/app/src/main/java/org/fcitx/fcitx5/android/data/theme/Theme.kt index bf0a8da4..d7f2791b 100644 --- a/app/src/main/java/org/fcitx/fcitx5/android/data/theme/Theme.kt +++ b/app/src/main/java/org/fcitx/fcitx5/android/data/theme/Theme.kt @@ -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,