Commit Graph

39 Commits

Author SHA1 Message Date
ralph950412 4edcab8a02 ParanoidThemePicker: Use Google Sans in lock screen clock preview
Change-Id: Ifef1ad06322bcdbf52c9b251a7921e3672bbebbf
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2023-07-19 14:49:23 +00:00
Omkar Chandorkar 10007431cf ParanoidThemePicker: build AOSP Themes stub
Change-Id: I644dcc6bd4ed87654d1585c9e13b102e529c94d8
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-07-19 14:49:10 +00:00
Omkar Chandorkar 932523eedb ParanoidThemePicker: do not override themes stub
Change-Id: I8f24794324a720d488c2cd96b7e764cd734e1e30
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-07-19 14:48:55 +00:00
Omkar Chandorkar 0340038727 Revert "Import ParanoidColorStub"
This reverts commit d50f53cb30.

Change-Id: I875137eec0f141a0a02486a36922356c5ae57032
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-07-19 14:48:38 +00:00
Adithya R 0c8f41907e ParanoidThemePicker: Enable launcher and themepicker icon packs
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: I18d6a8349dda57b66d17e493092f2a8f8d9b4405
2023-07-19 14:48:21 +00: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
Danny Lin fb59a63229 Add permission for launcher preview rendering
Change-Id: Ie707dcd98161e8f5993b0504295fddc3f395cd20
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/5826
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/+/7121
2022-04-16 19:16:54 -07:00
Danny Lin 2668de7c69 Declare HOME query for launcher discovery
ThemePicker needs to query the current launcher in order to render
launcher/wallpaper previews, toggle themed icons, and change the app
grid size.

Change-Id: Id79fe1eaa4d09f775a37a1dfb1091ed08a1d3422
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/5825
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/+/7120
2022-04-16 19:16:25 -07:00
Luca Stefani 96393b5542 Specify we read and write launcher settings
Change-Id: Ifc8196588443b007602118389ca76d34ab531f14
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/5824
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/+/7119
2022-04-16 19:15:33 -07:00
LuK1337 b063ad56e4 Add wallpaper default permissions
Change-Id: If43a594da31fbab9280ce45b049737f6c534b620
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/5803
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/+/7118
2022-04-16 19:15:13 -07:00
Luca Stefani 8f49e7d78f Add wallpaper privapp whitelist
Change-Id: I044b1d9201ac0b8780fc37a387f401f3dd0ddeac
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/5755
Reviewed-by: Sourajit Karmakar <sourajit@live.com>
Tested-by: Sourajit Karmakar <sourajit@live.com>
Reviewed-on: https://review.statixos.com/c/android_packages_apps_ThemePicker/+/7116
Reviewed-by: Anay Wadhera <anay1018@gmail.com>
Tested-by: Anay Wadhera <anay1018@gmail.com>
2022-04-16 19:14:40 -07:00
Anay Wadhera e583b15448 StatixThemePicker: initial build files 2022-04-16 19:14:02 -07:00