Skip to content

Commit

Permalink
Name it WhisperVoiceKeyboard; Grant an Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McCulloch committed Dec 27, 2022
1 parent 42ca745 commit 96fc908
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:icon="@drawable/mic"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@drawable/mic"
android:supportsRtl="true"
android:theme="@style/Theme.WhisperVoiceKeyboard">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void onStartInputView(EditorInfo info, boolean restarting) {
@Override
public View onCreateInputView() {
View inputView;
ContextThemeWrapper ctx = new ContextThemeWrapper(this, R.style.Theme_ScreamScribe);
ContextThemeWrapper ctx = new ContextThemeWrapper(this, R.style.Theme_WhisperVoiceKeyboard);

inputView = (ConstraintLayout) LayoutInflater.from(ctx).inflate(R.layout.keyboard, null);
ToggleButton recordButton = inputView.findViewById(R.id.buttonRecord);
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/res/drawable/mic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<vector android:autoMirrored="true" android:height="297dp"
android:viewportHeight="297" android:viewportWidth="210"
android:width="210dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#008080"
android:pathData="M1.11,151.35a104.52,106.18 0,1 0,209.05 0a104.52,106.18 0,1 0,-209.05 0z" android:strokeWidth="1.64792"/>
<path android:fillColor="#808080"
android:pathData="M84.6,62.01h43.33v130.51h-43.33z" android:strokeWidth="0.351648"/>
<path android:fillColor="#808080"
android:pathData="M77.2,68.72h56.36v113.75h-56.36z" android:strokeWidth="0.374417"/>
<path android:fillColor="#23282e"
android:pathData="m105.76,51.34c-16.9,-0.02 -33.8,13.52 -33.8,40.59l0,68.83c0,55.66 67.6,55.63 67.6,0L139.56,92.04c0,-27.12 -16.9,-40.69 -33.8,-40.7zM105.55,63.02C117.58,63.03 129.61,74.48 129.61,97.37l0,57.99c0,46.94 -48.12,46.98 -48.12,0L81.49,97.27c0,-22.85 12.03,-34.27 24.06,-34.25z" android:strokeWidth="0.2"/>
<path android:fillColor="#23282e"
android:pathData="m51.46,172.42c2.14,28.26 25.7,50.09 54.06,50.09 28.36,-0 51.93,-21.84 54.06,-50.09 0,-8.84 -13.79,-8.86 -13.79,0 -1.53,20.63 -18.96,36.61 -39.96,36.62 -21,-0.01 -38.44,-15.98 -39.96,-36.62 0,-8.77 -14.37,-8.85 -14.41,0z" android:strokeWidth="0.22"/>
<path android:fillColor="#23282e"
android:pathData="M95.84,215.35l17.57,0l0,32.57l-17.57,0z" android:strokeWidth="0.2"/>
</vector>

0 comments on commit 96fc908

Please sign in to comment.