Commit Graph

56 Commits

Author SHA1 Message Date
Colin Cross 0cef3ccef9
ParanoidThemePicker: Use WallpaperPicker2Lib
Replace wallpaper-common-deps, WallpaperPicker2_srcs and
WallpaperPicker2_res with WallpaperPicker2Lib.

Bug: 319160342
Test: builds
Test: atest --host ThemePickerRoboTests
Flag: NA
Change-Id: I9da546ec53c3160c40088904f5385520dc2eb992
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2024-10-03 06:28:07 +05:30
Tommy Webb 9eef854d03
ParanoidThemePicker: Remove unnecessary top padding in Change wallpaper button
Change-Id: I3c6cf16a2023b3a2e1329fb72fa2462f73ee0c1a
2024-08-05 22:28:34 +05:30
Jyotiraditya Panda 6a08bc7242
ParanoidThemePicker: Overlay wallpaper_quick_switch_section.xml
Change-Id: I0b5c3f63099b8533ecab4cded6fca590b59cf354
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2024-08-05 22:27:25 +05:30
Jyotiraditya Panda 7e89b8de0b
ParanoidThemePicker: Remove provider for RecentWallpapers
Change-Id: Ib9dc8b7e1118f6a203d3e50d962d4825649c0b5f
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2024-08-05 22:21:26 +05:30
Radosław Błędowski cfd6aa7387
ParanoidThemePicker: Update app foreground icon
Change-Id: I835aef738bacae6acd3f668fa1874a2934f8b9f0
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2024-07-23 04:44:20 +05:30
ralph950412 c53c5fbbb9
ParanoidThemePicker: Adjust Grid section alignment
Apply changes in keyguard quick affordance section as of 3e973ead122d9e8b03d66152f3fd795282637be4
to grid section as well for better consistency.

Test: Manual
Change-Id: I88beebf86f209ec4e2583f39fb7215bcba6ed93a
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-04-10 18:52:58 +09:00
ralph950412 7c4853ef20
ParanoidThemePicker: Import grid_section_view for overriding
Change-Id: I2c7e52f018b46f3fae57e606dacc58fd27dca53a
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-04-10 18:52:36 +09:00
ralph950412 5ec61edd26
ParanoidThemePicker: Improve Font, Icon Pack & Icon Shape sections alignment
Change-Id: Ic5ad0401778e9bf341a3842117ad75c5927e8303
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-04-10 18:51:45 +09:00
Anay Wadhera 725ed80a9e ParanoidThemePicker: Add icon shape customization
[ghostrider-reborn]
- Updated UI for 14-qpr1
- Remove unused cornerRadius field

Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: I3e75989f499ba87c02aaa7fda9d6a08ea95576ec
2024-02-22 18:33:48 +05:30
Adithya R 8d5301bce5 fixup! ParanoidThemePicker: Update font and icon picker UI
Change-Id: I59731d1697c3ad6764d3bfb9af24ba7294e7dba8
2024-02-08 19:30:02 +05:30
Omkar Chandorkar ac40bea28f
ParanoidThemePicker: Import colours from Husky QPR1
Change-Id: Iefba4e5e3f718dd35ca815e23c7874c7f161be94
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-01-09 16:12:21 +09:00
Adithya R 4d0d98593d
ParanoidThemePicker: Cleanup obsolete resources
Change-Id: I84ceef84ee5ece24c74d3dca44176e7487d530c2
2024-01-09 11:54:16 +09:00
Adithya R f42f9a1065
ParanoidThemePicker: Update font and icon picker UI
Adapt to the new colors in U-QPR1.

Change-Id: I9bd984a74f54848632df0b23e5333e22f27008be
2024-01-09 11:54:14 +09:00
Vishalcj17 073d77642f
ParanoidThemePicker: Add Monochromatic colors.
Change-Id: I8755699997f4930299b365ae10d636c72b6e7c48
2024-01-09 11:54:11 +09:00
Adithya R c8e7d73cc2 ParanoidThemePicker: Hide empty recent wallpapers section
It doesn't work, so just (somewhat) hide it for now.

Change-Id: I7003adec76de7ed035f00c942b29cef7cfcb38ea
2023-12-31 05:17:00 +00:00
Adithya R cc59afb227 ParanoidThemePicker: Enable launcher and themepicker icon packs
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: I18d6a8349dda57b66d17e493092f2a8f8d9b4405
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2023-12-30 22:07:52 +05:30
Colin Cross 3afc85648b Use -Xjvm-default=all instead of -Xjvm-default=enable or @JvmDefault
The @JvmDefault annotation and -Xjvm-default=enable argument are both
removed from kotlinc 1.9.0 in favor of -Xjvm-default=all.

Bug: 291335478
Test: builds
Change-Id: I65f61004ebb3e85271af2fce3b64e29bc403933d
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2023-12-30 15:59:53 +00:00
Anay Wadhera 0df9457e75 ParanoidThemePicker: update to udc qpr1
Edits:
Start using Hilt!!
Remove WallpaperColorThemePreview and related classes
Deprecated non-revamped UI fns

Change-Id: I37fbc45f63fb629403861c51836641c991f7a6b4
2023-12-23 17:49:13 +09:00
Pranav Vashi 79dda714ec ParanoidThemePicker: Remove beta tag from themed icons
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I4671547b52fc5b6dcbd8b30822d18a93e85c1494
2023-11-11 10:03:12 -03:00
Richard Raya 5f16b14b4a ParanoidThemePicker: Import themed_icon_section_view layout
copied from current ThemePicker

Change-Id: Id5b79ec4770b29dcb8a6890084b9b0b7e44e8599
2023-11-11 10:02:59 -03:00
Omkar Chandorkar 207e9bf5ca ParanoidThemePicker: Keep icon pack and font settings to home screen only
Change-Id: If96982d79cbb7e855dcc4ca0d9d21c9c3c9c6780
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-10-30 03:50:46 +00:00
Jake Weinstein d6ed0637f4 ParanoidThemePicker: Update to Android 14
Co-Authored-by: Tobias Merkel <stylogey@gmail.com>
Change-Id: Ifb99d4e311652045283f9a92b665639ed3b43b51
2023-10-08 11:56:38 -05:00
Jake Weinstein 43f631eedf ParanoidThemePicker: Update to Android 13 QPR3
Co-Authored-By: Anay Wadhera <anay1018@gmail.com>

Change-Id: I38a363c3b656808a39d87d3568ed9bb5afd221bc
2023-06-16 13:51:52 +09:00
Anay Wadhera ede6993301 ParanoidThemePicker: add genrule for res_override
So we can override the original ThemePicker defs properly

Change-Id: I9634830ff6d98bb02c3ce3018082283713754c15
2023-04-05 22:34:32 +02:00
Michael Bestas acb6e0ef45 Add new priv-app permission added in QPR2
Change-Id: Ie452c92abbc195c78251c0c66efd94807b139952
2023-03-26 12:28:11 +09:00
Anay Wadhera ddcab8ac1f ParanoidThemePicker: update injections to qpr2
Change-Id: I526ecf69fa6841932095f20b0fdec107920f9ccc
2023-03-26 12:28:07 +09:00
Anay Wadhera 79a355bd49 StatixThemePicker: add enableClockCustomization flag
Change-Id: Iac1c2d96c94f606626814aeda17365e4017a40ae
2022-12-09 05:31:31 +00:00
Anay Wadhera 7c44ad5512 StatixThemePicker: Import res_override from AOSP ThemePicker
Change-Id: I34fb0352776de27b9d8654bce9a891db04352cf0
2022-12-09 05:31:13 +00:00
Adithya R c8def21472
ParanoidThemePicker: Improve icon pack and font string
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: I25f1471d1c67c18fb76809669036b3ce8fceda1b
2022-09-22 10:07:29 +05:30
Omkar Chandorkar d50f53cb30
Import ParanoidColorStub
* taken from https://github.com/AOSPA/android_vendor_pa/tree/ruby/overlay/AOSPAOverlayStub

Change-Id: Ie957ce393e89d58fe345b3a4fd9ae3ea70722418
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-09-15 14:11:07 +05:30
Omkar Chandorkar cbe99ac0d5
StatixThemePicker -> ParanoidThemePicker
Change-Id: I874504d1a81af792b018137f271c9280bc1f8f94
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-09-15 14:10:56 +05:30
Anay Wadhera b803d21d37 StatixThemePicker: make it compile
Change-Id: Iec950b2f0022e63f8b62817c8937b3c3dd55c935
2022-08-21 10:22:31 +09:00
Anay Wadhera 4de2b8fea0 StatixThemePicker: drop color section
Change-Id: Ica621b8f24d52a60a3dd88885be3847da4a6064a
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/8231
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
2022-08-20 16:22:04 +00:00
Sourajit Karmakar d554805125 Formally declare the code in this repo to be Apache-2.0 compliant.
Change-Id: I7ca1bce1b9b3fb71f2e9269ff8cd88d73580a8bf
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/8156
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
Tested-by: Sourajit Karmakar <sourajit@live.com>
2022-08-05 14:06:25 +00:00
Sourajit Karmakar 7d9283d7d6 fixup! ThemePicker: Match app string with Pixels
Change-Id: Ifab9271406effacd27c7cae2dec1bfb52e1241f9
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/8085
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
Tested-by: Sourajit Karmakar <sourajit@live.com>
2022-07-19 15:05:32 +02:00
Adithya R 3faeb1a9fe ThemePicker: Fix crash when applying default icon pack
Initialize default IconPackOption specially for
default icon pack instead of comparing english
string directly, as it may be translated when
the user is on another language.

Change-Id: Idc65dc2e32bed1edec14f203b30c84f7450fbced
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/8068
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
Tested-by: Sourajit Karmakar <sourajit@live.com>
2022-07-19 06:07:54 +02:00
Sourajit Karmakar 15fba68649 ThemePicker: Match app string with Pixels
Change-Id: I2cf31b816eaf471a4977ebd9e5a4af91adfe8481
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/8084
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
Tested-by: Sourajit Karmakar <sourajit@live.com>
2022-07-19 06:07:20 +02:00
Anay Wadhera 319ea20521 Introduce font picker
Change-Id: I9d39af91caf2b69f0082111d2fca50784725d2ec
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7711
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Sourajit Karmakar <sourajit@live.com>
2022-05-21 05:34:02 +02:00
LibXZR d615c2d371 ThemePicker: Check initialization before saving item index
onSaveInstanceState() will be called before createView() in some cases.

Change-Id: I9b8f37d5776cd99ff3708c4d70a364f24c1a87bf
Signed-off-by: LibXZR <i@xzr.moe>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7730
Tested-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
2022-05-18 20:25:53 +02:00
LibXZR 3eb62d0ee6 ThemePicker: Fix incorrect logic in wallpapersColorsChanged
Fixes a crash when lockscreen wallpaper is different
from home screen wallpaper, or some other unknown case.

Change-Id: Iab496d67f7ab5f363102b633a0708867df0121d6
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7729
Tested-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
2022-05-18 20:25:47 +02:00
LibXZR de4619e5c0 ThemePicker: Defer color section adapter binding
We need to make sure color options are fully initialized
before setting up selectors. This fixes the race, which
lead to the disappearance of color selectors, between
loading color options and binding viewholders.

Change-Id: Icdab4d1225862dd8c81db3655be89346a29c8122
Signed-off-by: LibXZR <i@xzr.moe>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7728
Tested-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
2022-05-18 20:25:40 +02:00
Anay Wadhera ebee0b6e71 StatixThemePicker: specify the correct intents
Previously, this led to two options popping up for Styles, this fixes that by keeping a default alias

Change-Id: Ia11ba0975c29e5cf8b79c5a2a4bf0c17bda589e9
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7653
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
2022-04-27 05:52:52 +02:00
Anay Wadhera 866ccb5e50 ThemePicker: import color section from dotOS
[ghostrider-reborn: rework build setup]

Change-Id: I96670305884efaae8ba1d707ddd406375ed78ed1
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7539
Tested-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
2022-04-24 17:16:56 +02:00
Anay Wadhera 41f43d3425 StatixThemePicker: use color seed generation algorithm from AOSP
The primary wallpaper color is not always the most vibrant or expected accent color, so change this behavior to get the best average color by using the AOSP monet algorithm

Change-Id: I589c21ab81da8b261dcbd3dd2a3f35563c0e5225
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7585
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
2022-04-24 03:14:12 +02:00
Anay Wadhera fab9ccb786 StatixThemePicker: implement dummy recent wallpapers provider for Pixel Launcher
Change-Id: I7d092aadcbc1a360ff9ec95c81d6c6cf5cbc4a96
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7570
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
2022-04-18 04:05:15 +02:00
Anay Wadhera 1c8558f4f4 StatixThemePicker: update app name
Change-Id: Ief72ddbfa2c0a30c925a967a1e4df22db2835d1f
Reviewed-on: https://review.statixos.com/c/android_packages_apps_Statix_ThemePicker/+/7538
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
2022-04-17 21:41:37 +02:00
Anay Wadhera eb94e7a691 ThemePicker: bring back icon pack customization
Change-Id: I93c195238ea94babe1bd3024166d7c1dec4b5bb2
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/6550
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/7122
2022-04-17 12:59:46 +09:00
Anay Wadhera 285b3eb471 StatixThemePicker: implement default customization sections 2022-04-17 12:59:45 +09:00
Anay Wadhera b3b6c3e3b8 ThemePicker: respect color override
Change-Id: I37ddec6f0b18c2ebdf6b383380598e6bc29b6430
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/6763
Tested-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/7124
2022-04-16 19:17:25 -07:00
Anay Wadhera a2b35db45b ThemePicker: implement coloring in wallpaper preview fragment
Change-Id: I78206bbe6b96529975b5cefd0a3a2ae55623c505
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/6613
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/7123
2022-04-16 19:17:20 -07:00