Backgrounds: Bring it on our side
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
@ -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
|
||||
|
@ -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)
|
||||
|
BIN
res/drawable-nodpi/abstract_sky.jpg
Normal file
After Width: | Height: | Size: 867 KiB |
BIN
res/drawable-nodpi/abstract_sky_small.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
res/drawable-nodpi/building.jpg
Normal file
After Width: | Height: | Size: 640 KiB |
BIN
res/drawable-nodpi/building_small.jpg
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
res/drawable-nodpi/cyan_blue.jpg
Normal file
After Width: | Height: | Size: 269 KiB |
BIN
res/drawable-nodpi/cyan_blue_small.jpg
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
res/drawable-nodpi/dark_fade.jpg
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
res/drawable-nodpi/dark_fade_small.jpg
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
res/drawable-nodpi/flowers.jpg
Normal file
After Width: | Height: | Size: 533 KiB |
BIN
res/drawable-nodpi/flowers_small.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
res/drawable-nodpi/green_fade.jpg
Normal file
After Width: | Height: | Size: 885 KiB |
BIN
res/drawable-nodpi/green_fade_small.jpg
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
res/drawable-nodpi/mountains.jpg
Normal file
After Width: | Height: | Size: 1024 KiB |
BIN
res/drawable-nodpi/mountains_lake.jpg
Normal file
After Width: | Height: | Size: 345 KiB |
BIN
res/drawable-nodpi/mountains_lake_small.jpg
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
res/drawable-nodpi/mountains_small.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
res/drawable-nodpi/mountains_sunset.jpg
Normal file
After Width: | Height: | Size: 296 KiB |
BIN
res/drawable-nodpi/mountains_sunset_small.jpg
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
res/drawable-nodpi/pink_blue.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
res/drawable-nodpi/pink_blue_small.jpg
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
res/drawable-nodpi/rainy_night.jpg
Normal file
After Width: | Height: | Size: 966 KiB |
BIN
res/drawable-nodpi/rainy_night_small.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
res/drawable-nodpi/sky.jpg
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
res/drawable-nodpi/sky_small.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
@ -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>
|
Before Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 576 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 349 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 681 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 761 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 908 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 288 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 161 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 528 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 161 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 193 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 176 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 516 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1021 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 79 KiB |
@ -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>
|