summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/theme
AgeCommit message (Collapse)Author
2023-09-20Clean up unused theme files (1/2)Catherine Liang
Clean up unsused theme activity, fragment, and provider related files from pre-Anroid T. Bug: 262780002 Test: manually verified functionalities throughout picker still work Change-Id: Ie0c68c94ef3bf95d282642e56275a52098378452
2023-08-15Passed an extra flag denoting whether assetId is present or notBhavuk Jain
This CL aims at making changes for passing an extra flag which denotes whether assetId is present or not while previewing a wallpaper. This is needed in order to determine accurately the right destination we would want to allow when a user edits a wallpaper. Bug: b/279574752 Test: Tested by editing the currently applied wallpaper and checking the available options for setting the edited wallpaper. Change-Id: I89ba8e66b741a57c79721e6d21e3446c7da9d21c
2021-11-17Remove LoadThumbnailTask to avoid using AsyncTaskChuck Liao
Bug: 198711500 Test: manual Change-Id: Icbeb53c84def11a99a8efcd9a0847b21a31904d6
2021-06-16Improve wallpaper preview loading transitionSantiago Etchebehere
Make WallpaperInfo parcelable Before/after videos: https://drive.google.com/drive/folders/1-PqL0BCOuet9pnrYVphewpwAcvVoBCwo?usp=sharing Bug: 184111918 Test: visual check Change-Id: I46154d4a001b23ed07acf34fc5a136fb9b848122
2021-04-19Remove hard-coded colors in Wallpaper PickerTianguang Zhang
The CLs in this topic remove the hard-coded colors from the app, replacing them with ?android:attr/, ?attr/, and sometimes @color/ that is defined using device default colors. Fixes: 173549815 Test: none added Change-Id: I4f0d18c1c4afdc5e1651e5b34fef8c7d71cdf8b7
2021-04-14Make THEME_CATEGORIES publicSantiago Etchebehere
Bug: 182345292 Test: n/a Change-Id: Ib6cd18c8633a74ba207f345692b2ccd2357e7adf
2020-11-02Adjust custom theme flow preview iconWesley.CW Wang
- Change custom icon page thumbnail icon to widget icon, make it can load the drawable from Launcher package - Change preview icon(airplane mode) to battery icon Screenshot: https://screenshot.googleplex.com/9fp9tpW7hbTeA5s.png Bug: 159376354 Test: Manually, make full rom with ag/12947502, install local WPPG and check visually Change-Id: Iba98e8bed43ca0c7a393be42061beba78e5fed9d
2020-09-23Properly catch exceptionsLuca Stefani
Test: Manual, not defining a default theme in stub provider doesn't crash app Change-Id: I2b33681cffe8670478687c06667a701bb682cf2f (cherry picked from commit 10252aa2bf4eaa4b41cced2fe9bd0962f7a61421)
2020-07-08Adjust custom theme flow preview page's a11y setWesley.CW Wang
- Change part of the preview layout to not import for a11y, make it won't be focused by TB - Add new content description to each preview layout video: https://drive.google.com/file/d/1JTZCv7bdRuvzbYbxJXU-yBto4UcivijA/view?usp=sharing Fixes: 160760041 Test: manually Change-Id: I70df6d74bb39f75641b8200f5ea505d9c21d2b11
2020-07-08New drawable of shaped app icon for usingchihhangchuang
Because there are two different size ImageViews using the same drawable instance, the bound size was updated to break one of the ImageView displaying. Video: https://drive.google.com/file/d/1eVzxyn1ojbWanUg47yHXA9AoKZTjXWzp/view?usp=sharing Test: Manually Fixes: 160695343 Change-Id: I27f843d21f268e5c82e9682f6af7e0aa907e00eb
2020-06-10Change color rings color to system accentWesley.CW Wang
- Create state drawable programmatically and fill options center part only with accent color video: https://drive.google.com/file/d/1swM0i_vfUg1CQj8m7F9h28Cr45020SHr/view?usp=sharing Fixes: 158625350 Test: manually Change-Id: Ica0f4a30b15e8195544a9619bc1af21c9f11ecc1
2020-06-04Make undefined ThemeBundle propagatable and buildablechihhangchuang
- We won't need to pass the boolean value of ThemeBundle#isDefined. - This also fix the problem of wrong custom theme suggestion: https://screenshot.googleplex.com/zEEX5WaaNgZ.png Because the Custom button and Default theme are with empty packges set, and Custom button is in front of Default in the list. So add #isDefined to #isEquivalent to ensure Custom button has no equivalent. Fix screenshot: https://screenshot.googleplex.com/SvUNccCWjYD.png Test: Manually Fixes: 157723282 Change-Id: I6a5f75840edd2153f2b197468762dda80fb13e8c
2020-06-01Merge "Add onSaveInstanceState support for GridPicker" into ub-launcher3-masterTreeHugger Robot
2020-06-01Fix create duplicated custom bugchihhangchuang
It's existing in old picker, not a regression. See analysis: b/157723282#comment3 Video of fixing, create same theme as custom1: https://drive.google.com/file/d/1m7RvAIs-EY8Um5BHUfRHSK2yzpHfozFF/view?usp=sharing Test: Manually Fixes: 157723282 Change-Id: I6dfbc7655e5de563b49b92fad075e185f2a92017
2020-06-01Add onSaveInstanceState support for GridPickerchihhangchuang
Before: https://drive.google.com/file/d/1BeiF2qZiGCNnA4XhXRdAJz_0H54qJdVb/view?usp=sharing After: https://drive.google.com/file/d/1F1YCoLtLrmG4CH2WPY6lJ0ZbdY1Z7AWc/view?usp=sharing Test: Manually Fixes: 157734889 Change-Id: Iee93f058fadd7891536cf0d5e745261a31778470
2020-05-29Make custom theme remeber selections while system config changes and then ↵chihhangchuang
restore Issue description is in b/157631127 Video: https://drive.google.com/file/d/1Ys8W1NwcmL5xt7UsGR0KmmPrub_cJVfx/view?usp=sharing Also fix the gone preview issue: Before https://drive.google.com/file/d/1y4mxcbatbeykqiMb6UuekrIiC5jYlNRT/view?usp=sharing After https://drive.google.com/file/d/1nQ-4qIzpvecfAyM31hamKTnPI5QNWwr2/view?usp=sharing Test: Manually Bug: 157631127 Change-Id: I39d7040bba0b550119eb7088711502387d6ec82e
2020-05-28Creates ShapeAppIcon class to represent a shape app icon and its namechihhangchuang
Test: Manually Fixes: 157535141 Change-Id: I971e37768734b1cc623ce690f5f5bdc494357cd4
2020-05-27Fix shape icon and name mismatch problemchihhangchuang
Updated the analysis to b/157535141. Root cause: the gms app updated to use a BitmapDrawable icon which was filtered out to in the shape app list, but its name was still in the name list. Fix: let's also filter out the app name from list Test: Manually Fixes: 157535141 Change-Id: I76ee3fb91d153cd6d1ded19496d1fabd6a1d73ba
2020-05-27Ensure the shape app icon and name is a correct pairchihhangchuang
Issue screenshot: https://screenshot.googleplex.com/z0L588aXvqa.png The google icon is unavailable(not in the icon list), but it's name still be available(in the app name list) Solution: Check app icon and name are available, then added them to the list. Test: Manually Fixes: 157535141 Change-Id: Ia7ad0322cdf888a885f7383180dc23e2d6d9a3cb
2020-05-21Fix the custom theme page shape bugchihhangchuang
- Issue: Press previous button at the custom theme naming page, and then change the app icon shape, then go nxet to the naming page, the app icon does not change. - Issue video: https://drive.google.com/file/d/1A6NLrtQxrT6fNEYZdll_IFDqXWemHfAE/view?usp=sharing - Issue screenshot: https://screenshot.googleplex.com/WsYaV0XkL7p.png - Root cause: the shape app icons are added to the end of the app icon list, and then the UI still get the ahead icons. - Solution: Replace the whole shape app icon list instead of appending icons. Video: https://drive.google.com/file/d/1y4bPYU7Y4Ej0cTyxzvOfNXvIQjm-eXqM/view?usp=sharing Also add app name for custom theme page... Test: Manually Bug: 151285476 Change-Id: I7e6def1e7d18d0ef2e5e4fa198348fbdc20ee746
2020-05-20Add app name for shape app icons in the themepicker previewchihhangchuang
Screenshot: Default theme: https://screenshot.googleplex.com/WxJjBCQKkS0.png Non-default theme: https://screenshot.googleplex.com/tzk0gwM3GMd.png Test: Manually Bug: 146475648 Change-Id: I5b8ee1e0c25a60ae910794c100d0e370c41fc7eb
2020-05-18Add full preview for theme pickerchihhangchuang
Video: https://drive.google.com/file/d/1UoAZxxjJEKwq9ZYJ3MWca8ygEX97vhBz/view?usp=sharing Test: Manually Bug: 151286773 Change-Id: Ib94425fa716a58f0cf3b43ca3d2c05cccf4a52ec
2020-05-13Change Style tab's content layoutWesley.CW Wang
- Change style content layout to grid(was 1 line only, recycleview) - Move Custom option to the first screenshot: https://screenshot.googleplex.com/pZ7tTOqk71R.png Bug: 151285552 Test: manually Change-Id: I7d5ef1ef3ac81d6da4d29052f49ddf30335564f8
2020-04-09Remove support for wallpapers in style bundlesSantiago Etchebehere
This CL doesn't yet implement the new preview UI, just removes support all the usages and support for wallpaper in theme bundles. Bug: 151868805 Change-Id: I0a7de9ff2150c8f3e516ec49c7c833bab7ac08d1
2020-03-23Implement the checkmark and the blue border showing/hiding flow.“Chuck
Bug: 150840985 Change-Id: I2372aee6c646f18c190fa4b83c3ce22e95806c30
2019-10-31Explicitly tint the color preview iconsSantiago Etchebehere
This avoids color inconsistencies in dark theme Fixes: 143722856 Change-Id: Ia6870bee2e999b032230dfb7cba19a0caf5bfb48
2019-07-09Use the correct color in theme thumbnail tileSantiago Etchebehere
Resolve the accent color to light/dark based on the current config. Bug: 137086778 Change-Id: I101ae3880356cde6fb8dfdd16ebc7ff3c3437df3
2019-07-02Resolve layered ThemeBundle Wallpaper thumbnailsSantiago Etchebehere
Use a new Asset class to handle wallpaper thumbnails so that we can handle layered wallpaper thumbnails. Bug: 136497932 Change-Id: Ib1ef78c6c202cd9c9f3d00a3bdb2974e627470ea
2019-07-01Scale icons instead of relying on intrinsic sizeSantiago Etchebehere
Keep icons at 24dp and scale programmatically to keep consistency when icons are overlaid Fixes: 136285765 Change-Id: I273ab789ccf1ba4a9b7d1486d15ba6ebe0e4d367
2019-06-26Update the color of the custom shape optionsSantiago Etchebehere
Bug: 135943112 Change-Id: Ie92553310554d692f5e4bc907c2cb30cc8c6e547
2019-06-25ThemePicker UI polish fixesSantiago Etchebehere
- Change the size of theme preview item header to 32dp - Update the layout of the font preview screen - Color the separator in the font preview step for custom themes the same color as the text - Change the size of color selector chips - Update the layout of the custom theme steps screens Bug: 135943112 Change-Id: Ib9cbfe16db61d21d7245ab3f309491b2607bfb3b
2019-06-06Add timestamp to serialized ThemeBundle jsonSantiago Etchebehere
Add timestamp when applying a theme Bug: 134686741 Change-Id: Ib516f5ceb71d812522baaf1ee862427bbadac75d
2019-06-01Merge "Properly handle default custom theme options" into ub-launcher3-qt-r1-devTreeHugger Robot
2019-06-01Merge "Misc changes needed for micropaper integration." into ↵Clément Julliard
ub-launcher3-qt-r1-dev
2019-06-01Misc changes needed for micropaper integration.Clément Julliard
* Update Injector to pass Context argument. * Simplify WallpaperSetter#requestDestination listener. Bug: 133160356 Change-Id: Ib7546a804c1e818004f6bad0e3b71019feeeed6d
2019-05-31Properly handle default custom theme optionsSantiago Etchebehere
Bug: 134186220 Change-Id: Ib1c6b643275d35a35cf0e5b0a27890f80a8a57ac
2019-05-29Limit the maximum number of themesSantiago Etchebehere
We don't want more than 10 in total. Also increment the space between the options to make sure the last one is cut to hint scrolling. Bug: 133903562 Change-Id: Ic81de761f0e80a67e69337ee68e9e73ece7d0aa4
2019-05-28Add support for LiveWallpaper optionsSantiago Etchebehere
Support optional options for a theme's LiveWallpaper in the theme spec, and allow for extending classes to apply them by making ThemeManager "injectable". Bug: 133793299 Change-Id: Id9187d7a38f6714c0e1ec6e07b9aa8b041800c39
2019-05-24Allow a drawable for themes live wallpaper previewSantiago Etchebehere
When a theme specifies its wallpaper as a LiveWallpaper package name, also optionally read a drawable to use as preview instead of the thumbnail provided by the LWP itself. Bug: 131296977 Change-Id: I7197c85e9644204aa17ac51623ecfd822b9fad08
2019-05-23Use enabled flashlight icon for color QS previewSantiago Etchebehere
Fixes: 132808298 Change-Id: I0efe9f6b9a9291f879f94ed9305f5a83480f8bfe
2019-05-22Change the layout of TP pages and previewsSantiago Etchebehere
Change the position of the "Keep my wallpaper" checkbox and make the bottom panel larger, as well as restrict how much a preview card can grow or shrink depending on the screen size. Note that the UX spec cannot be met 100% on all screen sizes, so for some cases we round to the closest approximation. (ConstraintLayout FTW!) Fixes: 130763357 Fixes: 130398264 Change-Id: I15bece84fb4ce1018676f57d32e0fc533bcdec92
2019-05-16Do not crash if OverlayManager is not availableSantiago Etchebehere
Just remove the Styles tab in that case. Bug: 132909772 Change-Id: I63e0444390a56715c2420133870e7c7616bb05d7
2019-05-14Address pending comments from ag/7447011Santiago Etchebehere
Bug: 132257073 Change-Id: I792c63ea0d23809f70750f61d719041956e3e753
2019-05-13Multiple custom themes 4/4Santiago Etchebehere
Bind preview cover and wallpaper in name step. Bug: 132257073 Change-Id: Id557473dbf44b4ba8f72b2fa23b00f70da328d99
2019-05-13Multiple custom themes 3/nSantiago Etchebehere
Add a name step to custom theme editor. Preview cover image is still not hooked, but the code has been refactored to allow reuse of cover card binding. Bug: 132257073 Change-Id: I0c3a7ccd1f73c89c45447994f98fe80b3723f040
2019-05-09Merge "Theme picker polish fixes." into ub-launcher3-qt-devTreeHugger Robot
2019-05-09Theme picker polish fixes.Amin Shaikh
- Do not show Previous on first custom screen - Show a toast instead of exiting the activity when applying the clock - Mutate drawables in custom theme icon preview thumbnails Fixes: 132282403 Fixes: 132282415 Test: visual Change-Id: If230c5c95ba92b787b9e6580261b0a662c159549
2019-05-08Multiple custom themes 2/nSantiago Etchebehere
Add an id to custom themes to allow deletion/edition independent of names, and add better handling of theme name in preparation for naming step. Bug: 132257073 Change-Id: If4118688497a675544a7d04857b7bbb6ec57e7d4
2019-05-08Multiple custom themes 1/nSantiago Etchebehere
Refactor DefaultThemeProvider for better reuse, and add support for storing and retrieving more than one custom theme (custom theme names not supported yet). Bug: 132257073 Change-Id: I9ed8b0e13fb5ab063373adedf40fc98896d0a20e
2019-05-08Merge "Use system resources for loading default icon pack" into ↵TreeHugger Robot
ub-launcher3-qt-dev