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

Commit d9f722d0 authored by tomnatan's avatar tomnatan Committed by Tom Natan
Browse files

Change the restart button to use material colors

In addition, add a ripple effect to the button.

Fix: 198347324
Test: N/A
Change-Id: Ibd33f32cf4908ae9d3d02d8043e625e24123aff7
parent cb9b8086
Loading
Loading
Loading
Loading
+19 −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.
  -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="@android:color/system_neutral1_500" android:lStar="35" />
</selector>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -16,6 +16,6 @@
  -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="@color/size_compat_hint_bubble"/>
    <solid android:color="@color/size_compat_background"/>
    <corners android:radius="@dimen/size_compat_hint_corner_radius"/>
</shape>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -20,6 +20,6 @@
        android:viewportWidth="10"
        android:viewportHeight="8">
    <path
        android:fillColor="@color/size_compat_hint_bubble"
        android:fillColor="@color/size_compat_background"
        android:pathData="M10,0 l-4.1875,6.6875 a1,1 0 0,1 -1.625,0 l-4.1875,-6.6875z"/>
</vector>
+3 −3
Original line number Diff line number Diff line
@@ -20,16 +20,16 @@
        android:viewportWidth="48"
        android:viewportHeight="48">
    <path
        android:fillColor="#53534D"
        android:fillColor="@color/size_compat_background"
        android:pathData="M0,24 a24,24 0 1,0 48,0 a24,24 0 1,0 -48,0" />
    <group
        android:translateX="12"
        android:translateY="12">
        <path
            android:fillColor="#E4E3DA"
            android:fillColor="@color/size_compat_text"
            android:pathData="M6,13c0,-1.65 0.67,-3.15 1.76,-4.24L6.34,7.34C4.9,8.79 4,10.79 4,13c0,4.08 3.05,7.44 7,7.93v-2.02C8.17,18.43 6,15.97 6,13z"/>
        <path
            android:fillColor="#E4E3DA"
            android:fillColor="@color/size_compat_text"
            android:pathData="M20,13c0,-4.42 -3.58,-8 -8,-8c-0.06,0 -0.12,0.01 -0.18,0.01v0l1.09,-1.09L11.5,2.5L8,6l3.5,3.5l1.41,-1.41l-1.08,-1.08C11.89,7.01 11.95,7 12,7c3.31,0 6,2.69 6,6c0,2.97 -2.17,5.43 -5,5.91v2.02C16.95,20.44 20,17.08 20,13z"/>
    </group>
</vector>
+20 −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.
  -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        android:color="@color/size_compat_background_ripple">
    <item android:drawable="@drawable/size_compat_restart_button"/>
</ripple>
 No newline at end of file
Loading