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

Commit da985263 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

[Notif redesign] Adjust corner radius of guts priority btn

The priority option should be more rounded when selected, according to
the design specs. Also updated the colors to match the most recent
specs.

Flag: android.app.notifications_redesign_templates
Test: manual
Bug: 394822197
Change-Id: I23aab363b8175838eaae543a91def211ffde3118
parent ea86e5bc
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -14,14 +14,7 @@
  ~ 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" >
    <solid
        android:color="@color/notification_guts_priority_button_bg_fill" />

    <stroke
        android:width="1.5dp"
        android:color="@color/notification_guts_priority_button_bg_stroke" />

    <corners android:radius="16dp" />
</shape>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_selected="true" android:drawable="@drawable/notification_2025_guts_priority_button_bg_selected" />
    <item android:drawable="@drawable/notification_2025_guts_priority_button_bg_unselected" />
</selector>
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2025 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"
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
       android:shape="rectangle" >
    <solid android:color="@androidprv:color/materialColorSecondaryContainer" />

    <stroke android:width="1dp" android:color="@androidprv:color/materialColorOutline"  />

    <corners android:radius="28dp" />
</shape>
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2025 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"
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
       android:shape="rectangle" >
    <solid android:color="@color/transparent" />

    <stroke android:width="1dp" android:color="@androidprv:color/materialColorOutlineVariant"  />

    <corners android:radius="16dp" />
</shape>