mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Mostly copied from its location in Tips. Some exceptions: - Accent color (used for the icon at the top and link text) is derived from intent extras to match the rest of SUW. If needed, we could also pass other colors this way; currently they just use default light/dark mode colors. - Currently there is no animation in the middle. Not sure if one is expected, but we can add it later if so. Bug: 184722307 Test: Manually passing arbitrary colors via adb: adb shell am start -a com.android.quickstep.action.GESTURE_ONBOARDING_ALL_SET --ei accent_color_dark_mode -2134901760 --ei accent_color_light_mode 2147418112 Change-Id: I1fb8b20b88b7485d28f06afd2b421999ad847266
146 lines
6.7 KiB
XML
146 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2017 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<resources>
|
|
<dimen name="task_thumbnail_icon_size">48dp</dimen>
|
|
<dimen name="task_thumbnail_icon_size_grid">32dp</dimen>
|
|
<!-- For screens without rounded corners -->
|
|
<dimen name="task_corner_radius_small">2dp</dimen>
|
|
|
|
<dimen name="overview_proactive_row_height">48dp</dimen>
|
|
<dimen name="overview_proactive_row_bottom_margin">16dp</dimen>
|
|
|
|
<dimen name="overview_minimum_next_prev_size">48dp</dimen>
|
|
<dimen name="overview_task_margin">16dp</dimen>
|
|
|
|
<!-- Overrideable in overlay that provides the Overview Actions. -->
|
|
<dimen name="overview_actions_height">48dp</dimen>
|
|
<dimen name="overview_actions_bottom_margin_gesture">12dp</dimen>
|
|
<dimen name="overview_actions_bottom_margin_three_button">8dp</dimen>
|
|
<dimen name="overview_actions_horizontal_margin">16dp</dimen>
|
|
|
|
<dimen name="overview_grid_top_margin">77dp</dimen>
|
|
<dimen name="overview_grid_bottom_margin">90dp</dimen>
|
|
<dimen name="overview_grid_side_margin">54dp</dimen>
|
|
<dimen name="overview_grid_row_spacing">42dp</dimen>
|
|
<dimen name="overview_grid_focus_vertical_margin">130dp</dimen>
|
|
<dimen name="split_placeholder_size">110dp</dimen>
|
|
|
|
<dimen name="recents_page_spacing">16dp</dimen>
|
|
<dimen name="recents_clear_all_deadzone_vertical_margin">70dp</dimen>
|
|
|
|
<!-- The speed in dp/s at which the user needs to be scrolling in recents such that we start
|
|
loading full resolution screenshots. -->
|
|
<dimen name="recents_fast_fling_velocity">600dp</dimen>
|
|
|
|
<!-- These speeds are in dp / ms -->
|
|
<dimen name="motion_pause_detector_speed_very_slow">0.0285dp</dimen>
|
|
<dimen name="motion_pause_detector_speed_slow">0.15dp</dimen>
|
|
<dimen name="motion_pause_detector_speed_somewhat_fast">0.285dp</dimen>
|
|
<dimen name="motion_pause_detector_speed_fast">1.4dp</dimen>
|
|
<dimen name="motion_pause_detector_min_displacement_from_app">36dp</dimen>
|
|
<dimen name="quickstep_fling_threshold_speed">0.5dp</dimen>
|
|
|
|
<!-- Launcher app transition -->
|
|
<dimen name="content_trans_y">50dp</dimen>
|
|
<dimen name="closing_window_trans_y">115dp</dimen>
|
|
|
|
<dimen name="recents_empty_message_text_size">16sp</dimen>
|
|
<dimen name="recents_empty_message_text_padding">16dp</dimen>
|
|
|
|
<dimen name="max_shadow_radius">5dp</dimen>
|
|
|
|
<!-- Total space (start + end) between the task card and the edge of the screen
|
|
in various configurations -->
|
|
<dimen name="task_card_menu_option_vertical_padding">8dp</dimen>
|
|
<dimen name="task_card_menu_shadow_height">3dp</dimen>
|
|
<dimen name="task_menu_option_start_margin">12dp</dimen>
|
|
<!-- Copied from framework resource:
|
|
docked_stack_divider_thickness - 2 * docked_stack_divider_insets -->
|
|
<dimen name="multi_window_task_divider_size">10dp</dimen>
|
|
|
|
<!-- Assistant Gestures -->
|
|
<!-- Distance from the vertical edges of the screen in which assist gestures are recognized -->
|
|
<dimen name="gestures_assistant_width">48dp</dimen>
|
|
<dimen name="gestures_assistant_drag_threshold">55dp</dimen>
|
|
<dimen name="gestures_assistant_fling_threshold">55dp</dimen>
|
|
|
|
<!-- One-Handed Mode -->
|
|
<!-- Threshold for draging distance to enable one-handed mode -->
|
|
<dimen name="gestures_onehanded_drag_threshold">20dp</dimen>
|
|
|
|
<!-- Distance to move elements when swiping up to go home from launcher -->
|
|
<dimen name="home_pullback_distance">28dp</dimen>
|
|
|
|
<!-- Distance to move the tasks when swiping up while the device is locked -->
|
|
<dimen name="device_locked_y_offset">-80dp</dimen>
|
|
|
|
<!-- Overscroll Gesture -->
|
|
<dimen name="gestures_overscroll_fling_threshold">40dp</dimen>
|
|
<dimen name="gestures_overscroll_active_threshold">80dp</dimen>
|
|
<dimen name="gestures_overscroll_finish_threshold">136dp</dimen>
|
|
|
|
<!-- Tips Gesture Tutorial -->
|
|
<dimen name="gesture_tutorial_title_margin_start_end">40dp</dimen>
|
|
<dimen name="gesture_tutorial_subtitle_margin_start_end">16dp</dimen>
|
|
<dimen name="gesture_tutorial_feedback_margin_start_end">24dp</dimen>
|
|
<dimen name="gesture_tutorial_button_margin_start_end">18dp</dimen>
|
|
|
|
<!-- All Set page -->
|
|
<dimen name="allset_page_margin_horizontal">40dp</dimen>
|
|
<dimen name="allset_title_margin_top">28dp</dimen>
|
|
<dimen name="allset_title_icon_margin_top">80dp</dimen>
|
|
<dimen name="allset_hint_margin_bottom">52dp</dimen>
|
|
<dimen name="allset_subtitle_margin_top">24dp</dimen>
|
|
|
|
<!-- All Apps Education tutorial -->
|
|
<dimen name="swipe_edu_padding">8dp</dimen>
|
|
<dimen name="swipe_edu_circle_size">64dp</dimen>
|
|
<dimen name="swipe_edu_width">80dp</dimen>
|
|
<dimen name="swipe_edu_max_height">184dp</dimen>
|
|
|
|
<dimen name="chip_hint_border_width">1dp</dimen>
|
|
<dimen name="chip_hint_corner_radius">20dp</dimen>
|
|
<dimen name="chip_hint_outer_padding">20dp</dimen>
|
|
<dimen name="chip_hint_start_padding">10dp</dimen>
|
|
<dimen name="chip_hint_end_padding">12dp</dimen>
|
|
<dimen name="chip_hint_horizontal_margin">20dp</dimen>
|
|
<dimen name="chip_hint_vertical_offset">16dp</dimen>
|
|
<dimen name="chip_hint_elevation">2dp</dimen>
|
|
<dimen name="chip_icon_size">16dp</dimen>
|
|
<dimen name="chip_text_height">26dp</dimen>
|
|
<dimen name="chip_text_top_padding">4dp</dimen>
|
|
<dimen name="chip_text_start_padding">10dp</dimen>
|
|
<dimen name="chip_text_size">14sp</dimen>
|
|
|
|
<dimen name="all_apps_prediction_row_divider_height">17dp</dimen>
|
|
<dimen name="all_apps_label_top_padding">16dp</dimen>
|
|
<dimen name="all_apps_label_bottom_padding">8dp</dimen>
|
|
<dimen name="all_apps_label_text_size">14sp</dimen>
|
|
|
|
<!-- Minimum distance to swipe to trigger accessibility gesture -->
|
|
<dimen name="accessibility_gesture_min_swipe_distance">80dp</dimen>
|
|
|
|
<!-- Taskbar -->
|
|
<dimen name="taskbar_size">60dp</dimen>
|
|
<dimen name="taskbar_icon_size">44dp</dimen>
|
|
<dimen name="taskbar_icon_touch_size">48dp</dimen>
|
|
<dimen name="taskbar_icon_drag_icon_size">54dp</dimen>
|
|
<!-- Note that this applies to both sides of all icons, so visible space is double this. -->
|
|
<dimen name="taskbar_icon_spacing">8dp</dimen>
|
|
<dimen name="taskbar_folder_margin">16dp</dimen>
|
|
</resources>
|