Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dedee5c5 authored by Matt Casey's avatar Matt Casey
Browse files

Fix rounded borders of save/edit to match spec

Save should be fully rounded, edit with a 16dp radius.

Drawable based upon frameworks/base/packages/SystemUI/res-keyguard/drawable/kg_emergency_button_background.xml

Bug: 189279910
Test: Visual inspection, observing transition into markup.
Change-Id: I5428d69e4c30479fd16474a4f66ebefbc1dd3564
parent 4bbe3764
Loading
Loading
Loading
Loading
+33 −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.
  -->
<!-- Long screenshot edit FAB background -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
        android:color="?android:textColorPrimary">
    <item android:id="@android:id/background">
        <shape android:shape="rectangle">
            <solid android:color="?androidprv:attr/colorAccentSecondary"/>
            <corners android:radius="16dp"/>
        </shape>
    </item>
    <item android:id="@android:id/mask">
        <shape android:shape="rectangle">
            <solid android:color="?android:textColorPrimary"/>
            <corners android:radius="16dp"/>
        </shape>
    </item>
</ripple>
 No newline at end of file
+33 −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.
  -->
<!-- Long screenshot save button background -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
        android:color="?android:textColorPrimary">
    <item android:id="@android:id/background">
        <shape android:shape="rectangle">
            <solid android:color="?androidprv:attr/colorAccentSecondary"/>
            <corners android:radius="20dp"/>
        </shape>
    </item>
    <item android:id="@android:id/mask">
        <shape android:shape="rectangle">
            <solid android:color="?android:textColorPrimary"/>
            <corners android:radius="20dp"/>
        </shape>
    </item>
</ripple>
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -28,11 +28,11 @@
        android:id="@+id/save"
        style="@android:style/Widget.DeviceDefault.Button.Colored"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_height="40dp"
        android:text="@string/save"
        android:layout_marginStart="8dp"
        android:layout_marginTop="4dp"
        android:backgroundTint="?androidprv:attr/colorAccentSecondary"
        android:background="@drawable/screenshot_save_background"
        android:textColor="?android:textColorSecondary"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
@@ -114,7 +114,7 @@
        android:layout_marginBottom="16dp"
        android:layout_marginEnd="16dp"
        style="@android:style/Widget.DeviceDefault.Button.Colored"
        android:backgroundTint="?androidprv:attr/colorAccentSecondary"
        android:background="@drawable/screenshot_edit_background"
        android:src="@drawable/ic_screenshot_edit"
        android:contentDescription="@string/screenshot_edit_label"
        android:tint="?android:textColorSecondary"