fixed more icons

added min height in password edit text to make sure (hopefully) the eye icon doesn't overlap the line
changed status bar color in action mode
fixed string for change log (v0.9.8)
This commit is contained in:
Philipp Crocoll 2015-10-29 21:45:53 +01:00
parent f11eabe13f
commit c6cd5123c8
31 changed files with 76 additions and 13 deletions

View File

@ -17,7 +17,7 @@ namespace keepass2android
public Drawable Icon
{
get { return _ctx.Resources.GetDrawable(Android.Resource.Drawable.IcMenuUpload); }
get { return _ctx.Resources.GetDrawable(Resource.Drawable.ic_menu_upload_grey); }
}
public string Text

View File

@ -18,7 +18,7 @@ namespace keepass2android
public Drawable Icon
{
get { return _entryActivity.Resources.GetDrawable(Android.Resource.Drawable.IcMenuShare); }
get { return _entryActivity.Resources.GetDrawable(Resource.Drawable.ic_menu_share_grey); }
}
public string Text

View File

@ -18,7 +18,7 @@ namespace keepass2android
public Drawable Icon
{
get { return _activity.Resources.GetDrawable(Android.Resource.Drawable.IcMenuSave); }
get { return _activity.Resources.GetDrawable(Resource.Drawable.ic_menu_save_grey); }
}
public string Text

View File

@ -685,6 +685,7 @@ namespace keepass2android
public class GroupListFragment : ListFragment, AbsListView.IMultiChoiceModeListener
{
private ActionMode _mode;
private int _statusBarColor;
public override void OnActivityCreated(Bundle savedInstanceState)
{
@ -777,6 +778,11 @@ namespace keepass2android
((PwGroupListAdapter) ListView.Adapter).InActionMode = true;
((PwGroupListAdapter)ListView.Adapter).NotifyDataSetChanged();
_mode = mode;
if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
{
_statusBarColor = Activity.Window.StatusBarColor;
Activity.Window.SetStatusBarColor(Activity.Resources.GetColor(Resource.Color.appAccentColorDark));
}
return true;
}
@ -786,6 +792,10 @@ namespace keepass2android
((PwGroupListAdapter)ListView.Adapter).InActionMode = true;
((PwGroupListAdapter)ListView.Adapter).NotifyDataSetChanged();
_mode = null;
if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
{
Activity.Window.SetStatusBarColor( new Android.Graphics.Color(_statusBarColor));
}
}
public bool OnPrepareActionMode(ActionMode mode, IMenu menu)

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -148,6 +148,7 @@
android:id="@+id/password_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="32dp"
android:paddingTop="2dp"
android:singleLine="true"
android:inputType="textPassword"
@ -360,21 +361,21 @@
<Button
android:id="@+id/btn_nav_change_db"
android:text="@string/menu_change_db"
android:drawableLeft="@drawable/ic_nav_changedb"
android:drawableLeft="@drawable/ic_nav_changedb_grey"
style="@style/NavDrawerButton" />
<Button
android:id="@+id/btn_nav_settings"
android:drawableLeft="@drawable/ic_nav_settings"
android:drawableLeft="@drawable/ic_nav_settings_grey"
android:text="@string/menu_app_settings"
style="@style/NavDrawerButton" />
<Button
android:id="@+id/btn_nav_donate"
android:drawableLeft="@drawable/ic_nav_donate"
android:drawableLeft="@drawable/ic_nav_donate_grey"
android:text="@string/menu_donate"
style="@style/NavDrawerButton" />
<Button
android:id="@+id/btn_nav_about"
android:drawableLeft="@drawable/ic_nav_about"
android:drawableLeft="@drawable/ic_nav_about_grey"
android:text="@string/menu_about"
style="@style/NavDrawerButton" />
</LinearLayout>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_edit"
android:icon="@android:drawable/ic_menu_edit"
android:icon="@drawable/ic_menu_edit"
android:title="@string/menu_edit"
android:showAsAction="always"
/>

View File

@ -22,6 +22,7 @@
<color name="appPrimaryColor">#8bc34a</color>
<color name="appPrimaryDarkColor">#548a2e</color>
<color name="appAccentColor">#0277bd</color>
<color name="appAccentColorDark">#015080</color>

View File

@ -566,15 +566,12 @@
</string>
<string name="ChangeLog_0_9_8">
Version 0.9.8 preview 2 (alpha)\n
*** NOTE: This preview is meant for early testing of the new UI design. It is currently not fully functional!***
* Material design.
Version 0.9.8\n
* Support for Storage Access Framework (allows write to SD card and Google Drive in KP2A Offline)\n
* Try to detect erroneous user input when entering WebDAV URLs (directory instead of file)\n
* Changed password font\n
* Allow to change Dropbox account\n
* Fixed bug: Now remembering OTP password\n
* Note: I have promised Material Design for this release. I am constantly working on it, but it needs a bit more time. Sorry! \n
* Fixed bug: Now remembering OTP password
</string>
<string name="ChangeLog_0_9_7b">

View File

@ -1328,4 +1328,58 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_view_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_close_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_cut_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_delete_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_download_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_edit_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_lock_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_navigate_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_paste_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_save_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_search_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_share_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_menu_upload_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_nav_about_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_nav_changedb_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_nav_donate_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_nav_search_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_nav_settings_grey.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_nav_sort_grey.png" />
</ItemGroup>
</Project>