Skip to content

Commit db7e389

Browse files
djdarkknight960xD34D
authored andcommitted
Themes: Give power dialogs own set of volume icons for themes
Change-Id: Ica874be3be89f12b6ecea444d442706bc1fd91ba Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
1 parent c2f1770 commit db7e389

5 files changed

Lines changed: 80 additions & 4 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2016 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
18+
<item android:drawable="@drawable/ic_lock_dnd_priority" />
19+
</selector>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2016 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
18+
<item android:drawable="@drawable/ic_lock_dnd_total_silence" />
19+
</selector>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2016 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
18+
<item android:drawable="@drawable/ic_lock_ring" />
19+
</selector>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2016 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
18+
<item android:drawable="@drawable/ic_lock_vibrate" />
19+
</selector>

core/res/res/layout/global_actions_silent_mode.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
android:layout_marginEnd="8dp"
3838
android:layout_marginTop="6dp"
3939
android:layout_marginBottom="6dp"
40-
android:src="@drawable/ic_lock_dnd_total_silence"
40+
android:src="@drawable/ic_power_dnd_total_silence"
4141
android:scaleType="center"
4242
android:duplicateParentState="true"
4343
android:background="@drawable/silent_mode_indicator"
@@ -66,7 +66,7 @@
6666
android:layout_marginEnd="8dp"
6767
android:layout_marginTop="6dp"
6868
android:layout_marginBottom="6dp"
69-
android:src="@drawable/ic_lock_dnd_priority"
69+
android:src="@drawable/ic_power_dnd_priority"
7070
android:scaleType="center"
7171
android:duplicateParentState="true"
7272
android:background="@drawable/silent_mode_indicator"
@@ -95,7 +95,7 @@
9595
android:layout_marginEnd="8dp"
9696
android:layout_marginTop="6dp"
9797
android:layout_marginBottom="6dp"
98-
android:src="@drawable/ic_lock_vibrate"
98+
android:src="@drawable/ic_power_vibrate"
9999
android:scaleType="center"
100100
android:duplicateParentState="true"
101101
android:background="@drawable/silent_mode_indicator"
@@ -124,7 +124,7 @@
124124
android:layout_marginEnd="8dp"
125125
android:layout_marginTop="6dp"
126126
android:layout_marginBottom="6dp"
127-
android:src="@drawable/ic_lock_ring"
127+
android:src="@drawable/ic_power_ring"
128128
android:scaleType="center"
129129
android:duplicateParentState="true"
130130
android:background="@drawable/silent_mode_indicator"

0 commit comments

Comments
 (0)