summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: make forced adaptive icons optionalJoey2018-05-211-4/+4
| | | | | Change-Id: Ie84af7114118f54b2d267a35ce24dd5e58c0be22 Signed-off-by: Joey <joey@lineageos.org>
* Icons: fix non-adaptive icon handlingAlexander Martinz2018-05-211-8/+14
| | | | | | | The icon pack support broke this feature, fix it up to make it work again. Change-Id: I22e1ba953fc8cabb0e7633a3c5cf3ce5c07cf762 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Utilities: fix checking whether non-default icon pack is appliedAlexander Martinz2018-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The current check returns the opposite of what the method is called. Printing the following values: - defaultPack, defaultLocalizedPack, currentPack, isNotUsingIconPack without icon pack applied: - Default | System (Standard) | System (Standard) | false with "Frost" (com.dkanada.icecons) icon pack applied: - Default | System (Standard) | com.dkanada.icecons | true with "Pixel Icon Pack" (com.themezilla.pixelui) icon pack applied: - Default | System (Standard) | com.themezilla.pixelui | true To correct this behavior: *) rename "isNotUsingIconPack" to "isUsingIconPack" *) fix all the users of the method *) add comments to document the thoughts behind the logic Change-Id: I8a5339fae536a3f3803637353737994670d8ee92 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Trebuchet: initial icon shape exposure for future extensionJoey Rizzoli2018-01-191-3/+4
| | | | | Change-Id: I76a571ce2b53214ef197a5164f584cb4dc2d3ecf Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* Trebuchet: icon packs supportJoey Rizzoli2018-01-191-1/+4
| | | | | | | | | | | | | | | Based on the following commits: * https://github.com/AOSPA/android_packages_apps_Launcher3/commit/cf4bde2098de8beec24a0c88bf2e51e19a9c22b6 * https://github.com/AOSPA/android_packages_apps_Launcher3/commit/8ddafe17ad6adc268ad1a93b7724d8b22028a71b * https://github.com/AOSPA/android_packages_apps_Launcher3/commit/0940176c3c01a1f87237811f42d05a592b0968b3 With the following additions: * Support for adaptive icons * UI changes * Cleanup and improvements Change-Id: I877a8b2dd204753179736fa7c1c34444e9b2c849 Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* Trebuchet: allow non-developers to change icon shapeJoey Rizzoli2018-01-191-6/+0
| | | | Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* WallpaperManagerCompat should target correct platformHyunyoung Song2017-09-115-14/+14
| | | | | | | Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
* Fix @SuppressWarnings('deprecation') typo.Jon Miranda2017-08-291-1/+1
| | | | | | | | | http://errorprone.info/bugpattern/SuppressWarningsDeprecated This typo throws a build error on oc-mr1-dev. Bug: 64937210 Change-Id: I4c48a22c5ac0f296053753d4058385581037ab06
* Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler2017-08-241-4/+8
| | | | | | | | Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
* Get rid of unnecessary int array allocation.Rajeev Kumar2017-08-141-9/+9
| | | | | | Bug: 64656232 Change-Id: Ifc811c3930b8052d57fa33d35b9d50f11b541c94 Test: Tested manually
* Merge "Moving GradientView background alpha to resources" into ↵TreeHugger Robot2017-08-011-9/+8
|\ | | | | | | ub-launcher3-dorval-polish2
| * Moving GradientView background alpha to resourcesSunny Goyal2017-07-271-9/+8
| | | | | | | | | | Bug: 63072570 Change-Id: Ie982a5a33ece72942ebee79e4eb81f83da7b31c4
* | [automerger] Use deep shortcuts' icons as a fallback when updating am: ↵Tony Wickham2017-07-291-0/+13
|\ \ | |/ |/| | | | | | | a8ccf09597 Change-Id: I6629a5ca0eed641fc575b67dda39ff63b568f71b
| * Use deep shortcuts' icons as a fallback when updatingTony2017-07-281-0/+13
| | | | | | | | | | | | | | | | | | | | | | We already do this when loading, but now we also do it when getting callbacks that potentially change the shortcut icon. These callbacks first check the pinned shortcut info, but if there is no icon there we now fall back to the current icon instead of the default icon. Bug: 62814533 Change-Id: I777adedf4b7f93dbaddb98a993eda34d59dcc173
* | Merging ScrimView into GradientViewMario Bertschler2017-07-262-139/+63
| | | | | | | | | | | | | | | | Less banding, less drawing for All Apps Transition. Bug: 63873246 Change-Id: I6c7c856e2939a10db7e44b266c1d6d51334fd152
* | Adding ability to set a custom blur mask filter and alphas in shadowMario Bertschler2017-07-201-5/+10
| | | | | | | | | | | | | | generator. Bug: 63151770 Change-Id: I7d79b700b64ccb949816b7bf31d98cc76fa443ba
* | Enable to recreate icon with shadow without resizing it.Mario Bertschler2017-07-101-1/+7
|/ | | | Change-Id: I808eec78ff221adee72d0395e87c89150693f206
* Use last saved icon if pinned shortcut is unpublishedTony Wickham2017-06-291-3/+19
| | | | | Bug: 62814533 Change-Id: I683bd6abdf17defc55c0f17d8688951d4841c066
* Fixing drag outline not getting drawn when the shortcuts popup is shown.Hyunyoung Song2017-06-261-8/+7
| | | | | | | | | | Shortucts popup uses predrag listener to manage the transient state of the icon. Fixing the order of PredragListener, such that predragEnd gets called before dragStart. This allows the transient state to be cleared before any other state changes are done by onDragStart. Bug: 62544416 Change-Id: I77c9a1aa17a15fe6f9f342af7a7fe3092a9d026b
* Merge "Do not apply legacy treatment on shortcuts Bug: 62617041" into ↵TreeHugger Robot2017-06-221-2/+1
|\ | | | | | | ub-launcher3-dorval-polish
| * Do not apply legacy treatment on shortcutsHyunyoung Song2017-06-221-2/+1
| | | | | | | | | | | | Bug: 62617041 Change-Id: I56a04536fe1bcba9912c5da3ce5a9c9b75bc3506
* | Setting the callback for previewItems to folderIcon. This allows the ↵Sunny Goyal2017-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | FolderIcon to get updated without going through the child'draw pass. Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls Bug: 62900800 Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
* | Enabling spring effect during drag-n-drop on deep shortcutsSunny Goyal2017-06-211-1/+4
| | | | | | | | Change-Id: Iac128e850c41c0946d28e1ee8824ce8a62b4c395
* | Merge "Rafactoring shadow generator logic to allow customizing various ↵TreeHugger Robot2017-06-201-40/+54
|\ \ | | | | | | | | | parameters" into ub-launcher3-dorval-polish
| * | Rafactoring shadow generator logic to allow customizing various parametersSunny Goyal2017-06-201-40/+54
| | | | | | | | | | | | Change-Id: I38f8ac4352cb9e23d377832ffe2f4923a4df7a70
* | | Refactoring PinItemDragListener into a base class to allow diffenret ↵Sunny Goyal2017-06-201-2/+3
|/ / | | | | | | | | | | | | | | | | implementations of multi-window drag and drop Bug: 62702235 Change-Id: Ie87e0f7d131575bac1cb1099b0a70b230560be9a
* / Fixing dark tint for ShadowDrawable.Sunny Goyal2017-06-201-25/+24
|/ | | | | | Updating the dark theme for empty all-apps search drawable. Change-Id: Ieb2018924da337bdd97eaf3adf2d32c3e3bebc73
* Updating the fast scroll bar UISunny Goyal2017-06-161-0/+89
| | | | | Bug: 37015359 Change-Id: Iec0748f04ebe9a3eef13ff759da3cab6ff28c3a1
* Merge "Making bitmap of PreloaderIconDrawable smaller so it fits inside the ↵TreeHugger Robot2017-06-151-1/+1
|\ | | | | | | progress circle." into ub-launcher3-dorval-polish
| * Making bitmap of PreloaderIconDrawable smaller so it fits insideMario Bertschler2017-06-141-1/+1
| | | | | | | | | | | | | | the progress circle. Bug: 62270605 Change-Id: Idd3c145303531dbfbe9bd69af68b5c02baf21a93
* | Merge "Fix for clipped promise icon." into ub-launcher3-dorval-polishTreeHugger Robot2017-06-151-4/+4
|\ \
| * | Fix for clipped promise icon.Mario Bertschler2017-06-151-4/+4
| |/ | | | | | | | | Bug: 62544596 Change-Id: Iadbd8b27244b6d2ff3f9f0167f90b2a260687bc3
* | Merge "Replace use of java.util.HashMap with android.util.ArrayMap in ↵Rajeev Kumar2017-06-141-4/+2
|\ \ | |/ |/| | | DrawableFactory." into ub-launcher3-dorval-polish
| * Replace use of java.util.HashMap with android.util.ArrayMapRajeev Kumar2017-06-091-4/+2
| | | | | | | | | | | | | | | | in DrawableFactory. Change-Id: I4ab7f908c3e8768762942ca83f576197dfea66d6 Bug: 62466540 (cherry picked from commit 2d75266c75e8dbbabaf9e0db96c49b1005a10db2)
* | Making some constants accessibleSunny Goyal2017-06-091-1/+1
|/ | | | Change-Id: Id5caff8defe8ccc4a79e1c99b0040abb1750b3e1
* Fixing Drawable not getting tinted properly if the color is always transparentSunny Goyal2017-06-091-0/+1
| | | | | Bug: 62457537 Change-Id: I04b8804162b7338f62d3fdabb87dd31ad507ebaa
* resolve merge conflicts of 7092db024 to ub-launcher3-dorval-polishTony Wickham2017-06-081-9/+44
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution.x Change-Id: I0f9ed3d42fcb04299c3c23d06629f855614c0538
| * Add support for color extracted notification dotsTony Wickham2017-06-081-9/+44
| | | | | | | | | | | | | | | | | | | | | | Changing the badge_color in colors.xml to transparent will cause them to be color extracted. When an extracted color is used in the IconPalette, we desaturate the background. Otherwise we respect the exact color specified in colors.xml. Change-Id: Ie82d0c5335fa5f24d4cc47766e4c1719c4916f8b
* | Adding a utility method for getting device prefsSunny Goyal2017-06-081-9/+5
| | | | | | | | Change-Id: I1e3c7df0a3f4e847b40d722d44890e441cc73509
* | Adding tint support for shadow drawable.Sunny Goyal2017-06-071-0/+33
| | | | | | | | | | Bug: 37616877 Change-Id: I2ce8d82143238422bccabfa5191ef95e936a713d
* | Generalize findContrastColor() to work for dark backgroundsTony Wickham2017-06-061-17/+14
| | | | | | | | | | | | | | Previously it assumed the background was lighter than the foreground. Bug: 62380473 Change-Id: Icd53750a2f9181890c8b9c62721d07946e115e99
* | Merge "Prevent clipping on the top and left side on AdaptiveIconDrawables ↵Hyunyoung Song2017-06-062-3/+4
|\| | | | | | | | | | | | | | | b/62372639" into ub-launcher3-dorval am: 88082394eb Change-Id: I7148678d490c55e9a10e672cba839ef8aef9d00a
| * Merge "Prevent clipping on the top and left side on AdaptiveIconDrawables ↵TreeHugger Robot2017-06-062-3/+4
| |\ | | | | | | | | | b/62372639" into ub-launcher3-dorval
| | * Prevent clipping on the top and left side on AdaptiveIconDrawablesHyunyoung Song2017-06-062-3/+4
| | | | | | | | | | | | | | | | | | b/62372639 Change-Id: I0b2c0daecba2904f3e89f7b0b558d9b10f5dcbf6
* | | Theming on Scrim- and GradientViewMario Bertschler2017-05-252-35/+48
| | | | | | | | | | | | Change-Id: I3070b54485a9476ffb71e325cdd45c2bd7ef5c9a
* | | Defining a dark theme for launcherSunny Goyal2017-05-242-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | > Removing the code for LIGHT_STATUS_BAR as that will be controlled by the theme > Updating icon cache to always use transparent background for low-res, as the theme can change the bg color Change-Id: Iab64ec29cab629ee515af22ec15b95d3f40a9df5
* | | Allapps motion changes for landscapeMario Bertschler2017-05-242-4/+12
| | | | | | | | | | | | | | | | | | Scrim and Gradient alpha starting from 0 Change-Id: If200539f3915ff32885712cff868d74d014c340f
* | | Revert "Allapps motion changes for landscape"Mario Bertschler2017-05-241-45/+4
| | | | | | | | | | | | | | | | | | This reverts commit d15dccf10eec367e38b8723c409909a29307057a. Change-Id: I04c06d419bc636929259bc5f4fdce982d97ef33f
* | | Allapps motion changes for landscapeMario Bertschler2017-05-241-4/+45
| | | | | | | | | | | | | | | Bug: 38230696 Change-Id: I82e36c240c934ff6b86b55e0a0f07391fd11ec82
* | | resolve merge conflicts of 02aced978 to ub-launcher3-dorval-polishTony Wickham2017-05-191-5/+1
|\| | | | | | | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Ib44ce0130b9eb01c354f18326d7d3a1eeb2c5eb8