Use a pale blue background for masked app icons
This commit is contained in:
1 parent
4380b0211b
commit
c6592f670f
6 files changed
+9
-5
No files matched your search
@@ -49,6 +49,7 @@ final class LauncherIcons {
|
||||
PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);
|
||||
manager.setComponentEnabledSetting(component(context, other),
|
||||
PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
|
||||
Log.i("LauncherIcons", "Selected " + ALIASES[icon]);
|
||||
return true;
|
||||
} catch (RuntimeException error) {
|
||||
Log.e("LauncherIcons", "Could not change launcher icon", error);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#00000000" />
|
||||
<solid android:color="#E6F1FA" />
|
||||
</shape>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 97 KiB |
@@ -2,11 +2,11 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Icon Generation Script for Inner Breeze
|
||||
# Generates transparent artwork, including padded maskable/adaptive layers.
|
||||
# Generates transparent artwork plus pale blue adaptive/maskable backgrounds.
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
ICON_BACKGROUND="#00000000"
|
||||
ICON_BACKGROUND="#E6F1FA"
|
||||
AIR_SOURCE="$PROJECT_ROOT/assets/app/source-icon-air.png"
|
||||
SOURCE_IMAGE="${1:-$PROJECT_ROOT/assets/app/source-icon.png}"
|
||||
|
||||
@@ -34,7 +34,7 @@ if [ ! -f "$SOURCE_IMAGE" ]; then
|
||||
fi
|
||||
|
||||
echo "✅ Using source image: $SOURCE_IMAGE"
|
||||
echo "🎨 Maskable/adaptive background color: $ICON_BACKGROUND (Transparent)"
|
||||
echo "🎨 Maskable/adaptive background color: $ICON_BACKGROUND (Pale Blue)"
|
||||
echo
|
||||
|
||||
# Create output directories
|
||||
@@ -79,7 +79,10 @@ generate_transparent() {
|
||||
generate_maskable() {
|
||||
local size=$1 output=$2
|
||||
local logo_size=$((size * 4 / 5))
|
||||
generate_transparent "$size" "$output" "$logo_size"
|
||||
generate_transparent "$size" "$WORK_DIR/maskable.png" "$logo_size"
|
||||
magick "$WORK_DIR/maskable.png" -background "$ICON_BACKGROUND" \
|
||||
-alpha remove -alpha off -strip \
|
||||
-define png:exclude-chunk=time "$output"
|
||||
}
|
||||
|
||||
write_android_background() {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 97 KiB |
Reference in new issue
Block a user