Add force themed icon to icon suggestions

This commit is contained in:
MM20
2022-08-01 20:28:21 +02:00
parent 6b33d4fcd7
commit 56e8471373
2 changed files with 38 additions and 19 deletions
@@ -93,6 +93,7 @@ sealed class CustomIcon : CustomAttribute {
bgColor = payload.getInt("bg_color")
)
}
"force_themed_icon" -> ForceThemedIcon
else -> null
}
}
@@ -152,6 +153,14 @@ data class CustomThemedIcon(
}
}
object ForceThemedIcon : CustomIcon() {
override fun toDatabaseValue(): String {
return jsonObjectOf(
"type" to "force_themed_icon"
).toString()
}
}
/**
* Use default icon, ignore any icon pack, themed icon or force adaptive settings.
*/