mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Technically these styles can be used throughout Launcher, e.g. Widget Picker and Folders, but this CL only applies it to All Apps. At a high level, views wishing to apply transparency to show blur should use these new attr values rather than colors directly. When blur changes, e.g. starting or stopping battery saver, the style is re-applied and revelant views are invalidated. For Launcher, this is handled by DepthController, and for Taskbar it's handled by a CrossWindowBlurListener. Also updated the Private Space animation slightly to account for the translucent decorators (specifically, we can't use the mask view to cover them when blur is enabled). Screenshots: https://drive.google.com/drive/folders/1tU472KHotgEBpT-Ec9VOBWPBf_YdVqv2?resourcekey=0-ebf7W8O6iDJ4UVMtRzTABg&usp=sharing Private Space animations: https://drive.google.com/file/d/1h5pn8Xb17TPcbujr7uSAJNTq8kwNZoIp/view?usp=drive_link&resourcekey=0-TzpaJ16Gg8_QJctBx4oiIg Private Space QS Tile animations: https://drive.google.com/file/d/1dCuqnqd5z2kSBEakGobMlEkMwFDBWRbJ/view?usp=drive_link&resourcekey=0-qRVFPb-a6OzaZQOf4x86Jw Bug: 371343636 Test: Manual Flag: com.android.launcher3.all_apps_blur Change-Id: Ia9f581f50d1adc0830569656bdeb751deb710a9c
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright (C) 2024 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.
|
|
-->
|
|
|
|
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:insetTop="@dimen/inset_rounded_action_button"
|
|
android:insetBottom="@dimen/inset_rounded_action_button"
|
|
android:insetLeft="@dimen/inset_rounded_action_button"
|
|
android:insetRight="@dimen/inset_rounded_action_button">
|
|
<shape
|
|
android:shape="rectangle">
|
|
<solid android:color="?attr/allAppsSurfaceLow" />
|
|
<corners android:radius="@dimen/rounded_button_radius" />
|
|
<stroke
|
|
android:width="1dp"
|
|
android:color="?attr/allAppsSurfaceLow" />
|
|
</shape>
|
|
</inset>
|