ui: smaller QR code for short links (#5946)

* ui: smaller QR code for short links

* more small

* size

* translations
This commit is contained in:
Evgeny
2025-05-25 11:56:00 +01:00
committed by GitHub
parent ee2ea152dc
commit b848f735ce
9 changed files with 46 additions and 31 deletions
@@ -133,9 +133,9 @@ actual fun ImageBitmap.hasAlpha(): Boolean {
return false
}
actual fun ImageBitmap.addLogo(): ImageBitmap {
val radius = (width * 0.16f).toInt()
val logoSize = (width * 0.24).toInt()
actual fun ImageBitmap.addLogo(size: Float): ImageBitmap {
val radius = (width * size).toInt()
val logoSize = (width * size * 1.5).toInt()
val logo: BufferedImage = MR.images.icon_foreground_common.image
val original = toAwtImage()
val withLogo = BufferedImage(width, height, original.type)