Backgrounds: Bring it on our side

Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
This commit is contained in:
DarkJoker360 2023-01-18 19:53:17 +01:00 committed by Pranav Vashi
parent 9a68f22cf5
commit d46de2bbeb
76 changed files with 16 additions and 54 deletions

View File

@ -19,12 +19,6 @@ include $(CLEAR_VARS)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
ifeq ($(shell test $(TARGET_SCREEN_WIDTH) -gt 1080; echo $$?),0)
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p
else
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p
endif
LOCAL_USE_AAPT2 := true
LOCAL_PACKAGE_NAME := Backgrounds

View File

@ -5,8 +5,7 @@ from PIL import Image
path = os.path.dirname(os.path.realpath(__file__))
resources = ["res_1080p/drawable-nodpi",
"res_1440p/drawable-nodpi"]
resources = "res/drawable-nodpi"
def generate_smallvariants(resource):
global path
@ -19,9 +18,9 @@ def generate_smallvariants(resource):
wallpaper_small = os.path.splitext(wallpaper)[0] + "_small.jpg"
wallpaper_small_path = os.path.join(wallpapers_path, wallpaper_small)
# Save the wallpaper with 1/4 size to wallpaper_small_path
# Save the wallpaper with 1/3 size to wallpaper_small_path
with Image.open(os.path.join(wallpapers_path, wallpaper)) as img:
size = int(img.width / 4), int(img.height / 4)
size = int(img.width / 3), int(img.height / 3)
img_small = img.resize(size, Image.ANTIALIAS)
img_small.save(wallpaper_small_path, "JPEG")
@ -34,5 +33,4 @@ def clean(wallpapers_path):
if wallpaper.endswith("_small.jpg"):
os.remove(os.path.join(wallpapers_path, wallpaper))
for resource in resources:
generate_smallvariants(resource)
generate_smallvariants(resources)

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1024 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
res/drawable-nodpi/sky.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -16,16 +16,17 @@
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<array name="partner_wallpapers" translatable="false">
<item>ascension_blaze</item>
<item>ascension_ice</item>
<item>ascension_mist</item>
<item>ascension_shade</item>
<item>ascension_sunset</item>
<item>ascension_teal_light</item>
<item>expansion</item>
<item>operation</item>
<item>progression</item>
<item>propulsion</item>
<item>tessellation</item>
<item>sky</item>
<item>rainy_night</item>
<item>abstract_sky</item>
<item>mountains</item>
<item>mountains_lake</item>
<item>flowers</item>
<item>building</item>
<item>mountains_sunset</item>
<item>pink_blue</item>
<item>cyan_blue</item>
<item>green_fade</item>
<item>dark_fade</item>
</array>
</resources>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 681 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 761 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1021 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

View File

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022-2023 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<array name="partner_wallpapers" translatable="false">
<item>ascension_blaze</item>
<item>ascension_ice</item>
<item>ascension_mist</item>
<item>ascension_shade</item>
<item>ascension_sunset</item>
<item>ascension_teal_light</item>
<item>expansion</item>
<item>operation</item>
<item>progression</item>
<item>propulsion</item>
<item>tessellation</item>
</array>
</resources>