Skip to content

Commit ced3efe

Browse files
committed
Replaced ButtonSound icons with new ones
1 parent 1c047da commit ced3efe

6 files changed

Lines changed: 67 additions & 5 deletions

File tree

app/src/main/java/nie/translator/rtranslator/tools/gui/ButtonSound.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public boolean isMute() {
5151
public void setMute(boolean mute) {
5252
if(isMute!=mute){
5353
if(mute){
54-
setImageDrawable(getResources().getDrawable(R.drawable.sound_mute_icon,null));
54+
setImageDrawable(getResources().getDrawable(R.drawable.sound_manual_icon,null));
5555
}else{
56-
setImageDrawable(getResources().getDrawable(R.drawable.sound_icon,null));
56+
setImageDrawable(getResources().getDrawable(R.drawable.sound_auto_icon,null));
5757
}
5858
}
5959
isMute = mute;
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--
2+
~ Copyright (C) 2026 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+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
17+
android:width="24dp"
18+
android:height="24dp"
19+
android:viewportWidth="960"
20+
android:viewportHeight="960">
21+
<path
22+
android:fillColor="#FF000000"
23+
android:pathData="m360,166.98 l-200,200L0,366.98v240h160l200,200zM444.69,218.86c-0.12,0.13 -0.2,0.24 -0.31,0.39h0.08l0.08,0.08 0.08,0.08h0.08c0.01,-0.17 -0.01,-0.37 0,-0.55zM529.45,258.54c-0.54,0.72 -1.08,1.42 -1.64,2.11 1.01,0.74 1.97,1.51 2.97,2.27 -0.45,-1.45 -0.87,-2.92 -1.33,-4.38zM280,360.96L280,613L193.98,526.98L80,526.98v-80h113.98z"/>
24+
<path
25+
android:fillColor="#FF000000"
26+
android:pathData="M665.08,239.29 L493.87,720.71h96.21L636.93,599.03 816.03,597.71 861.77,720.71h99.39L789.96,239.29ZM725.52,330.61 L796.88,514.28L657.55,514.28Z"
27+
android:strokeWidth="20.2"
28+
android:strokeColor="#00000000"/>
29+
</vector>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
~ Copyright (C) 2026 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+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
17+
android:width="24dp"
18+
android:height="24dp"
19+
android:viewportWidth="960"
20+
android:viewportHeight="960">
21+
<path
22+
android:fillColor="#FF000000"
23+
android:pathData="M-294.92,239.29 L-466.13,720.71h96.21L-323.07,599.03 -143.97,597.71 -98.23,720.71h99.39L-170.04,239.29ZM-234.48,330.61 L-163.12,514.28L-302.45,514.28Z"
24+
android:strokeWidth="20.2"
25+
android:strokeColor="#00000000"/>
26+
<path
27+
android:fillColor="#FF000000"
28+
android:pathData="m361.39,162.33 l-200,200L1.39,362.33v240L161.39,602.33l200,200zM281.39,356.31L281.39,608.34L195.37,522.33L81.39,522.33v-80h113.98z"/>
29+
<path
30+
android:fillColor="#FF000000"
31+
android:pathData="m509.75,254.63l0,448.41l85.96,0L595.71,378.37l97.5,219.28l76.2,0l103.9,-232.07l0,337.47l85.31,0L958.61,254.63L830.37,254.63L734.32,479.59 637.99,254.63Z"
32+
android:strokeWidth="64.57"/>
33+
</vector>

app/src/main/res/layout/fragment_conversation_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
android:layout_marginBottom="12dp"
5454
android:background="@null"
5555
android:padding="8dp"
56-
android:src="@drawable/sound_icon"
56+
android:src="@drawable/sound_auto_icon"
5757
android:tint="@color/gray"
5858
app:layout_constraintBottom_toBottomOf="parent"
5959
app:layout_constraintEnd_toEndOf="parent"

app/src/main/res/layout/fragment_walkie_talkie.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
app:layout_constraintHorizontal_bias="1.0"
120120
app:layout_constraintStart_toStartOf="@+id/toolbarWalkieTalkie"
121121
app:layout_constraintTop_toTopOf="parent"
122-
app:srcCompat="@drawable/sound_icon" />
122+
app:srcCompat="@drawable/sound_auto_icon" />
123123
</androidx.constraintlayout.widget.ConstraintLayout>
124124

125125
<androidx.constraintlayout.widget.ConstraintLayout

app/src/main/res/layout/image_conversation.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
android:layout_marginBottom="12dp"
295295
android:background="@null"
296296
android:padding="8dp"
297-
android:src="@drawable/sound_icon"
297+
android:src="@drawable/sound_auto_icon"
298298
android:tint="@color/gray"
299299
app:layout_constraintBottom_toBottomOf="parent"
300300
app:layout_constraintEnd_toEndOf="parent"

0 commit comments

Comments
 (0)