Loading packages/SystemUI/res/drawable/action_chip_background.xml +3 −3 Original line number Diff line number Diff line Loading @@ -16,11 +16,11 @@ --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="@color/global_screenshot_button_ripple"> <item android:id="@android:id/background"> <shape android:shape="rectangle"> <stroke android:width="1dp" android:color="@color/global_screenshot_button_border"/> <solid android:color="@color/global_screenshot_button_background"/> <solid android:color="?androidprv:attr/colorAccentSecondary"/> <corners android:radius="@dimen/screenshot_button_corner_radius"/> </shape> </item> Loading packages/SystemUI/res/drawable/action_chip_container_background.xml +6 −4 Original line number Diff line number Diff line Loading @@ -14,8 +14,10 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:shape="rectangle"> <solid android:color="@color/global_screenshot_button_background"/> <solid android:color="?androidprv:attr/colorSurface"/> <corners android:radius="@dimen/screenshot_action_container_corner_radius"/> </shape> packages/SystemUI/res/layout/global_screenshot_preview.xml→packages/SystemUI/res/drawable/screenshot_border.xml +23 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2011 The Android Open Source Project ~ Copyright (C) 2021 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. Loading @@ -14,20 +14,10 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ImageView <shape xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/global_screenshot_preview" android:layout_width="@dimen/global_screenshot_x_scale" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="@dimen/screenshot_offset_x" android:layout_marginBottom="@dimen/screenshot_offset_y" android:scaleType="fitEnd" android:elevation="@dimen/screenshot_preview_elevation" android:visibility="invisible" android:background="@drawable/screenshot_rounded_corners" android:adjustViewBounds="true" android:contentDescription="@string/screenshot_edit_label" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"/> No newline at end of file xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:shape="rectangle"> <solid android:color="?androidprv:attr/colorSurface"/> <corners android:radius="20dp"/> </shape> packages/SystemUI/res/drawable/screenshot_cancel.xml +8 −7 Original line number Diff line number Diff line Loading @@ -15,14 +15,15 @@ ~ limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:width="48dp" android:height="48dp" android:viewportWidth="48.0" android:viewportHeight="48.0"> android:viewportWidth="32.0" android:viewportHeight="32.0"> <path android:fillColor="@color/global_screenshot_dismiss_background" android:pathData="M24,24m-16,0a16,16 0,1 1,32 0a16,16 0,1 1,-32 0"/> android:fillColor="?androidprv:attr/colorAccentSecondary" android:pathData="M16,16m-16,0a16,16 0,1 1,32 0a16,16 0,1 1,-32 0"/> <path android:fillColor="@color/global_screenshot_dismiss_foreground" android:pathData="M31,18.41L29.59,17 24,22.59 18.41,17 17,18.41 22.59,24 17,29.59 18.41,31 24,25.41 29.59,31 31,29.59 25.41,24z"/> android:fillColor="?android:attr/textColorPrimary" android:pathData="M23,10.41L21.59,9 16,14.59 10.41,9 9,10.41 14.59,16 9,21.59 10.41,23 16,17.41 21.59,23 23,21.59 17.41,16z"/> </vector> packages/SystemUI/res/drawable/screenshot_preview_background.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2021 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="rectangle"> <corners android:radius="20dp"/> </shape> Loading
packages/SystemUI/res/drawable/action_chip_background.xml +3 −3 Original line number Diff line number Diff line Loading @@ -16,11 +16,11 @@ --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="@color/global_screenshot_button_ripple"> <item android:id="@android:id/background"> <shape android:shape="rectangle"> <stroke android:width="1dp" android:color="@color/global_screenshot_button_border"/> <solid android:color="@color/global_screenshot_button_background"/> <solid android:color="?androidprv:attr/colorAccentSecondary"/> <corners android:radius="@dimen/screenshot_button_corner_radius"/> </shape> </item> Loading
packages/SystemUI/res/drawable/action_chip_container_background.xml +6 −4 Original line number Diff line number Diff line Loading @@ -14,8 +14,10 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:shape="rectangle"> <solid android:color="@color/global_screenshot_button_background"/> <solid android:color="?androidprv:attr/colorSurface"/> <corners android:radius="@dimen/screenshot_action_container_corner_radius"/> </shape>
packages/SystemUI/res/layout/global_screenshot_preview.xml→packages/SystemUI/res/drawable/screenshot_border.xml +23 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2011 The Android Open Source Project ~ Copyright (C) 2021 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. Loading @@ -14,20 +14,10 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ImageView <shape xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/global_screenshot_preview" android:layout_width="@dimen/global_screenshot_x_scale" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="@dimen/screenshot_offset_x" android:layout_marginBottom="@dimen/screenshot_offset_y" android:scaleType="fitEnd" android:elevation="@dimen/screenshot_preview_elevation" android:visibility="invisible" android:background="@drawable/screenshot_rounded_corners" android:adjustViewBounds="true" android:contentDescription="@string/screenshot_edit_label" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"/> No newline at end of file xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:shape="rectangle"> <solid android:color="?androidprv:attr/colorSurface"/> <corners android:radius="20dp"/> </shape>
packages/SystemUI/res/drawable/screenshot_cancel.xml +8 −7 Original line number Diff line number Diff line Loading @@ -15,14 +15,15 @@ ~ limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:width="48dp" android:height="48dp" android:viewportWidth="48.0" android:viewportHeight="48.0"> android:viewportWidth="32.0" android:viewportHeight="32.0"> <path android:fillColor="@color/global_screenshot_dismiss_background" android:pathData="M24,24m-16,0a16,16 0,1 1,32 0a16,16 0,1 1,-32 0"/> android:fillColor="?androidprv:attr/colorAccentSecondary" android:pathData="M16,16m-16,0a16,16 0,1 1,32 0a16,16 0,1 1,-32 0"/> <path android:fillColor="@color/global_screenshot_dismiss_foreground" android:pathData="M31,18.41L29.59,17 24,22.59 18.41,17 17,18.41 22.59,24 17,29.59 18.41,31 24,25.41 29.59,31 31,29.59 25.41,24z"/> android:fillColor="?android:attr/textColorPrimary" android:pathData="M23,10.41L21.59,9 16,14.59 10.41,9 9,10.41 14.59,16 9,21.59 10.41,23 16,17.41 21.59,23 23,21.59 17.41,16z"/> </vector>
packages/SystemUI/res/drawable/screenshot_preview_background.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2021 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="rectangle"> <corners android:radius="20dp"/> </shape>