diff options
author | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-02-22 18:01:07 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-03-03 15:05:27 -0800 |
commit | 9ae49e005d7a880d160a9b6a5795351a5d588da0 (patch) | |
tree | c90b19b1a2b6879fac550d27794c6910e2555858 /packages/SystemUI | |
parent | 620a025c1bfdad254616d223c83cfa232988d0b7 (diff) | |
download | frameworks_base-9ae49e005d7a880d160a9b6a5795351a5d588da0.zip frameworks_base-9ae49e005d7a880d160a9b6a5795351a5d588da0.tar.gz frameworks_base-9ae49e005d7a880d160a9b6a5795351a5d588da0.tar.bz2 |
SystemUI: Fix volume panel inconsistencies
* Use xml drawables everywhere
* Add muted notification icon
* Use AOSP naming scheme for drawables
Change-Id: I14a3af9a7aecf4828f81a8e39855608e452848d6
Diffstat (limited to 'packages/SystemUI')
-rwxr-xr-x | packages/SystemUI/res/drawable-hdpi/ic_ringer_audible.png | bin | 783 -> 0 bytes | |||
-rwxr-xr-x | packages/SystemUI/res/drawable-mdpi/ic_ringer_audible.png | bin | 523 -> 0 bytes | |||
-rwxr-xr-x | packages/SystemUI/res/drawable-xhdpi/ic_ringer_audible.png | bin | 1021 -> 0 bytes | |||
-rwxr-xr-x | packages/SystemUI/res/drawable-xxhdpi/ic_ringer_audible.png | bin | 1495 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_volume_notification.xml (renamed from packages/SystemUI/res/drawable/ic_notification_audible.xml) | 0 | ||||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_volume_notification_mute.xml | 26 | ||||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_volume_ringer.xml | 26 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java | 6 |
8 files changed, 55 insertions, 3 deletions
diff --git a/packages/SystemUI/res/drawable-hdpi/ic_ringer_audible.png b/packages/SystemUI/res/drawable-hdpi/ic_ringer_audible.png Binary files differdeleted file mode 100755 index 03a8f69..0000000 --- a/packages/SystemUI/res/drawable-hdpi/ic_ringer_audible.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-mdpi/ic_ringer_audible.png b/packages/SystemUI/res/drawable-mdpi/ic_ringer_audible.png Binary files differdeleted file mode 100755 index 36ba5ba..0000000 --- a/packages/SystemUI/res/drawable-mdpi/ic_ringer_audible.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_ringer_audible.png b/packages/SystemUI/res/drawable-xhdpi/ic_ringer_audible.png Binary files differdeleted file mode 100755 index a9fb16e..0000000 --- a/packages/SystemUI/res/drawable-xhdpi/ic_ringer_audible.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_ringer_audible.png b/packages/SystemUI/res/drawable-xxhdpi/ic_ringer_audible.png Binary files differdeleted file mode 100755 index c7a870e..0000000 --- a/packages/SystemUI/res/drawable-xxhdpi/ic_ringer_audible.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable/ic_notification_audible.xml b/packages/SystemUI/res/drawable/ic_volume_notification.xml index c566d5a..c566d5a 100644 --- a/packages/SystemUI/res/drawable/ic_notification_audible.xml +++ b/packages/SystemUI/res/drawable/ic_volume_notification.xml diff --git a/packages/SystemUI/res/drawable/ic_volume_notification_mute.xml b/packages/SystemUI/res/drawable/ic_volume_notification_mute.xml new file mode 100644 index 0000000..57cde85 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_volume_notification_mute.xml @@ -0,0 +1,26 @@ +<!-- + 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="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + + <path + android:fillColor="@color/volume_icon_color" + android:pathData="M11.5,22.0c1.1,0.0 2.0,-0.9 2.0,-2.0l-4.0,0.0C9.5,21.1 10.4,22.0 11.5,22.0zM18.0,10.5c0.0,-3.1 -2.1,-5.6 -5.0,-6.3L13.0,3.5C13.0,2.7 12.3,2.0 11.5,2.0C10.7,2.0 10.0,2.7 10.0,3.5l0.0,0.7C9.5,4.3 9.0,4.5 8.6,4.7l9.4,9.4L18.0,10.5zM17.7,19.0l2.0,2.0l1.3,-1.3L4.3,3.0L3.0,4.3l2.9,2.9C5.3,8.2 5.0,9.3 5.0,10.5L5.0,16.0l-2.0,2.0l0.0,1.0L17.7,19.0z" /> + +</vector> diff --git a/packages/SystemUI/res/drawable/ic_volume_ringer.xml b/packages/SystemUI/res/drawable/ic_volume_ringer.xml new file mode 100644 index 0000000..4d5fe81 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_volume_ringer.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 The CyanogenMod 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="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="@color/volume_icon_color" + android:pathData="M23.71,16.67C20.66,13.78 16.54,12 12,12 7.46,12 3.34,13.78 0.29,16.67c-0.18,0.18 -0.29,0.43 -0.29,0.71 0,0.28 0.11,0.53 0.29,0.71l2.48,2.48c0.18,0.18 0.43,0.29 0.71,0.29 0.27,0 0.52,-0.11 0.7,-0.28 0.79,-0.74 1.69,-1.36 2.66,-1.85 0.33,-0.16 0.56,-0.5 0.56,-0.9v-3.1c1.45,-0.48 3,-0.73 4.6,-0.73s3.15,0.25 4.6,0.72v3.1c0,0.39 0.23,0.74 0.56,0.9 0.98,0.49 1.87,1.12 2.66,1.85 0.18,0.18 0.43,0.28 0.7,0.28 0.28,0 0.53,-0.11 0.71,-0.29l2.48,-2.48c0.18,-0.18 0.29,-0.43 0.29,-0.71 0,-0.27 -0.11,-0.52 -0.29,-0.7zM21.16,6.26l-1.41,-1.41 -3.56,3.55 1.41,1.41s3.45,-3.52 3.56,-3.55zM13,2h-2v5h2V2zM6.4,9.81L7.81,8.4 4.26,4.84 2.84,6.26c0.11,0.03 3.56,3.55 3.56,3.55z" /> +</vector> diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java index 3ed18c9..7c3392e 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java @@ -194,7 +194,7 @@ public class VolumeDialog { }); addRow(AudioManager.STREAM_RING, - R.drawable.ic_ringer_audible, R.drawable.ic_volume_ringer_mute, true); + R.drawable.ic_volume_ringer, R.drawable.ic_volume_ringer_mute, true); addRow(AudioManager.STREAM_MUSIC, R.drawable.ic_volume_media, R.drawable.ic_volume_media_mute, true); addRow(AudioManager.STREAM_ALARM, @@ -652,9 +652,9 @@ public class VolumeDialog { removeRow(notificationRow); } } else if (!mState.linkedNotification) { - // TODO get icon for mute state addRow(AudioManager.STREAM_NOTIFICATION, - R.drawable.ic_notification_audible, R.drawable.ic_notification_audible, true); + R.drawable.ic_volume_notification, R.drawable.ic_volume_notification_mute, + true); } } |