diff options
-rw-r--r-- | client/.gitignore | 2 | ||||
-rw-r--r-- | client/icons/adaptive-background.png | bin | 29640 -> 0 bytes | |||
-rw-r--r-- | client/icons/adaptive-background.png.import | 34 | ||||
-rw-r--r-- | client/icons/adaptive-foreground.png | bin | 30543 -> 0 bytes | |||
-rw-r--r-- | client/icons/adaptive-foreground.png.import | 34 | ||||
-rw-r--r-- | client/makefile | 8 |
6 files changed, 9 insertions, 69 deletions
diff --git a/client/.gitignore b/client/.gitignore index a1c6d43d..03408ec6 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -1,3 +1,5 @@ .godot /po /menu/book/book_*.webp* +/icons/* +!/icons/main.png diff --git a/client/icons/adaptive-background.png b/client/icons/adaptive-background.png Binary files differdeleted file mode 100644 index 89210166..00000000 --- a/client/icons/adaptive-background.png +++ /dev/null diff --git a/client/icons/adaptive-background.png.import b/client/icons/adaptive-background.png.import deleted file mode 100644 index 2f2c4986..00000000 --- a/client/icons/adaptive-background.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://dtdr43etagqpk" -path="res://.godot/imported/adaptive-background.png-76ee64c65d33fb62c738c6bcbf80825d.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://icons/adaptive-background.png" -dest_files=["res://.godot/imported/adaptive-background.png-76ee64c65d33fb62c738c6bcbf80825d.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/client/icons/adaptive-foreground.png b/client/icons/adaptive-foreground.png Binary files differdeleted file mode 100644 index 255d494c..00000000 --- a/client/icons/adaptive-foreground.png +++ /dev/null diff --git a/client/icons/adaptive-foreground.png.import b/client/icons/adaptive-foreground.png.import deleted file mode 100644 index cd67d834..00000000 --- a/client/icons/adaptive-foreground.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://dy1ujndw4irkj" -path="res://.godot/imported/adaptive-foreground.png-b79dadb0b2a392db2e350415f9bf9a72.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://icons/adaptive-foreground.png" -dest_files=["res://.godot/imported/adaptive-foreground.png-b79dadb0b2a392db2e350415f9bf9a72.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/client/makefile b/client/makefile index c992372d..b7524ff0 100644 --- a/client/makefile +++ b/client/makefile @@ -14,7 +14,7 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # .PHONY: assets clean all locales -all: assets locales +all: assets locales icons/adaptive-background.png icons/adaptive-foreground.png assets: menu/book/book_01.webp locales: $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini)) @@ -22,6 +22,7 @@ LT = ../target/release/localetool clean: rm -f menu/book/book_*.webp + rm -f icons/adaptive-foreground.png icons/adaptive-background.png menu/book/book_01.webp: @echo Downloading recipe book... @@ -38,3 +39,8 @@ po/locales.csv: $(LT) po/%.po: ../locale/%.ini $(LT) ../locale/en.ini @mkdir -p po $(LT) export-po $< $@ --fallback ../locale/en.ini + +icons/adaptive-background.png: + ffmpeg -f lavfi -i "color=color=#E28142,scale=432x432" -frames:v 1 -y $@ +icons/adaptive-foreground.png: icons/main.png + ffmpeg -f image2 -i $< -vf "scale=280x280,pad=432:432:(ow-iw)/2:(oh-ih)/2:0x00000000" -frames:v 1 -y $@ |