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

Commit 198a4c3b authored by Italian Quadcore's avatar Italian Quadcore Committed by Gerrit Code Review
Browse files

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

Change-Id: I5a638b1817b3de82d891935e0071c6e42856c59e
parent fd1b8564
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
@@ -346,4 +346,8 @@
    <!-- [CHAR LIMIT=NONE] Description of an application permission, listed so the user can choose
         whether they want to allow the application to do this. -->
    <string name="permdesc_resetBatteryStats">Allows an application to reset the current low-level battery usage data.</string>

    <!-- Zen mode buttons -->
    <string name="silent_mode_priority">Priority</string>
    <string name="silent_mode_none">None</string>
</resources>
+4 −1
Original line number Diff line number Diff line
@@ -343,4 +343,7 @@

    <!-- Fingerprint default name -->
    <java-symbol type="string" name="fingerprint_default_name" />

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