Commit Graph

855 Commits

Author SHA1 Message Date
Sunny Goyal
1a8f6fb736 Updating the fast scroll bar UI
Bug: 37015359
Change-Id: Iec0748f04ebe9a3eef13ff759da3cab6ff28c3a1
2017-06-16 14:57:34 -07:00
TreeHugger Robot
9c1e80cfe1 Merge "Replacing png asset with vector drawable" into ub-launcher3-dorval-polish 2017-06-12 17:01:06 +00:00
Sunny Goyal
325b5c7a66 Some theme fixes
> workspaceTextColor was not clearly defined to white and relied on HomeScreenElementTheme
> Not all attributes were defined in sw720dp. Created a interm style to avoid such errors
> Applying proper tint to resize frame
> Fixing shadow colors for homescreen icon

Change-Id: If8441011c968291de50b2fd8d7612ce3d5353b95
2017-06-11 20:24:02 -07:00
Sunny Goyal
a93d09fe63 Replacing png asset with vector drawable
Change-Id: Id3aa5f7a1782052cd646b8935cff5f62e2ee2cdf
2017-06-11 01:14:29 -07:00
Mario Bertschler
93e39ecdeb Title style for text setting font family.
b/62389480

Change-Id: I93135d99487a18e2a74d0e197955898cec40072b
2017-06-09 11:23:47 -07:00
Tony Wickham
0ecf5bcfcb resolve merge conflicts of 7092db024 to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.x
Change-Id: I0f9ed3d42fcb04299c3c23d06629f855614c0538
2017-06-08 15:49:07 -07:00
Tony Wickham
7092db0241 Add support for color extracted notification dots
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
2017-06-08 21:08:47 +00:00
Tony Wickham
16c3e91949 Updating icon badging string to "Notification dots"
am: 85b64c7da0

Change-Id: Ibbdb9576502673ea1229c78a4d0027c4a50a18a8
2017-06-08 20:05:10 +00:00
Tony Wickham
85b64c7da0 Updating icon badging string to "Notification dots"
Change-Id: Ie3193c8aae8fee5860274ba6823b0cdfe25b1083
2017-06-08 19:18:31 +00:00
Mario Bertschler
54ba601a99 Dark text support for caret, drop target text and cell layout drop outline
Change-Id: I1bcad657b6e49be6fa93cafe9d8ae304604be34d
2017-06-08 10:54:09 -07:00
Mario Bertschler
9483c6f4ed Merge "Dark color on super light wallpaper support" into ub-launcher3-dorval-polish 2017-06-08 17:45:56 +00:00
Jon Miranda
5c83e7cdc5 Refactor and generalize SpringAnimationHandler.
SpringAnimationHandler is only responsible for motion tracking and
updating the list of springs it is handling.

Spring initialization and updates are handled by the AnimationFactory
interface.

This is done in preparation for future CLs where SpringAnimationHandler
will be used in more cases.

Bug: 38349031
Change-Id: I5ebce710cc05e4e88b708ceea5d2cfefbd0eb3d0
2017-06-07 15:45:45 -07:00
Mario Bertschler
a693694502 Dark color on super light wallpaper support
Change-Id: I0fdfa9abefb72e06c45b1f635ac97e2acfa97f05
2017-06-07 15:25:07 -07:00
Sunny Goyal
d9a2187621 Adding tint support for shadow drawable.
Bug: 37616877
Change-Id: I2ce8d82143238422bccabfa5191ef95e936a713d
2017-06-07 10:41:55 -07:00
TreeHugger Robot
da84e97947 Merge "Removing QsbBlockerView" into ub-launcher3-dorval-polish 2017-06-07 00:47:56 +00:00
Sunny Goyal
966d901af0 Removing QsbBlockerView
> Removing workspace state change listener. State change happens with hardware layer,
  so children should not be calling invalidatge() during the animation
> Moving QSB inside the QSB and removing a floating layout

Bug: 37616877
Change-Id: I9af3522a05dafa5796586bb64f512d98688caf79
2017-06-06 16:48:25 -07:00
Tony Wickham
90038ebab2 Add support for popup dark theme
Bug: 62380473
Change-Id: Ib22e9b82841bf10b7f139638f268f0a878e3c6b9
2017-06-06 16:34:20 -07:00
Tony
acaf5b3a37 Remove gap between popup items
- Unround interior corners
- Update colors (shortcuts are gray when next to
  notifications, notifications always white)
- Clean up animation to animate entire popup with
  simple reveal instead of individual items
  animating with reveal and icon scale

Bug: 35766387
Bug: 36110804
Change-Id: I33685d53e2db3904731676123dc230be4dabb5d4
2017-05-31 15:11:43 -07:00
Mario Bertschler
c6e07299c2 Providing a default color extraction implementation.
Enabling FeatureFlag LAUNCHER3_GRADIENT_ALL_APPS

Change-Id: I86d982344a4a04a79bde6dce714b1f0bff90f992
2017-05-26 11:36:51 -07:00
Sunny Goyal
1f5a264fac [DO NOT MERGE] Making various icon shape options as non-translatable
Change-Id: I2abe2c84a7c6a2b9cad8b3238ba6ee8a5761f70e
2017-05-25 09:46:17 -07:00
Sunny Goyal
9d9dbcb1b8 Revert "Revert "Fixing string not correctly marked as non-translatable""
This reverts commit 0ec2da54f8.

Change-Id: Id685c338ab5474e41cfd3792ef98b9cf4b0c4fba
2017-05-25 16:44:33 +00:00
Sunny Goyal
0ec2da54f8 Revert "Fixing string not correctly marked as non-translatable"
This reverts commit 477b8cc1b4.

Change-Id: I114f89c20d735d0e17cc93e8f78876bf8a388a6a
2017-05-25 16:42:18 +00:00
Sunny Goyal
477b8cc1b4 Fixing string not correctly marked as non-translatable
Bug: 38371442
Change-Id: I79a679d461e422dbb4e4832192ac40e6c2d509de
2017-05-25 09:08:49 -07:00
Sunny Goyal
368ae77201 Defining a dark theme for launcher
> 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
2017-05-24 14:34:04 -07:00
Jon Miranda
896e71a859 Update FolderIcon preview to be 1dp bigger (stroke) than other
shortcuts.

Bug: 38338424
Change-Id: I2e9cdb2285e97e9d899eda13947bedb40d6fbcb2
2017-05-24 12:15:24 -07:00
Tony Wickham
998dbecf53 Merge "Rename "Settings" to "Home settings"" into ub-launcher3-dorval-polish 2017-05-22 20:14:15 +00:00
Tony Wickham
cbe6c2849e Rename "Settings" to "Home settings"
Bug: 37903251
Change-Id: Ia6a8b329135100af9b54900e275c5362695bfd74
2017-05-19 19:33:26 -07:00
Tony Wickham
3720c69322 resolve merge conflicts of 8af16760d to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I4cdfeebd09be58270c249429104d91dc9a31b49c
2017-05-19 12:17:02 -07:00
Tony Wickham
d5dbf61757 resolve merge conflicts of 02aced978 to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ib44ce0130b9eb01c354f18326d7d3a1eeb2c5eb8
2017-05-19 10:52:19 -07:00
Tony Wickham
30e55d0f7c Don't set system shortcut text to white
Bug: 38201638
Change-Id: Icacd63810306848ec1fb54e5dcc6021660ac5099
2017-05-18 15:31:19 -07:00
Tony Wickham
8af16760dc Merge "Update accessibility for popup" into ub-launcher3-dorval 2017-05-18 01:06:46 +00:00
Sunny Goyal
8b6ac00a1b Adding an option to change the shadow size
Change-Id: I8ec810c5cf06852771247af5f1d717f41079c4f5
2017-05-17 13:43:45 -07:00
Tony Wickham
9863ea5dc7 Merge "Add setting to turn off icon badging" into ub-launcher3-dorval
am: d315d07aee

Change-Id: Id23914cbee040f3916257e02a9eb6b3f5a821b83
2017-05-16 23:38:22 +00:00
Tony Wickham
02aced9782 Merge "Use a single color for all icon badges." into ub-launcher3-dorval 2017-05-16 23:34:52 +00:00
Tony Wickham
2ab8482809 Add setting to turn off icon badging
Redirects to system Notifications setting page.

Bug: 36815147
Change-Id: I5ee542f94ed51a73a57df3a726384944ff3ee71d
2017-05-16 14:08:42 -07:00
Tony Wickham
e6a790e5ae Use a single color for all icon badges.
Bug: 38346375
Change-Id: I26b7ad3dcfea6a18e169d656e19605c9794eadd3
2017-05-16 13:04:23 -07:00
Sunny Goyal
054090ae2a Updating the icon shape override options
am: e7539e9be6

Change-Id: I5fa0da129b8173db1537562bdca67e1508ee2861
2017-05-16 16:45:59 +00:00
Sunny Goyal
e7539e9be6 Updating the icon shape override options
> Removing rounded rect and cylinder
> Adding tear drop shape
> Updating the label for default setting

Bug: 38216026
Change-Id: Ie31baef1171a78e2d95c617ef8fa8c669dd7c817
2017-05-16 16:26:39 +00:00
Sunny Goyal
dc19a07aba Adding support for top padding in BaseRecyclerView. The scrollbar is
drawn below the top padding.
Also adding callback for getting the all-apps vertical pull range
so that it can be controlled by SearchUiManager

Bug: 37616877
Change-Id: Ib4642073f3e92f6676caede3bddd652fda89c86f
2017-05-15 14:14:04 -07:00
Tony
18c4aa458e Update accessibility for popup
- Content description includes count of notifications.
- Notifications have a dismiss action.
- All icons that support shortcuts will have action to show
  shortcut menu, since there will be system shortcuts even if
  there are no deep shortcuts.

Bug: 36564782
Change-Id: I51b085fa26754f2dcd93c7db6548f2edf054f494
2017-05-11 13:59:52 -07:00
TreeHugger Robot
9968ed0932 Merge "Adding listener support for color extraction changes Changing the apps-search layout to use theme attribute instead of hard coded layout id" into ub-launcher3-dorval-polish 2017-05-11 19:46:28 +00:00
Tony
e37d2b9f32 Merge "Visual updates for popup" into ub-launcher3-dorval
am: 5cfde85cb6

Change-Id: I4e97cb52054b5c5ff467f3481b92730f6f9a3e8e
2017-05-10 01:19:41 +00:00
Tony
0b8a6fe532 Visual updates for popup
- Update some dimens
  - Increase left padding for shortcuts
  - Adjust arrow and notification ellipsis offset accordingly
  - Align shortcut dividers to be same width as text
  - Notification text 14sp instead of 15sp
  - Increase width of popup by 12dp
- Shortcuts text 87% black instead of 54%
- Arrow has same color as attached side, so takes on header
  gray instead of white when appropriate

Bug: 37753827
Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
2017-05-09 20:02:23 -05:00
Sunny Goyal
60820d796f Adding listener support for color extraction changes
Changing the apps-search layout to use theme attribute instead of hard
coded layout id

Bug: 37616877
Change-Id: Iae601758303f83a2774635f0d88f74d99fc643c3
2017-05-09 12:41:50 -07:00
Sunny Goyal
161f96bc77 Moving apps search related logic into a custom layout file
This will allow derivative projects to easily change the search behavior
by simply overriding the xml file

Bug: 37616877
Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
2017-05-08 14:43:32 -07:00
Sunny Goyal
da1dfa32d0 Creating a custom drawable to customize shadow.
> Fixing DrapTargetBar set to visible (with alpha = 0) in the start
causing unnecessary draw

Bug: 37616877
Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
2017-04-27 05:35:28 -07:00
Sunny Goyal
d519052281 Separating top and bottom paddings for the hotseat
Bug: 37616877
Change-Id: I2f187576c28d62f9bb8257c9b9295edb7a8e44c0
(cherry picked from commit 751e41eb66)
2017-04-26 06:00:21 +00:00
Tony Wickham
0e96f3fea9 Merge "Update icon badges to match spec" into ub-launcher3-dorval
am: 0fa96ea2f6

Change-Id: I5f8e6bdbca13435d54e3b636564f7d3eef58ca5c
2017-04-25 23:59:41 +00:00
TreeHugger Robot
0fa96ea2f6 Merge "Update icon badges to match spec" into ub-launcher3-dorval 2017-04-25 20:02:37 +00:00
Tony Wickham
1237df0a7c Update icon badges to match spec
- Size defined as percentage of app icon size
- Width changes when there are 2 or 3 digits (round rect)
- Offset slightly away from the app icon
  - Had to move drawing to BubbleTextView instead of
    FastBitmapDrawable
- Hide badge when dragging and while popup is open
- Tweaks for some color/text parameters

Bug: 35744066
Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c
2017-04-25 12:55:02 -07:00