add some icons and colors

This commit is contained in:
tibbi 2016-06-01 22:38:44 +02:00
parent 5254919a4d
commit f6ae03105a
16 changed files with 12 additions and 11 deletions

View file

@ -216,7 +216,7 @@ public class MainActivity extends AppCompatActivity
displayEditDialog();
mode.finish();
return true;
case R.id.cab_remove:
case R.id.cab_delete:
prepareForDeleting();
mode.finish();
return true;

View file

@ -63,7 +63,7 @@ public class MyWidgetConfigure extends AppCompatActivity {
bgColor = prefs.getInt(Constants.WIDGET_BG_COLOR, 1);
if (bgColor == 1) {
bgColor = Color.BLACK;
bgAlpha = .5f;
bgAlpha = .2f;
} else {
bgAlpha = Color.alpha(bgColor) / (float) 255;
}
@ -73,7 +73,7 @@ public class MyWidgetConfigure extends AppCompatActivity {
bgSeekBar.setProgress((int) (bgAlpha * 100));
updateBackgroundColor();
textColor = prefs.getInt(Constants.WIDGET_TEXT_COLOR, Color.WHITE);
textColor = prefs.getInt(Constants.WIDGET_TEXT_COLOR, getResources().getColor(R.color.colorPrimary));
updateTextColor();
songTitle.setText("Song Title");

View file

@ -52,6 +52,7 @@
android:layout_alignBottom="@+id/config_text_color"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/config_text_color"
android:fontFamily="sans-serif-light"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
android:text="OK"

View file

@ -3,12 +3,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/cab_edit"
android:icon="@android:drawable/ic_menu_edit"
android:icon="@mipmap/edit"
android:title="@string/edit"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/cab_remove"
android:icon="@android:drawable/ic_menu_delete"
android:title="@string/remove"
android:id="@+id/cab_delete"
android:icon="@mipmap/delete"
android:title="@string/delete"
app:showAsAction="ifRoom"/>
</menu>

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorPrimary">#ffff6f00</color>
<color name="colorPrimaryDark">#ffe46300</color>
<color name="colorAccent">@color/colorPrimary</color>
<color name="dark_grey">#11000000</color>
<color name="pressed_item_foreground">#11000000</color>
<color name="activated_item_foreground">#33000000</color>

View file

@ -2,7 +2,7 @@
<string name="app_name">Simple Music Player</string>
<string name="playlist_empty">Your playlist is empty</string>
<string name="no_permissions">Permission for accessing the songs has not been granted</string>
<string name="remove">Remove</string>
<string name="delete">Delete</string>
<string name="edit">Edit</string>
<string name="undo">Undo</string>
<string name="title">Title</string>