Tweak some icon colors

This commit is contained in:
MM20
2022-06-18 19:13:00 +02:00
parent 6de89f3f79
commit e8936eb0b4
10 changed files with 34 additions and 31 deletions
@@ -99,13 +99,13 @@ fun ShapedLauncherIcon(
IconLayer(
it.backgroundLayer,
size,
colorTone = if (!LocalDarkTheme.current) 30 else 90,
colorTone = if (LocalDarkTheme.current) 30 else 90,
MaterialTheme.colorScheme.primaryContainer
)
IconLayer(
it.foregroundLayer,
size,
colorTone = if (!LocalDarkTheme.current) 90 else 10,
colorTone = if (LocalDarkTheme.current) 90 else 10,
MaterialTheme.colorScheme.onPrimaryContainer
)
}
@@ -1,5 +1,6 @@
package de.mm20.launcher2.ui.settings.appearance
import android.graphics.drawable.ColorDrawable
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
@@ -374,7 +375,11 @@ fun IconShapePreference(
)!!,
scale = 1.5f,
),
ColorLayer(LocalContext.current.getColor(R.color.ic_launcher_background))
backgroundLayer = StaticIconLayer(
icon = ColorDrawable(
LocalContext.current.getColor(R.color.ic_launcher_background)
)
)
),
onClick = {
onValueChanged(it)