mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
This enables blur both for Taskbar and Launcher, but in slightly different ways. For Taskbar All Apps, we apply blur to the overlay window, and for Launcher All Apps, we utilize the existing DepthController to blur the wallpaper window. For similicity, we currently fade out workspace/hotseat to avoid awkward view + window blurs which don't look that good. This is not the POR, but I think it achieves most of the effect and will help us get some blur exposure. Separately I will continue to investigate options such as blurring workspace in a clever way so it feels blended with the wallpaper, reusing the Taskbar window and connecting it to LauncherState, or using a SurfaceView (though I spent quite some time trying this and it seemed the same as the original issue). In both cases, we use a 20-30% opacity scrim with a set color, and a panel that blends 40% opacity of a dark/light color with 10% white. Also updated some incorrect isTablet checks which really should have been checking shouldShowAllAppsOnSheet(), which includes the all_apps_sheet_for_handheld flag. Demo: https://drive.google.com/file/d/1Ov9Dg3R9YHNfisfxNf97ZIhlDeEA1IWj/view?usp=sharing&resourcekey=0-l_SDpqpS4HtOb10a3b_jNg Other upcoming improvements: interpolator tweaks, colors of things inside the app panel (tabs, private space, search results, etc). Bug: 400827727 Bug: 371343636 Test: Manual Flag: com.android.launcher3.all_apps_blur Change-Id: Ic7063cd822f39a5977715b5477f825bf11e57bdf
72 lines
4.2 KiB
XML
72 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 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>
|
|
<string name="overscroll_plugin_factory_class" translatable="false" />
|
|
<string name="task_overlay_factory_class" translatable="false"/>
|
|
|
|
<string-array name="back_gesture_blocking_activities" translatable="false">
|
|
<item>com.android.launcher3/com.android.quickstep.interaction.GestureSandboxActivity</item>
|
|
</string-array>
|
|
|
|
<string name="stats_log_manager_class" translatable="false">com.android.quickstep.logging.StatsLogCompatManager</string>
|
|
<string name="test_information_handler_class" translatable="false">com.android.quickstep.QuickstepTestInformationHandler</string>
|
|
<string name="widget_holder_factory_class" translatable="false">com.android.launcher3.uioverrides.QuickstepWidgetHolder$QuickstepHolderFactory</string>
|
|
<string name="instant_app_resolver_class" translatable="false">com.android.quickstep.InstantAppResolverImpl</string>
|
|
<string name="app_launch_tracker_class" translatable="false">com.android.launcher3.appprediction.PredictionAppTracker</string>
|
|
<string name="main_process_initializer_class" translatable="false">com.android.quickstep.QuickstepProcessInitializer</string>
|
|
<string name="secondary_display_predictions_class" translatable="false">com.android.launcher3.secondarydisplay.SecondaryDisplayPredictionsImpl</string>
|
|
<string name="taskbar_model_callbacks_factory_class" translatable="false">com.android.launcher3.taskbar.TaskbarModelCallbacksFactory</string>
|
|
<string name="taskbar_view_callbacks_factory_class" translatable="false">com.android.launcher3.taskbar.TaskbarViewCallbacksFactory</string>
|
|
<string name="launcher_restore_event_logger_class" translatable="false">com.android.quickstep.LauncherRestoreEventLoggerImpl</string>
|
|
<string name="taskbar_edu_tooltip_controller_class" translatable="false">com.android.launcher3.taskbar.TaskbarEduTooltipController</string>
|
|
<string name="nav_handle_long_press_handler_class" translatable="false"></string>
|
|
|
|
<!-- The number of thumbnails and icons to keep in the cache. The thumbnail cache size also
|
|
determines how many thumbnails will be fetched in the background. -->
|
|
<integer name="recentsThumbnailCacheSize">3</integer>
|
|
<integer name="recentsIconCacheSize">12</integer>
|
|
<integer name="recentsScrollHapticMinGapMillis">20</integer>
|
|
|
|
<!-- Assistant Gesture -->
|
|
<integer name="assistant_gesture_min_time_threshold">200</integer>
|
|
<integer name="assistant_gesture_corner_deg_threshold">20</integer>
|
|
|
|
<string name="wellbeing_provider_pkg" translatable="false"/>
|
|
|
|
<integer name="max_depth_blur_radius">23</integer>
|
|
<dimen name="max_depth_blur_radius_enhanced">34dp</dimen>
|
|
|
|
<!-- If predicted widgets from prediction service are less than this number, additional
|
|
eligible widgets may be added locally by launcher. When set to 0, no widgets will be added
|
|
locally. -->
|
|
<integer name="widget_predictions_min_count">6</integer>
|
|
|
|
<!-- Accessibility actions -->
|
|
<item type="id" name="action_move_to_top_or_left" />
|
|
<item type="id" name="action_move_to_bottom_or_right" />
|
|
<item type="id" name="action_create_application_bubble" />
|
|
|
|
<!-- The max scale for the wallpaper when it's zoomed in -->
|
|
<item name="config_wallpaperMaxScale" format="float" type="dimen">
|
|
@*android:dimen/config_wallpaperMaxScale
|
|
</item>
|
|
|
|
<string name="setup_wizard_pkg" translatable="false" />
|
|
|
|
<!-- This is a float because it is converted to dp later in DeviceProfile -->
|
|
<item name="taskbar_icon_size" type="dimen" format="float">44</item>
|
|
</resources>
|