Scale Themed icons to original app icon size
This commit is contained in:
@@ -278,7 +278,7 @@ class IconPackManager(
|
||||
return StaticLauncherIcon(
|
||||
foregroundLayer = TintedIconLayer(
|
||||
icon = drawable,
|
||||
scale = 0.5f,
|
||||
scale = 0.65f,
|
||||
),
|
||||
backgroundLayer = ColorLayer(),
|
||||
)
|
||||
|
||||
+1
-1
@@ -185,7 +185,7 @@ fun AdaptiveIconDrawableCompat.toLauncherIcon(
|
||||
if (themed && this.monochrome != null) {
|
||||
return StaticLauncherIcon(
|
||||
foregroundLayer = TintedIconLayer(
|
||||
scale = 1f,
|
||||
scale = 1.5f,
|
||||
icon = this.monochrome,
|
||||
),
|
||||
backgroundLayer = ColorLayer()
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ internal class ForceThemedIconTransformation : LauncherIconTransformation {
|
||||
is StaticIconLayer -> TintedIconLayer(
|
||||
color = 0,
|
||||
icon = layer.icon,
|
||||
scale = layer.scale / 1.5f,
|
||||
scale = layer.scale / 1.2f,
|
||||
)
|
||||
is TextLayer -> layer.copy(
|
||||
color = 0
|
||||
|
||||
Reference in New Issue
Block a user