mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Implement choice between gradient and plasma for boot animation shine
This commit is contained in:
parent
97248d28f2
commit
accb8bba37
@ -97,9 +97,13 @@ export -f generateBootAnimationMask;
|
|||||||
|
|
||||||
generateBootAnimationShine() {
|
generateBootAnimationShine() {
|
||||||
color=$1;
|
color=$1;
|
||||||
output=$2;
|
style=$2;
|
||||||
#convert -size 1024x128 -define gradient:angle=90 plasma:"$color" \( +clone -flop \) +append "$output";
|
output=$3;
|
||||||
convert -size 2048x128 plasma:"$color" "$output";
|
if [ "$style" = "gradient"]; then
|
||||||
|
convert -size 1024x128 -define gradient:angle=90 plasma:"$color" \( +clone -flop \) +append "$output";
|
||||||
|
elif [ "$style" = "plasma" ]; then
|
||||||
|
convert -size 2048x128 plasma:"$color" "$output";
|
||||||
|
fi;
|
||||||
}
|
}
|
||||||
export -f generateBootAnimationShine;
|
export -f generateBootAnimationShine;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ sed -i '/CM_TARGET_PACKAGE/s/lineage/'"$REBRAND_ZIP_PREFIX"'/' core/Makefile;
|
|||||||
|
|
||||||
enter "frameworks/base";
|
enter "frameworks/base";
|
||||||
generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png;
|
generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png;
|
||||||
generateBootAnimationShine "$REBRAND_BOOTANIMATION_COLOR" core/res/assets/images/android-logo-shine.png;
|
generateBootAnimationShine "$REBRAND_BOOTANIMATION_COLOR" "$REBRAND_BOOTANIMATION_STYLE" core/res/assets/images/android-logo-shine.png;
|
||||||
|
|
||||||
enter "packages/apps/Settings";
|
enter "packages/apps/Settings";
|
||||||
sed -i '/.*cmlicense_title/s/LineageOS/'"$REBRAND_NAME"'/' res/values*/cm_strings.xml;
|
sed -i '/.*cmlicense_title/s/LineageOS/'"$REBRAND_NAME"'/' res/values*/cm_strings.xml;
|
||||||
|
@ -36,7 +36,7 @@ sed -i 's|echo "ro.build.host=`hostname`"|echo "ro.build.host=dosbm"|' tools/bui
|
|||||||
|
|
||||||
enter "frameworks/base";
|
enter "frameworks/base";
|
||||||
generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png;
|
generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png;
|
||||||
generateBootAnimationShine "$REBRAND_BOOTANIMATION_COLOR" core/res/assets/images/android-logo-shine.png;
|
generateBootAnimationShine "$REBRAND_BOOTANIMATION_COLOR" "$REBRAND_BOOTANIMATION_STYLE" core/res/assets/images/android-logo-shine.png;
|
||||||
|
|
||||||
enter "lineage-sdk";
|
enter "lineage-sdk";
|
||||||
sed -i '/.*lineage_version/s/LineageOS/'"$REBRAND_NAME"'/' lineage/res/res/values*/strings.xml;
|
sed -i '/.*lineage_version/s/LineageOS/'"$REBRAND_NAME"'/' lineage/res/res/values*/strings.xml;
|
||||||
|
@ -36,6 +36,7 @@ export NON_COMMERCIAL_USE_PATCHES=false; #Switch to false to prevent inclusion o
|
|||||||
export REBRAND_NAME="DivestOS";
|
export REBRAND_NAME="DivestOS";
|
||||||
export REBRAND_ZIP_PREFIX="divested";
|
export REBRAND_ZIP_PREFIX="divested";
|
||||||
export REBRAND_BOOTANIMATION_FONT="Fira-Sans-Bold"; #Options: $ convert -list font
|
export REBRAND_BOOTANIMATION_FONT="Fira-Sans-Bold"; #Options: $ convert -list font
|
||||||
|
export REBRAND_BOOTANIMATION_STYLE="plasma"; #Options: gradient, plasma
|
||||||
#export REBRAND_BOOTANIMATION_COLOR="#FF5722-#FF8A65"; #gradient
|
#export REBRAND_BOOTANIMATION_COLOR="#FF5722-#FF8A65"; #gradient
|
||||||
export REBRAND_BOOTANIMATION_COLOR="#FF5722-#03A9F4"; #plasma
|
export REBRAND_BOOTANIMATION_COLOR="#FF5722-#03A9F4"; #plasma
|
||||||
export REBRAND_LEGAL="https://divestos.xyz/index.php?page=privacy_policy";
|
export REBRAND_LEGAL="https://divestos.xyz/index.php?page=privacy_policy";
|
||||||
|
Loading…
Reference in New Issue
Block a user