Add green icon for Legacy Edition, add new string for name
|
@ -123,6 +123,9 @@ android {
|
||||||
vr {
|
vr {
|
||||||
manifest.srcFile 'VRManifest.xml'
|
manifest.srcFile 'VRManifest.xml'
|
||||||
}
|
}
|
||||||
|
legacy {
|
||||||
|
res.srcDirs = ['legacy/res']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
productFlavors {
|
productFlavors {
|
||||||
normal {
|
normal {
|
||||||
|
|
39
android/legacy/conv_color.sh
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Wirtten by ChatGPT
|
||||||
|
|
||||||
|
# Define the base directory to start the search
|
||||||
|
BASE_DIR="$1"
|
||||||
|
|
||||||
|
# Check if the base directory is provided and exists
|
||||||
|
if [ -z "$BASE_DIR" ]; then
|
||||||
|
echo "Usage: $0 /path/to/directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "$BASE_DIR" ]; then
|
||||||
|
echo "Directory $BASE_DIR does not exist."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Function to process images
|
||||||
|
process_image() {
|
||||||
|
local image_path="$1"
|
||||||
|
|
||||||
|
# Define output path (can be modified to save to a different location)
|
||||||
|
local output_path="$1" # ${image_path%.*}_tinted.${image_path##*.}"
|
||||||
|
|
||||||
|
# Apply the tint and darkening
|
||||||
|
convert "$image_path" \
|
||||||
|
-modulate 80,50,55 \
|
||||||
|
"$output_path"
|
||||||
|
|
||||||
|
echo "Processed $image_path -> $output_path"
|
||||||
|
}
|
||||||
|
|
||||||
|
export -f process_image
|
||||||
|
|
||||||
|
# Find and process image files
|
||||||
|
find "$BASE_DIR" -type f \( -iname '*.png' \) -exec bash -c 'process_image "$0"' {} \;
|
||||||
|
|
||||||
|
echo "Image processing completed."
|
3
android/legacy/icon_color.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# How to create legacy icons from regular icons
|
||||||
|
|
||||||
|
convert ic_launcher.png -modulate 80,50,55 ic_launcher.png
|
BIN
android/legacy/res/drawable-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
android/legacy/res/drawable-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
android/legacy/res/drawable-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
android/legacy/res/drawable-xhdpi/tv_banner.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
android/legacy/res/drawable-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 14 KiB |
5
android/legacy/res/mipmap-anydpi-v26/ic_launcher.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
BIN
android/legacy/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
android/legacy/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
android/legacy/res/mipmap-hdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
android/legacy/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
android/legacy/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
android/legacy/res/mipmap-mdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
android/legacy/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
android/legacy/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
android/legacy/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
android/legacy/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
android/legacy/res/mipmap-xxhdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
android/legacy/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 14 KiB |
4
android/legacy/res/values/ic_launcher_background.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ic_launcher_background">#404040</color>
|
||||||
|
</resources>
|
4
android/legacy/res/values/strings.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">PPSSPP Legacy</string>
|
||||||
|
</resources>
|
Before Width: | Height: | Size: 25 KiB |