fix(PatchOptions): incorrect icon preview colors for different modes

This commit is contained in:
rushiiMachine 2025-06-01 11:25:46 -07:00
parent 01d161f712
commit b2d0318533
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
2 changed files with 8 additions and 2 deletions

View file

@ -82,7 +82,13 @@ class PatchOptionsScreen(
debuggable = model.debuggable,
setDebuggable = model::changeDebuggable,
selectedColor = iconModel.selectedColor.toColor(),
selectedColor = when (iconModel.mode) {
IconOptionsMode.Original -> PatchOptions.IconReplacement.BlurpleColor
IconOptionsMode.OldDiscord -> PatchOptions.IconReplacement.OldBlurpleColor
IconOptionsMode.Aliucord -> PatchOptions.IconReplacement.AliucordColor
IconOptionsMode.CustomColor -> iconModel.selectedColor.toColor()
IconOptionsMode.CustomImage -> null
},
oldLogo = iconModel.mode == IconOptionsMode.OldDiscord,
selectedImage = { iconModel.selectedImage },
onOpenIconOptions = { navigator.push(IconOptionsScreen()) },

View file

@ -120,7 +120,7 @@
<string name="patch_step_fetch_kt_version">Fetching target Discord version</string>
<string name="patch_step_downgrade_check">Checking for newer installations</string>
<string name="patch_step_dl_kt_apk">Downloading Discord APK</string>
<string name="patch_step_dl_kotlin">Downloading Kotlin Stdlib</string>
<string name="patch_step_dl_kotlin">Downloading Kotlin library</string>
<string name="patch_step_dl_injector">Downloading Aliucord Injector</string>
<string name="patch_step_dl_aliuhook">Downloading Aliuhook library</string>
<string name="patch_step_dl_smali">Downloading smali patches</string>