diff --git a/app/src/main/java/com/kunzisoft/keepass/education/Education.kt b/app/src/main/java/com/kunzisoft/keepass/education/Education.kt index 782b7428f..81e8d9b40 100644 --- a/app/src/main/java/com/kunzisoft/keepass/education/Education.kt +++ b/app/src/main/java/com/kunzisoft/keepass/education/Education.kt @@ -98,7 +98,7 @@ open class Education(val activity: Activity) { } protected fun getCircleColor(): Int { - val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.educationCircleColor)) + val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.colorPrimaryContainer)) val colorControl = typedArray.getColor(0, Color.GREEN) typedArray.recycle() return colorControl @@ -109,7 +109,7 @@ open class Education(val activity: Activity) { } protected fun getTextColor(): Int { - val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.educationTextColor)) + val typedArray = activity.obtainStyledAttributes(intArrayOf(R.attr.colorOnPrimaryContainer)) val colorControl = typedArray.getColor(0, Color.WHITE) typedArray.recycle() return colorControl diff --git a/app/src/main/res/layout/item_attachment.xml b/app/src/main/res/layout/item_attachment.xml index 5dbb9e209..53f65a9da 100644 --- a/app/src/main/res/layout/item_attachment.xml +++ b/app/src/main/res/layout/item_attachment.xml @@ -43,7 +43,8 @@ android:layout_width="match_parent" android:layout_height="48dp" android:layout_alignBottom="@+id/item_attachment_thumbnail" - android:background="?attr/cardBackgroundTransparentColor"> + android:alpha="0.8" + android:background="?attr/colorSurfaceContainer"> - - - - diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 89673f943..ebeac11c3 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -221,6 +221,7 @@ #F0F1EB #2D2F31 #4FC3F7 + @color/cyan #209BC6 @color/black_light @@ -254,6 +255,7 @@ #191B1C #DDE1E3 #00486E + @color/cyan_lightest @@ -289,6 +291,7 @@ #F1EEEB #312F2D #F7924F + @color/orange_dark @color/orange_darkest @color/black @@ -322,6 +325,7 @@ #1C1A19 #E3E0DD #6E3000 + @color/orange_lighter @@ -357,6 +361,7 @@ #F0F1EB #2D2F31 @color/blue_deep + @color/grey_darker #1A66CC @color/grey_slight @@ -390,6 +395,7 @@ #191B1C #DDE1E3 #00486E + @color/white @@ -425,6 +431,7 @@ #F0F1EB #2D2F31 @color/blue_deep + @color/blue_darker @color/blue @color/blue_dark @@ -458,6 +465,7 @@ #191B1C #DDE1E3 #00486E + @color/blue_lighter @@ -493,6 +501,7 @@ #F0F1EB #312D2D @color/red_black + @color/red_dark @color/red @color/red_dark @@ -526,6 +535,7 @@ #1C1919 #E3DDDD #6E0000 + @color/red_lighter @@ -563,6 +573,7 @@ #F0F1EB #414445 #243442 + #27343A #F9AA33 #1D272B @@ -596,6 +607,7 @@ #F0F1EB #414445 #243442 + #F1F2F3 @@ -631,7 +643,7 @@ #EFEBF1 #2F2D31 #2F2442 - @color/purple_light + @color/purple_dark @color/red_dark @color/black_purple diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c4501d72a..d0e55bf71 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -81,8 +81,6 @@ @style/KeepassDXStyle.TextAppearance @style/KeepassDXStyle.TextAppearance - #DDFFFFFF - @color/text_color_light @color/text_color_light @color/grey_light @@ -117,10 +115,6 @@ @style/KeepassDXStyle.SwitchPreference @style/KeepassDXStyle.SwitchPreference - - @color/green_lighter - @color/white - @style/KeepassDXStyle.TextInputLayout @@ -182,8 +176,6 @@ @style/KeepassDXStyle.TextAppearance @style/KeepassDXStyle.TextAppearance - @color/grey_dark_transparent - @color/text_color_night @color/text_color_night @color/white @@ -216,10 +208,6 @@ @style/KeepassDXStyle.SwitchPreference @style/KeepassDXStyle.SwitchPreference - - @color/green_light - @color/white - @style/KeepassDXStyle.TextInputLayout diff --git a/app/src/main/res/values/styles_classic.xml b/app/src/main/res/values/styles_classic.xml index e638660d2..a44fc097d 100644 --- a/app/src/main/res/values/styles_classic.xml +++ b/app/src/main/res/values/styles_classic.xml @@ -19,9 +19,7 @@ --> - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_divine.xml b/app/src/main/res/values/styles_divine.xml index 99795cac8..2381c0588 100644 --- a/app/src/main/res/values/styles_divine.xml +++ b/app/src/main/res/values/styles_divine.xml @@ -56,28 +56,21 @@ @color/divine_theme_light_inverseOnSurface @color/divine_theme_light_inverseSurface @color/divine_theme_light_inversePrimary - - @color/orange_light + @color/divine_theme_light_textPrimary @style/KeepassDXStyle.White.Dialog @style/KeepassDXStyle.White.Dialog - - @color/white_transparent - @color/orange - @color/white - \ No newline at end of file diff --git a/app/src/main/res/values/styles_kunzite.xml b/app/src/main/res/values/styles_kunzite.xml index 67d6c69a2..1d01de4a9 100644 --- a/app/src/main/res/values/styles_kunzite.xml +++ b/app/src/main/res/values/styles_kunzite.xml @@ -19,9 +19,7 @@ --> - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_reply.xml b/app/src/main/res/values/styles_reply.xml index d982424be..d0ae147f3 100644 --- a/app/src/main/res/values/styles_reply.xml +++ b/app/src/main/res/values/styles_reply.xml @@ -19,9 +19,7 @@ --> - - diff --git a/app/src/main/res/values/styles_simple.xml b/app/src/main/res/values/styles_simple.xml index f8d8cc0f6..51036ddbe 100644 --- a/app/src/main/res/values/styles_simple.xml +++ b/app/src/main/res/values/styles_simple.xml @@ -19,9 +19,7 @@ --> - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_sun.xml b/app/src/main/res/values/styles_sun.xml index 0e8044a04..feea1d58e 100644 --- a/app/src/main/res/values/styles_sun.xml +++ b/app/src/main/res/values/styles_sun.xml @@ -19,8 +19,7 @@ --> - - \ No newline at end of file