diff options
author | Tony <twickham@google.com> | 2016-07-25 17:17:11 -0700 |
---|---|---|
committer | Tony <twickham@google.com> | 2016-07-26 17:54:02 -0700 |
commit | 780c926db5094de5f80bdd3dfedf3e97777cc4f4 (patch) | |
tree | 4d3516c8164ebb050f981307a9eb355dc8ce495d /res/values/dimens.xml | |
parent | eec1f9a839e8c58a96f16f61e998891433e0eb6b (diff) | |
download | android_packages_apps_Trebuchet-780c926db5094de5f80bdd3dfedf3e97777cc4f4.tar.gz android_packages_apps_Trebuchet-780c926db5094de5f80bdd3dfedf3e97777cc4f4.tar.bz2 android_packages_apps_Trebuchet-780c926db5094de5f80bdd3dfedf3e97777cc4f4.zip |
Match updated redlines for shortcuts.
- Align shortcut icons with original icon.
- Drag handle is lighter and smaller.
- Shortcut pills are slightly wider to accommodate long text.
Bug: 28980830
Change-Id: I8e9709e3cbdb9df86a805a4b63a696975c61df5a
Diffstat (limited to 'res/values/dimens.xml')
-rw-r--r-- | res/values/dimens.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 6bfd0692b..7436478f9 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -155,7 +155,7 @@ <!-- Deep shortcuts --> <dimen name="deep_shortcuts_elevation">9dp</dimen> - <dimen name="bg_pill_width">180dp</dimen> + <dimen name="bg_pill_width">208dp</dimen> <dimen name="bg_pill_height">48dp</dimen> <dimen name="bg_pill_radius">24dp</dimen> <dimen name="deep_shortcuts_spacing">4dp</dimen> @@ -164,9 +164,18 @@ of the shortcut container before the container is removed. --> <dimen name="deep_shortcuts_start_drag_threshold">35dp</dimen> <dimen name="deep_shortcut_icon_size">36dp</dimen> + <dimen name="deep_shortcut_padding_start">6dp</dimen> + <dimen name="deep_shortcut_padding_end">16dp</dimen> + <dimen name="deep_shortcut_drawable_padding">8dp</dimen> <dimen name="deep_shortcut_anim_translation_y">5dp</dimen> + <dimen name="deep_shortcut_drag_handle_size">16dp</dimen> <dimen name="deep_shortcuts_arrow_width">10dp</dimen> <dimen name="deep_shortcuts_arrow_height">8dp</dimen> <dimen name="deep_shortcuts_arrow_vertical_offset">-2dp</dimen> + <!-- deep_shortcut_padding_start + deep_shortcut_icon_size / 2 - deep_shortcuts_arrow_width / 2--> + <!-- Note that this works for right-aligned shortcuts, too, because + deep_shortcut_padding_end + deep_shortcut_drag_handle_size / 2 - deep_shortcuts_arrow_width / 2 + also happens to equal 19dp--> + <dimen name="deep_shortcuts_arrow_horizontal_offset">19dp</dimen> </resources> |