Replaced unnecessary 48dp drawables with 36dp ones

This commit is contained in:
Karim Abou Zeid 2015-07-10 16:49:59 +02:00
commit 9d1ea7f1f6
24 changed files with 13 additions and 21 deletions

View file

@ -315,9 +315,9 @@ public class MusicControllerActivity extends AbsFabActivity {
private void setUpPrevNext() { private void setUpPrevNext() {
nextButton.setImageDrawable(Util.getTintedDrawable(this, nextButton.setImageDrawable(Util.getTintedDrawable(this,
R.drawable.ic_skip_next_white_48dp, DialogUtils.resolveColor(this, R.attr.themed_drawable_color))); R.drawable.ic_skip_next_white_36dp, DialogUtils.resolveColor(this, R.attr.themed_drawable_color)));
prevButton.setImageDrawable(Util.getTintedDrawable(this, prevButton.setImageDrawable(Util.getTintedDrawable(this,
R.drawable.ic_skip_previous_white_48dp, DialogUtils.resolveColor(this, R.attr.themed_drawable_color))); R.drawable.ic_skip_previous_white_36dp, DialogUtils.resolveColor(this, R.attr.themed_drawable_color)));
nextButton.setOnClickListener(new View.OnClickListener() { nextButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
@ -345,11 +345,11 @@ public class MusicControllerActivity extends AbsFabActivity {
private void updateShuffleState() { private void updateShuffleState() {
switch (MusicPlayerRemote.getShuffleMode()) { switch (MusicPlayerRemote.getShuffleMode()) {
case MusicService.SHUFFLE_MODE_SHUFFLE: case MusicService.SHUFFLE_MODE_SHUFFLE:
shuffleButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_shuffle_white_48dp, shuffleButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_shuffle_white_36dp,
getThemeColorAccent() == Color.WHITE ? Color.BLACK : getThemeColorAccent())); getThemeColorAccent() == Color.WHITE ? Color.BLACK : getThemeColorAccent()));
break; break;
default: default:
shuffleButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_shuffle_white_48dp, shuffleButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_shuffle_white_36dp,
DialogUtils.resolveColor(this, R.attr.themed_drawable_color))); DialogUtils.resolveColor(this, R.attr.themed_drawable_color)));
break; break;
} }
@ -368,15 +368,15 @@ public class MusicControllerActivity extends AbsFabActivity {
private void updateRepeatState() { private void updateRepeatState() {
switch (MusicPlayerRemote.getRepeatMode()) { switch (MusicPlayerRemote.getRepeatMode()) {
case MusicService.REPEAT_MODE_NONE: case MusicService.REPEAT_MODE_NONE:
repeatButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_repeat_white_48dp, repeatButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_repeat_white_36dp,
DialogUtils.resolveColor(this, R.attr.themed_drawable_color))); DialogUtils.resolveColor(this, R.attr.themed_drawable_color)));
break; break;
case MusicService.REPEAT_MODE_ALL: case MusicService.REPEAT_MODE_ALL:
repeatButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_repeat_white_48dp, repeatButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_repeat_white_36dp,
getThemeColorAccent() == Color.WHITE ? Color.BLACK : getThemeColorAccent())); getThemeColorAccent() == Color.WHITE ? Color.BLACK : getThemeColorAccent()));
break; break;
default: default:
repeatButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_repeat_one_white_48dp, repeatButton.setImageDrawable(Util.getTintedDrawable(this, R.drawable.ic_repeat_one_white_36dp,
getThemeColorAccent() == Color.WHITE ? Color.BLACK : getThemeColorAccent())); getThemeColorAccent() == Color.WHITE ? Color.BLACK : getThemeColorAccent()));
break; break;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

View file

@ -1,7 +1,3 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android" <ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple_material_dark"> android:color="@color/ripple_material_dark" />
<item android:id="@android:id/mask">
<color android:color="@color/white" />
</item>
</ripple>

View file

@ -1,7 +1,3 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android" <ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple_material_light"> android:color="@color/ripple_material_light" />
<item android:id="@android:id/mask">
<color android:color="@color/white" />
</item>
</ripple>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,007 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,017 B

View file

@ -125,7 +125,7 @@
android:elevation="8dp" android:elevation="8dp"
android:padding="22dp" android:padding="22dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_skip_previous_white_48dp" /> android:src="@drawable/ic_skip_previous_white_36dp" />
<ImageButton <ImageButton
android:id="@+id/next_button" android:id="@+id/next_button"
@ -140,7 +140,7 @@
android:elevation="8dp" android:elevation="8dp"
android:padding="22dp" android:padding="22dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_skip_next_white_48dp" /> android:src="@drawable/ic_skip_next_white_36dp" />
<ImageButton <ImageButton
android:id="@+id/repeat_button" android:id="@+id/repeat_button"
@ -155,7 +155,7 @@
android:elevation="8dp" android:elevation="8dp"
android:padding="22dp" android:padding="22dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_repeat_white_48dp" /> android:src="@drawable/ic_repeat_white_36dp" />
<ImageButton <ImageButton
android:id="@+id/shuffle_button" android:id="@+id/shuffle_button"
@ -170,7 +170,7 @@
android:elevation="8dp" android:elevation="8dp"
android:padding="22dp" android:padding="22dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_shuffle_white_48dp" /> android:src="@drawable/ic_shuffle_white_36dp" />
<android.support.design.widget.FloatingActionButton <android.support.design.widget.FloatingActionButton
android:id="@+id/fab" android:id="@+id/fab"