Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 16:41:32 +01:00
parent d22b8dc57b
commit 24b567c524
271 changed files with 39630 additions and 2 deletions

13
art/copy-to-other-apps.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
set -e -u
for APP in api boot styling tasker widget; do
APPDIR=../../termux-$APP
for file in ic_foreground ic_launcher; do
cp ../app/src/main/res/drawable/$file.xml \
$APPDIR/app/src/main/res/drawable/$file.xml
done
cp ../app/src/main/res/drawable-anydpi-v26/ic_launcher.xml \
$APPDIR/app/src/main/res/drawable-anydpi-v26/$file.xml
done

30
art/feature-graphic.svg Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!--
This is a feature graphic:
https://support.google.com/googleplay/android-developer/answer/1078870
- 1024px by 500px, no alpha
- Don't include any copy or important visual information near the borders of the asset,
specifically near the bottom third of the frame.
- Try to center align any logo/copy information in the vertical and horizontal center of the frame.
- If adding text, use large font sizes.
- Your graphic may be displayed alone without the app icon.
-->
<svg xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="0 0 1024 500">
<rect fill="#0" width="100%" height="100%" />
<text id="shell_prompt"
x="130"
y="330"
style="fill: #ffffff; font-size: 124px; font-family: Menlo;">
<!--
<tspan>$</tspan>
<tspan x="290">Termux</tspan>
<tspan x="734"></tspan>
-->
<tspan>$ Termux █</tspan>
</text>
</svg>

After

Width:  |  Height:  |  Size: 962 B

23
art/generate-big-icon.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
set -e -u
echo "Generating ~/termux-icons/ic_launcher.png..."
mkdir -p ~/termux-icons/
vector2svg ../app/src/main/res/drawable/ic_launcher.xml ~/termux-icons/ic_launcher.svg
sed -i "" 's/viewBox="0 0 108 108"/viewBox="18 18 72 72"/' ~/termux-icons/ic_launcher.svg
SIZE=512
rsvg-convert \
-w $SIZE \
-h $SIZE \
-o ~/termux-icons/ic_launcher_$SIZE.png \
~/termux-icons/ic_launcher.svg
rsvg-convert \
-b black \
-w $SIZE \
-h $SIZE \
-o ~/termux-icons/ic_launcher_square_$SIZE.png \
~/termux-icons/ic_launcher.svg

View file

@ -0,0 +1,5 @@
#!/bin/bash
echo "Generating feature graphics to ~/termux-icons/termux-feature-graphic.png..."
mkdir -p ~/termux-icons/
rsvg-convert feature-graphic.svg > ~/termux-icons/feature-graphic.png

20
art/generate-launcher-images.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
for DENSITY in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
case $DENSITY in
mdpi) SIZE=48;;
hdpi) SIZE=72;;
xhdpi) SIZE=96;;
xxhdpi) SIZE=144;;
xxxhdpi) SIZE=192;;
esac
FOLDER=../app/src/main/res/mipmap-$DENSITY
mkdir -p $FOLDER
for FILE in ic_launcher ic_launcher_round; do
PNG=$FOLDER/$FILE.png
rsvg-convert -w $SIZE -h $SIZE $FILE.svg > $PNG
zopflipng -y $PNG $PNG
done
done

9
art/generate-tv-banner.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
echo "Generating feature graphics to ~/termux-icons/termux-feature-graphic.png..."
mkdir -p ~/termux-icons/
# The Android TV banner on google play (1280x720) has same aspect ratio
# as the banner in the app (320x180).
rsvg-convert -w 1280 -h 720 tv-banner.svg > ~/termux-icons/tv-banner.png
rsvg-convert -w 320 -h 180 tv-banner.svg > ../app/src/main/res/drawable/banner.png

26
art/ic_launcher.svg Normal file
View file

@ -0,0 +1,26 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
<!-- Screen and border. -->
<path fill="#000"
stroke="#BFCBCD"
stroke-width="2"
d="M9,6
l30,0
q3 0,3 3
l0,30
q0 3, -3 3
l-30,0
q-3 0, -3-3
l0 -30
q0 -3, 3 -3"
/>
<!-- Block cursor. -->
<path fill="#FFF"
d="M14,14
l5,0
l0,10
l-5,0"
/>
</svg>

After

Width:  |  Height:  |  Size: 512 B

BIN
art/ic_launcher2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
art/ic_launcher2_round.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

23
art/tv-banner.svg Normal file
View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!--
This is a tv banner graphic:
https://developer.android.com/design/tv/patterns.html#banner
- Size: 320 x 180 px, xhdpi resource in app
- Size: 1280 x 720 in google play.
- Text must be included in the image. If your app is available in more
than one language, you must provide versions of the banner image for each supported language.
-->
<svg xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="0 0 1280 720">
<rect fill="#0" width="100%" height="100%" />
<text id="shell_prompt"
x="200"
y="410"
style="fill: #ffffff; font-size: 210px; font-family: Menlo, Monospace;">
<tspan>Termux ▌</tspan>
</text>
</svg>

After

Width:  |  Height:  |  Size: 736 B