fix(PatchOptions): incorrect icon preview colors for different modes
This commit is contained in:
parent
01d161f712
commit
b2d0318533
2 changed files with 8 additions and 2 deletions
|
|
@ -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()) },
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue