diff --git a/app/src/main/java/com/kunzisoft/keepass/adapters/NodesAdapter.kt b/app/src/main/java/com/kunzisoft/keepass/adapters/NodesAdapter.kt index 840496b44..ea9115a73 100644 --- a/app/src/main/java/com/kunzisoft/keepass/adapters/NodesAdapter.kt +++ b/app/src/main/java/com/kunzisoft/keepass/adapters/NodesAdapter.kt @@ -428,16 +428,6 @@ class NodesAdapter ( if (entry.containsAttachment()) View.VISIBLE else View.GONE // Assign colors - val backgroundColor = if (mShowEntryColors) entry.backgroundColor else null - if (!holder.container.isSelected) { - if (backgroundColor != null) { - holder.container.setBackgroundColor(backgroundColor) - } else { - holder.container.setBackgroundColor(Color.TRANSPARENT) - } - } else { - holder.container.setBackgroundColor(mColorSecondary) - } val foregroundColor = if (mShowEntryColors) entry.foregroundColor else null if (!holder.container.isSelected) { if (foregroundColor != null) { diff --git a/app/src/main/res/color/text_color_light.xml b/app/src/main/res/color/text_color_light.xml index 83fbc9bbf..e8c759b37 100644 --- a/app/src/main/res/color/text_color_light.xml +++ b/app/src/main/res/color/text_color_light.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/app/src/main/res/color/text_color_night.xml b/app/src/main/res/color/text_color_night.xml index b452f1fa0..fff825c9e 100644 --- a/app/src/main/res/color/text_color_night.xml +++ b/app/src/main/res/color/text_color_night.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/app/src/main/res/drawable-v21/background_item_selection.xml b/app/src/main/res/drawable-v21/background_item_selection.xml index e4690915a..146040bcf 100644 --- a/app/src/main/res/drawable-v21/background_item_selection.xml +++ b/app/src/main/res/drawable-v21/background_item_selection.xml @@ -1,13 +1,22 @@ - - - - - + + + + + + + + + + + + + + + + - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/drawable/background_item_selection.xml b/app/src/main/res/drawable/background_item_selection.xml index eb60a1034..787e7c42e 100644 --- a/app/src/main/res/drawable/background_item_selection.xml +++ b/app/src/main/res/drawable/background_item_selection.xml @@ -2,11 +2,13 @@ + + diff --git a/app/src/main/res/layout/activity_group.xml b/app/src/main/res/layout/activity_group.xml index 639bf826e..7e65b045e 100644 --- a/app/src/main/res/layout/activity_group.xml +++ b/app/src/main/res/layout/activity_group.xml @@ -137,6 +137,7 @@ android:id="@+id/nodes_list_fragment_container" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingTop="@dimen/selectable_margin_vertical" android:background="?android:attr/windowBackground" /> diff --git a/app/src/main/res/layout/activity_main_credential.xml b/app/src/main/res/layout/activity_main_credential.xml index 00fff407d..da9309d59 100644 --- a/app/src/main/res/layout/activity_main_credential.xml +++ b/app/src/main/res/layout/activity_main_credential.xml @@ -120,7 +120,7 @@ + android:background="?attr/colorSurface"> + android:paddingVertical="@dimen/selectable_margin_vertical" + android:paddingHorizontal="@dimen/selectable_margin_horizontal"> - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_list_nodes_group.xml b/app/src/main/res/layout/item_list_nodes_group.xml index e0a77bdf8..1ef6bde5f 100644 --- a/app/src/main/res/layout/item_list_nodes_group.xml +++ b/app/src/main/res/layout/item_list_nodes_group.xml @@ -24,19 +24,20 @@ android:id="@+id/node_container" android:layout_width="match_parent" android:layout_height="wrap_content" - style="@style/KeepassDXStyle.Selectable.Item"> + android:paddingVertical="@dimen/selectable_margin_vertical" + android:paddingHorizontal="@dimen/selectable_margin_horizontal"> + app:layout_constraintEnd_toEndOf="parent" > #FFDAD6 #FFFFFF #410002 - #FCFDF6 + #F7FDF6 #1A1C19 #FCFDF6 - #1A1C19 + #3C423A #DEE5D8 #424940 #72796F @@ -156,6 +156,7 @@ #006E1C #C2C9BD #000000 + #7DDC7A #00390A #005313 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index e991b4113..0e6f2a7e7 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -24,7 +24,10 @@ 8dp 15dp 144dp - 6dp + 8dp + 4dp + 8dp + 48dp 48dp 10dp 5dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index d59fa5e2b..97eceb984 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -37,13 +37,13 @@ @color/green ?attr/colorSurface - @color/md_theme_light_onPrimary - @color/md_theme_light_primaryContainer - @color/md_theme_light_onPrimaryContainer + @color/white + @color/green + @color/white @color/orange - @color/md_theme_light_onSecondary - @color/md_theme_light_secondaryContainer - @color/md_theme_light_onSecondaryContainer + @color/green_black_light + @color/orange + @color/green_black_light @color/md_theme_light_tertiary @color/md_theme_light_onTertiary @color/md_theme_light_tertiaryContainer @@ -56,11 +56,11 @@ @color/md_theme_light_onBackground @color/md_theme_light_surface @color/md_theme_light_onSurface - #F7FAF6 - #F0F8EF - #F1FBEF - #E5F8E2 - #E0FADC + #F2F6F1 + #F2F8F1 + #f2f8ed + #EFF8E8 + #E9F4E0 @color/md_theme_light_surfaceVariant @color/md_theme_light_onSurfaceVariant @color/md_theme_light_outline @@ -71,7 +71,7 @@ true false false - ?attr/colorSurfaceContainerLowest + #F9FBF8 @style/KeepassDXStyle.ImageButton @style/KeepassDXStyle.ImageButton @@ -143,27 +143,52 @@ + diff --git a/app/src/main/res/values/styles_classic.xml b/app/src/main/res/values/styles_classic.xml index 13b52253f..528ad52e4 100644 --- a/app/src/main/res/values/styles_classic.xml +++ b/app/src/main/res/values/styles_classic.xml @@ -37,10 +37,7 @@ @color/cyan_lightest @color/cyan_lightest @color/white_darkest - @style/KeepassDXStyle.Toolbar.Clear - @style/KeepassDXStyle.Toolbar.Special.Clear - @style/KeepassDXStyle.Toolbar.Action.Clear - @style/KeepassDXStyle.Toolbar.Popup.Clear + @style/KeepassDXStyle.Clear.Dialog @style/KeepassDXStyle.Clear.Dialog @style/KeepassDXStyle.Cardview.Clear @@ -60,28 +57,6 @@ @color/white_darkest @color/white_grey_lighter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -