summaryrefslogtreecommitdiffstats
path: root/res/values
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Simplifying some launcher themes" into ub-launcher3-masterSunny Goyal2017-02-173-85/+25
|\
| * Simplifying some launcher themesSunny Goyal2017-02-163-85/+25
| | | | | | | | | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* | Merge "Add notification listener back to the manifest" into ub-launcher3-masterAdam Cohen2017-02-171-0/+21
|\ \
| * | Add notification listener back to the manifestTony2017-02-161-0/+21
| |/ | | | | | | | | | | | | | | | | | | | | This reverts commit d27b65d4d0035d6b66aac3e6040aa791f155e502. Also added boolean to values/ and values-v25/ and values-v26/ to enabled/disable the listener by API version. Bug: 35443111 Bug: 33553066 Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
* / Updating the shortcut preview generation logicSunny Goyal2017-02-161-0/+1
|/ | | | | | | | Drawing a shortcut icon on a white round-rect with shadow Also center aligning the preview Bug: 34819119 Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
* Merge "Updating the default widget preview generation logic" into ↵Sunny Goyal2017-02-091-0/+5
|\ | | | | | | ub-launcher3-master
| * Updating the default widget preview generation logicSunny Goyal2017-02-081-0/+5
| | | | | | | | | | | | | | | | | | We draw a while round rect box which is divided into the cells to represent the widget size. The app icon is drawn in the center for this white box. Bug: 34819119 Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
* | Merge "Updating widget tray theme" into ub-launcher3-masterTreeHugger Robot2017-02-093-17/+4
|\ \
| * | Updating widget tray themeSunny Goyal2017-02-093-17/+4
| |/ | | | | | | | | | | | | | | | | | | Using standard theme attributes rather than custom color codes, so that it plays nice with system theme changes. Bug: 34819119 Bug: 34897402 Bug: 21446746 Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
* | Merge "Show notification icon in place of "1" in badge." into ↵Tony Wickham2017-02-071-0/+2
|\ \ | |/ |/| | | ub-launcher3-master
| * Show notification icon in place of "1" in badge.Tony Wickham2017-02-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When notifications update, add the NotificationInfo to the BadgeInfo if there is only one for an app. BadgeRenderer will use the NotificationInfo to get the icon to draw. - When retrieving the icon from the NotificationInfo, we draw it into a shader (similar to MaskableIconDrawable), which is rendered by BadgeRenderer. - For now, we only use the notification icon if it is large. Bug: 34839959 Bug: 32410600 Bug: 33553066 Change-Id: I31851804008dd15bab75d2759441187830c3265e
* | Updating the PreloadIconDrawableSunny Goyal2017-02-063-20/+0
|/ | | | | | | | | > The drawable gets the path from MaskIconDrawable path, instead of using a circle > The progress changes are animated as well Bug: 34831873 Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
* Changes required to use MaskableIconDrawable inside Launcher3Hyunyoung Song2017-01-301-0/+1
| | | | | | | | | | | | | This CL will bake the legacy icons inside a grey background Note: There will be follow up CL to change the color and shadow of the legacy icon. The idea of this CL is to first test if MaskableIconDrawable methods and class work properly. Bug: 32063838 Bug: 33553066 Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
* Ensure notification icons have enough contrast with background.Tony Wickham2017-01-271-0/+2
| | | | | | | | | This uses the same color calculations as the system, except that we use the extracted notification background instead of assuming it is white. Bug: 32410600 Change-Id: I7be8b9459ca38d01a6780758898541e69ec42576
* Add swipe-to-dismiss notifications in popup menu.Tony Wickham2017-01-254-2/+43
| | | | | | | | | | | | | | - Next secondary icon animates up to replace dismissed main notification - Add padding around main notification so it always aligns with the straight edges of the view (not the rounded corners); looks more dismissable - Notification view collapses as notifications are dismissed - To mimic system notification behavior, we copy SwipeHelper, FlingAnimationUtils, and Interpolators. We also apply elevation to notifications and reveal a darker color beneath when dismissing. Bug: 32410600 Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
* Fix color for widget tray to match Default.Settings themeFan Zhang2017-01-241-2/+1
| | | | | | Change-Id: Ief4079853a8275a75c27d3c22b57a72a35274307 Fix: 34672511 Test: visual
* Updating widget preview generation to not embed any badge.Sunny Goyal2017-01-191-1/+1
| | | | | | | | | Instead drawing badge in the view directly. This will allow us to reuse the same preview when we do not want to draw badges. This also simplified badging of shortcut config activities. Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-181-0/+4
| | | | | | | on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
* FastBitmapDrawable can draw an icon badge (notification count)Tony Wickham2017-01-131-0/+4
| | | | | | | | | | | | | - Added BadgeInfo to contain data to be shown in a badge (currently just notification count). - Added BadgeRenderer in DeviceProfile to contain things relevant to drawing the badge, such as size and Paint's. - Added IconPalette to compute colors for the badge based on a dominant color (will also be used for notifications) - FastBitmapDrawable uses these classes to draw the badge. Bug: 32410600 Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
* This enables to slide up All Apps from anywhere in the workspace,Mario Bertschler2017-01-091-2/+0
| | | | | | | | | | not only over the hotseat. The tricky part handling with scrollable widgets is solved by setting requestDisallowInterceptTouchEvent from within the widget view host (and resetting it upon performing long click). Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
* Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-151-8/+0
| | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* Merge "nav bar on all apps container should use light theme. b/33553066 ↵Hyunyoung Song2016-12-121-0/+1
|\ | | | | | | Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2" into ub-launcher3-master
| * nav bar on all apps container should use light theme.Hyunyoung Song2016-12-121-0/+1
| | | | | | | | | | b/33553066 Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2
* | Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" ↵Sunny Goyal2016-12-121-0/+8
|\ \ | | | | | | | | | into ub-launcher3-master
| * | Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-0/+8
| |/ | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* / Adding an overridable DrawableFactory to allow creating custom icon drawablesSunny Goyal2016-12-071-0/+3
|/ | | | | | > Adding ItemInfo as a parameter for creating drawable Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
* Hide workspace text in multi-window mode.Jon Miranda2016-11-152-0/+2
| | | | | | | | | * Vertically centers workspace icons. * New iconDisplay value so shortcut text is not overriden. Bug: 32176631 Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
* Refactor edge of screen detection code.Jon Miranda2016-11-071-3/+0
| | | | | | There were two resources that both defined the edge of the screen. Change-Id: I82ab553cc3123ef54ff1f0c692d29f3678ad04ac
* Scale down folder cells to fit within bounds if necessary.Jon Miranda2016-11-041-1/+0
| | | | | | | | | The number of folder cols/rows are set in InvariantDeviceProfile. Because of this, we may need to scale down the folder cells in multi-window mode. Bug: 32176631 Change-Id: I925d5ac9d29439c5d61cf089e7784065a8cb5ebd
* Remove unused code in DeviceProfile.Jon Miranda2016-11-021-2/+0
| | | | Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883
* Removing the section break UI supportSunny Goyal2016-10-131-3/+0
| | | | | | | This was an exploration for an alternative UI in all apps, where we show section headers before every section. This was never released. Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016
* Making the width of the fast scroller popup as wrap_contentSunny Goyal2016-10-111-0/+14
| | | | | | | Adding minWidth and width=wrap_content, so that the popup can grow for wider characters. Change-Id: I6e0c4087df51e37f696c47f20f146f32d41e8bc8
* Merge "Simplifying fast scroller logic" into ub-launcher3-masterSunny Goyal2016-10-111-0/+1
|\
| * Simplifying fast scroller logicSunny Goyal2016-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | > Using a separate view for drawing the popup. This allows us to use elevation property instead of drawing the shadow as bitmap. > During the thumb animation, invalidating the full track width, instead of invalidating the track and thumb separately. > The thumb path is calculated at 0,0 and drawn using canvas.translate(). This avoids recalculating the path on every scroll. Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6
* | Updating the folder cell dimensions to be closer to a squareSunny Goyal2016-10-101-2/+3
|\ \ | |/ |/| | | | | | | am: 68f240eb54 Change-Id: I68047a8eba8b3a0c8117fedbc45b6100dd04b023
| * Updating the folder cell dimensions to be closer to a squareSunny Goyal2016-10-071-2/+3
| | | | | | | | | | Bug: 31813976 Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
* | Refactoring floating view opening/closing logicSunny Goyal2016-10-101-0/+3
| | | | | | | | | | | | | | | | | | > Creating a base view for floating panels with some common methods > Moving the getOpen method to individual classes > Moving the folder icon animation logic to folder icon > Moving all the logic related for opening folder to Folder class Change-Id: I898dfb6870b857cb921d2729b89618bc43ff2e88
* | Update pre-drag lifecycle for apps with shortcuts.Tony Wickham2016-10-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - First of all, deferred drag has been renamed to pre-drag to avoid confusion with the existing deferred end drag. - For normal drags, the cycle is still startDrag --> onDragStart --> onDrop --> onDropComplete --> onDragEnd. - Pre-drags have two additional callbacks: onPreDragStart and onPreDragEnd. onPreDragStart is called between startDrag and onDragStart, and onPreDragEnd is called at the same time as onDragStart or onDragEnd. - If the pre-drag has not transitioned to a full drag before onDragEnd, onDragStart and onDropComplete are skipped (onDrop is still called to allow the DragView to animate). Change-Id: Icd7a8f75d5fcc159f9a52758c22ab6eae3edb9e2
* | Merge "Exposing custom actions using keyboard shortcut" into ub-launcher3-masterSunny Goyal2016-10-031-0/+4
|\ \
| * | Exposing custom actions using keyboard shortcutSunny Goyal2016-09-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keyboard shortcuts: ctrl+A => Open all apps ctrl+S => shows deep shortcuts ctrl+O => shows custom actions popup This also removes the direct delete/uninstall key shortcuts, making actidental icon removal less likely Bug: 24065447 Change-Id: Iae63370c0f33620628567cffd4df024064d4d02e
* | | Decrease drop target left and right padding.Tony Wickham2016-09-281-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | am: e0dab19c71 Change-Id: If9c1fcaa99fb9e41eefa61895752f1a7558c29bf
| * | Decrease drop target left and right padding.Tony Wickham2016-09-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise it looks like we are aggressively truncating the text even though there is plenty of room to show it. Bug: 31790418 Change-Id: Ia1cdc232f05815732d4cb95b954e935724a200fd
* | | resolve merge conflicts of 9311387 to ub-launcher3-masterTony Wickham2016-09-281-0/+5
|\| | | | | | | | | | | Change-Id: I449cd2c91c2906f04ebf844eab2d02befaeb2f4d
| * | Enable light status bar when top of wallpaper is light.Tony Wickham2016-09-281-0/+4
| | | | | | | | | | | | | | | | | | | | | (Light status bar = dark icons) Bug: 29452834 Change-Id: I9f61a05d80158827761c8b62ab40fc50971e27a6
* | | Merge "Ignore long clicks triggered from the edge of screen." into ↵Jonathan Miranda2016-09-271-0/+2
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Ignore long clicks triggered from the edge of screen.Jon Miranda2016-09-261-0/+2
| |/ / | | | | | | | | | | | | Bug: 31572404 Change-Id: Ie531941669549ce84b92302b95be94555ee0bb73
* / / Restore AllAppsContainerView UI to match spec.Jon Miranda2016-09-261-1/+1
|/ / | | | | | | | | | | Did some refactoring with Sunny's help. Change-Id: Ie4c90c316f1e381829836e11c83eaaedfed4d621
* | Refactor shortcuts drag and drop.Tony Wickham2016-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Instead of creating our own drag view within the container, and handling logic to determine when to start a real drag, we start the drag immediately and just defer onDragStart(). - To determine when the deferred drag should start, we add a DeferDragCondition to DragOptions. The default DeferDragCondition never defers a drag, but is overridden for apps with shortcuts to defer until the icon is dragged a given distance. - Because the drag is handled in DragController, including checking when to start the deferred drag, DeepShortcutsContainer no longer needs to handle touch events and ShortcutsContainerListener has been removed. This change has several immediate benefits: - The code is much cleaner, because it allows touch handling to be done by the DragController through the normal drag flow, without recreating logic in ShortcutsContainerListener/DeepShortcutContainer. - The janky second haptic feedback has been removed (now it vibrates when you long press, like everywhere else, but not again when the shortcuts close after dragging a distance). - Drops are animated, instead of just popping the icon back into place. Bug: 30769920 Bug: 30465972 Bug: 31533078 Change-Id: I679b412b72fbf6c3895d76963311eb5010c8e8db
* | Removing center vertical from folder gravity.Sunny Goyal2016-09-231-1/+1
| | | | | | | | | | | | | | | | Using center vertical alogn with a fixed height, overrides the custom drawable padding and divides the available space proportionally between padding and drawable padding Change-Id: I4523543ab3007ef40eac69d878d2afbca13b483a
* | Fade deep shorcuts in and out.Tony Wickham2016-09-221-0/+1
|/ | | | | | | | | | | | | | | | | | | Animate open: - Stagger-fade shortcuts as they open - Become fully opaque before fully open, at which point the arrow animates in (scale). This way there is no overlap of a translucent shortcut over an opaque arrow. Animate close: - Stagger-fade shortcuts as they close - Delay fade until arrow animation is finished, to ensure there is no overlapping of translucent and opaque. This is much less visually jarring when quickly dragging and dropping apps with shortcuts. Bug: 31533078 Change-Id: I8673ee64e92414c718233ea89b70362187e53696