style voice-message recording, tackles #172

This commit is contained in:
B. Petersen 2019-01-04 16:37:37 +01:00
parent dfaed72262
commit 5dfc44b1dc
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC
15 changed files with 16 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

BIN
res/drawable-xhdpi/slidearrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

View file

@ -131,7 +131,7 @@
android:layout_height="74dp"
android:src="@drawable/ic_mic_white_48dp"
android:background="@drawable/circle_tintable"
android:backgroundTint="@color/core_red"
android:backgroundTint="@color/audio_icon"
android:visibility="gone"
android:scaleType="center"/>
@ -155,11 +155,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="none"
android:layout_marginLeft="20dp"
android:layout_marginStart="20dp"
style="@style/Signal.Text.Body"
android:text="00:00"
android:textColor="@color/core_light_60"
android:textColor="?conversation_item_outgoing_text_primary_color"
android:singleLine="true"
android:visibility="gone"
tools:visibility="visible"/>
@ -174,14 +172,16 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|start|center_vertical"
android:drawableLeft="@drawable/ic_keyboard_arrow_left_grey600_24dp"
android:drawableStart="@drawable/ic_keyboard_arrow_left_grey600_24dp"
style="@style/Signal.Text.Caption"
android:drawableLeft="@drawable/slidearrow"
android:drawableStart="@drawable/slidearrow"
style="@style/Signal.Text.Preview"
android:singleLine="true"
android:text="@string/chat_record_slide_to_cancel"
android:textAllCaps="true"
android:textColor="@color/core_light_60"
android:textColor="@color/slidearrow_color"
android:ellipsize="none"
android:visibility="gone"
android:paddingLeft="10dp"
android:paddingStart="10dp"
android:paddingRight="50dp"
android:paddingEnd="50dp"
tools:visibility="visible"/>

View file

@ -48,5 +48,6 @@
<color name="MediaOverview_Media_selected_overlay">#88000000</color>
<color name="dummy_avatar_color">#808080</color>
<color name="slidearrow_color">#999999</color>
</resources>

View file

@ -4,6 +4,9 @@
<color name="core_red">#f44336</color>
<color name="core_red_highlight">#ef5350</color>
<color name="audio_icon">#f68751</color>
<color name="audio_text">#ed824e</color>
<color name="core_white">#ffffff</color>
<color name="core_light_02">#F9FAFA</color>
<color name="core_light_10">#EEEFEF</color>

View file

@ -111,7 +111,7 @@ public class MicrophoneRecorderView extends FrameLayout implements View.OnTouchL
public FloatingRecordButton(Context context, ImageView recordButtonFab) {
this.recordButtonFab = recordButtonFab;
this.recordButtonFab.getBackground().setColorFilter(context.getResources()
.getColor(R.color.red_500),
.getColor(R.color.audio_icon),
PorterDuff.Mode.SRC_IN);
}

View file

@ -63,9 +63,11 @@ public class ChatBackgroundActivity extends BaseActionBarActivity {
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setTitle(R.string.pref_background);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);
}
}
@Override