add some style and icons

This commit is contained in:
tibbi 2016-06-01 22:29:50 +02:00
parent c2d081499d
commit 6533e0698b
11 changed files with 10 additions and 8 deletions

View File

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

View File

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

View File

@ -3,9 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/save" android:id="@+id/save"
android:icon="@mipmap/check" android:icon="@mipmap/save"
android:title="Save" android:title="@string/save"
app:showAsAction="always"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/about" android:id="@+id/about"
android:title="@string/about" android:title="@string/about"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

View File

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

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Notes</string> <string name="app_name">Simple Notes</string>
<string name="widget_config">Thank you for using Simple Notes.\nFor more simple apps please visit SimpleMobileTools.com.\n</string> <string name="widget_config">Thank you for using Simple Notes.\nFor more simple apps please visit SimpleMobileTools.com.\n</string>
<string name="save">Save</string>
<!-- About --> <!-- About -->
<string name="about">About</string> <string name="about">About</string>