Loading libs/WindowManager/Shell/res/drawable/pip_custom_close_bg.xml 0 → 100644 +24 −0 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2022 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. --> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="@color/pip_custom_close_bg" /> <size android:width="@dimen/pip_custom_close_bg_size" android:height="@dimen/pip_custom_close_bg_size" /> </shape> libs/WindowManager/Shell/res/layout/pip_menu_action.xml +8 −0 Original line number Original line Diff line number Diff line Loading @@ -21,6 +21,14 @@ android:background="?android:selectableItemBackgroundBorderless" android:background="?android:selectableItemBackgroundBorderless" android:forceHasOverlappingRendering="false"> android:forceHasOverlappingRendering="false"> <ImageView android:id="@+id/custom_close_bg" android:layout_width="@dimen/pip_custom_close_bg_size" android:layout_height="@dimen/pip_custom_close_bg_size" android:layout_gravity="center" android:src="@drawable/pip_custom_close_bg" android:visibility="gone"/> <ImageView <ImageView android:id="@+id/image" android:id="@+id/image" android:layout_width="@dimen/pip_action_inner_size" android:layout_width="@dimen/pip_action_inner_size" Loading libs/WindowManager/Shell/res/values/colors.xml +4 −1 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,9 @@ <color name="bubbles_dark">@color/GM2_grey_800</color> <color name="bubbles_dark">@color/GM2_grey_800</color> <color name="bubbles_icon_tint">@color/GM2_grey_700</color> <color name="bubbles_icon_tint">@color/GM2_grey_700</color> <!-- PiP --> <color name="pip_custom_close_bg">#D93025</color> <!-- Compat controls UI --> <!-- Compat controls UI --> <color name="compat_controls_background">@android:color/system_neutral1_800</color> <color name="compat_controls_background">@android:color/system_neutral1_800</color> <color name="compat_controls_text">@android:color/system_neutral1_50</color> <color name="compat_controls_text">@android:color/system_neutral1_50</color> Loading libs/WindowManager/Shell/res/values/config.xml +4 −0 Original line number Original line Diff line number Diff line Loading @@ -46,6 +46,10 @@ <!-- Show PiP enter split icon, which allows apps to directly enter splitscreen from PiP. --> <!-- Show PiP enter split icon, which allows apps to directly enter splitscreen from PiP. --> <bool name="config_pipEnableEnterSplitButton">false</bool> <bool name="config_pipEnableEnterSplitButton">false</bool> <!-- Time (duration in milliseconds) that the shell waits for an app to close the PiP by itself if a custom action is present before closing it. --> <integer name="config_pipForceCloseDelay">1000</integer> <!-- Animation duration when using long press on recents to dock --> <!-- Animation duration when using long press on recents to dock --> <integer name="long_press_dock_anim_duration">250</integer> <integer name="long_press_dock_anim_duration">250</integer> Loading libs/WindowManager/Shell/res/values/dimen.xml +3 −0 Original line number Original line Diff line number Diff line Loading @@ -78,6 +78,9 @@ WindowConfiguration#PINNED_WINDOWING_MODE_ELEVATION_IN_DIP --> WindowConfiguration#PINNED_WINDOWING_MODE_ELEVATION_IN_DIP --> <dimen name="pip_shadow_radius">5dp</dimen> <dimen name="pip_shadow_radius">5dp</dimen> <!-- The width and height of the background for custom action in PiP menu. --> <dimen name="pip_custom_close_bg_size">32dp</dimen> <dimen name="dismiss_target_x_size">24dp</dimen> <dimen name="dismiss_target_x_size">24dp</dimen> <dimen name="floating_dismiss_bottom_margin">50dp</dimen> <dimen name="floating_dismiss_bottom_margin">50dp</dimen> Loading Loading
libs/WindowManager/Shell/res/drawable/pip_custom_close_bg.xml 0 → 100644 +24 −0 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2022 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. --> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="@color/pip_custom_close_bg" /> <size android:width="@dimen/pip_custom_close_bg_size" android:height="@dimen/pip_custom_close_bg_size" /> </shape>
libs/WindowManager/Shell/res/layout/pip_menu_action.xml +8 −0 Original line number Original line Diff line number Diff line Loading @@ -21,6 +21,14 @@ android:background="?android:selectableItemBackgroundBorderless" android:background="?android:selectableItemBackgroundBorderless" android:forceHasOverlappingRendering="false"> android:forceHasOverlappingRendering="false"> <ImageView android:id="@+id/custom_close_bg" android:layout_width="@dimen/pip_custom_close_bg_size" android:layout_height="@dimen/pip_custom_close_bg_size" android:layout_gravity="center" android:src="@drawable/pip_custom_close_bg" android:visibility="gone"/> <ImageView <ImageView android:id="@+id/image" android:id="@+id/image" android:layout_width="@dimen/pip_action_inner_size" android:layout_width="@dimen/pip_action_inner_size" Loading
libs/WindowManager/Shell/res/values/colors.xml +4 −1 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,9 @@ <color name="bubbles_dark">@color/GM2_grey_800</color> <color name="bubbles_dark">@color/GM2_grey_800</color> <color name="bubbles_icon_tint">@color/GM2_grey_700</color> <color name="bubbles_icon_tint">@color/GM2_grey_700</color> <!-- PiP --> <color name="pip_custom_close_bg">#D93025</color> <!-- Compat controls UI --> <!-- Compat controls UI --> <color name="compat_controls_background">@android:color/system_neutral1_800</color> <color name="compat_controls_background">@android:color/system_neutral1_800</color> <color name="compat_controls_text">@android:color/system_neutral1_50</color> <color name="compat_controls_text">@android:color/system_neutral1_50</color> Loading
libs/WindowManager/Shell/res/values/config.xml +4 −0 Original line number Original line Diff line number Diff line Loading @@ -46,6 +46,10 @@ <!-- Show PiP enter split icon, which allows apps to directly enter splitscreen from PiP. --> <!-- Show PiP enter split icon, which allows apps to directly enter splitscreen from PiP. --> <bool name="config_pipEnableEnterSplitButton">false</bool> <bool name="config_pipEnableEnterSplitButton">false</bool> <!-- Time (duration in milliseconds) that the shell waits for an app to close the PiP by itself if a custom action is present before closing it. --> <integer name="config_pipForceCloseDelay">1000</integer> <!-- Animation duration when using long press on recents to dock --> <!-- Animation duration when using long press on recents to dock --> <integer name="long_press_dock_anim_duration">250</integer> <integer name="long_press_dock_anim_duration">250</integer> Loading
libs/WindowManager/Shell/res/values/dimen.xml +3 −0 Original line number Original line Diff line number Diff line Loading @@ -78,6 +78,9 @@ WindowConfiguration#PINNED_WINDOWING_MODE_ELEVATION_IN_DIP --> WindowConfiguration#PINNED_WINDOWING_MODE_ELEVATION_IN_DIP --> <dimen name="pip_shadow_radius">5dp</dimen> <dimen name="pip_shadow_radius">5dp</dimen> <!-- The width and height of the background for custom action in PiP menu. --> <dimen name="pip_custom_close_bg_size">32dp</dimen> <dimen name="dismiss_target_x_size">24dp</dimen> <dimen name="dismiss_target_x_size">24dp</dimen> <dimen name="floating_dismiss_bottom_margin">50dp</dimen> <dimen name="floating_dismiss_bottom_margin">50dp</dimen> Loading