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

Commit 69e8d76f authored by Italian Quadcore's avatar Italian Quadcore Committed by Steve Kondik
Browse files

Add Sound Panel to Power Menu (Part 1/2)

Change-Id: I5a638b1817b3de82d891935e0071c6e42856c59e
parent 5aaa3a9b
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<!--
Copyright (C) 2014 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="32dp"
        android:height="32dp"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0">

    <path
        android:fillColor="#8A000000"
        android:pathData="M12.0,17.273l6.1800003,3.7269993 -1.6350002,-7.0290003 5.455,-4.7269993 -7.191,-0.6170006 -2.809,-6.627 -2.809,6.627 -7.191,0.6170006 5.455,4.7269993 -1.6349998,7.0290003z"/>
</vector>
+25 −0
Original line number Diff line number Diff line
<!--
Copyright (C) 2014 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="32dp"
        android:height="32dp"
        android:viewportWidth="48.0"
        android:viewportHeight="48.0">

    <path
        android:fillColor="#8A000000"
        android:pathData="M24.0,4.0C13.0,4.0 4.0,13.0 4.0,24.0c0.0,11.0 9.0,20.0 20.0,20.0c11.0,0.0 20.0,-9.0 20.0,-20.0C44.0,13.0 35.0,4.0 24.0,4.0zM24.0,40.0c-8.8,0.0 -16.0,-7.2 -16.0,-16.0c0.0,-3.7 1.3,-7.1 3.4,-9.8l22.4,22.4C31.1,38.7 27.7,40.0 24.0,40.0zM36.6,33.8L14.2,11.4C16.9,9.3 20.3,8.0 24.0,8.0c8.8,0.0 16.0,7.2 16.0,16.0C40.0,27.7 38.7,31.1 36.6,33.8z"/>
</vector>
+34 −4
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
        android:layout_width="64dp"
        android:layout_height="match_parent"
        android:background="?android:attr/actionBarItemBackground"
        android:contentDescription="@string/silent_mode_silent"
        android:contentDescription="@string/silent_mode_none"
        android:focusable="true"
        >
        <ImageView
@@ -37,12 +37,13 @@
            android:layout_marginEnd="8dp"
            android:layout_marginTop="6dp"
            android:layout_marginBottom="6dp"
            android:src="@drawable/ic_audio_ring_notif_mute"
            android:src="@drawable/ic_zen_none"
            android:scaleType="center"
            android:duplicateParentState="true"
            android:background="@drawable/silent_mode_indicator"
            />
    </LinearLayout>

    <!-- Spacer -->
    <View android:layout_width="0dp"
        android:layout_height="match_parent"
@@ -54,6 +55,35 @@
        android:layout_width="64dp"
        android:layout_height="match_parent"
        android:background="?android:attr/actionBarItemBackground"
        android:contentDescription="@string/silent_mode_priority"
        android:focusable="true"
        >
        <ImageView
            android:layout_width="48dp"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="8dp"
            android:layout_marginTop="6dp"
            android:layout_marginBottom="6dp"
            android:src="@drawable/ic_zen_important"
            android:scaleType="center"
            android:duplicateParentState="true"
            android:background="@drawable/silent_mode_indicator"
            />
    </LinearLayout>

    <!-- Spacer -->
    <View android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:visibility="invisible"/>

    <LinearLayout
        android:id="@+id/option3"
        android:layout_width="64dp"
        android:layout_height="match_parent"
        android:background="?android:attr/actionBarItemBackground"
        android:contentDescription="@string/silent_mode_vibrate"
        android:focusable="true"
        >
@@ -79,7 +109,7 @@
        android:visibility="invisible"/>

    <LinearLayout
        android:id="@+id/option3"
        android:id="@+id/option4"
        android:layout_width="64dp"
        android:layout_height="match_parent"
        android:background="?android:attr/actionBarItemBackground"
+4 −0
Original line number Diff line number Diff line
@@ -135,4 +135,8 @@

    <string name="theme_reset_notification_title">Theme reset</string>
    <string name="theme_reset_notification_body">System theme restored due to multiple app crashes.</string>

    <!-- Zen mode buttons -->
    <string name="silent_mode_priority">Priority</string>
    <string name="silent_mode_none">None</string>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -76,4 +76,7 @@
    <!-- Theme reset notification -->
    <java-symbol type="string" name="theme_reset_notification_title" />
    <java-symbol type="string" name="theme_reset_notification_body" />

    <!-- global actions (zen mode buttons) -->
    <java-symbol type="id" name="option4" />
</resources>
Loading