diff --git a/app/src/main/java/io/heckel/ntfy/ui/Colors.kt b/app/src/main/java/io/heckel/ntfy/ui/Colors.kt index 54d76de..cce4db0 100644 --- a/app/src/main/java/io/heckel/ntfy/ui/Colors.kt +++ b/app/src/main/java/io/heckel/ntfy/ui/Colors.kt @@ -11,19 +11,23 @@ class Colors { const val notificationIcon = R.color.teal fun itemSelectedBackground(context: Context): Int { - return if (isDarkThemeOn(context)) R.color.gray_dark else R.color.gray_light + return if (isDarkThemeOn(context)) R.color.black_800b else R.color.gray_400 } - fun itemSelectedBackgroundColor(context: Context): Int { - return ContextCompat.getColor(context, itemSelectedBackground(context)) + fun cardSelectedBackground(context: Context): Int { + return if (isDarkThemeOn(context)) R.color.black_700b else R.color.gray_500 + } + + fun cardSelectedBackgroundColor(context: Context): Int { + return ContextCompat.getColor(context, cardSelectedBackground(context)) } fun statusBarNormal(context: Context): Int { - return if (isDarkThemeOn(context)) R.color.black_light else R.color.teal + return if (isDarkThemeOn(context)) R.color.black_900 else R.color.teal } fun statusBarActionMode(context: Context): Int { - return if (isDarkThemeOn(context)) R.color.black_light else R.color.teal_dark + return if (isDarkThemeOn(context)) R.color.black_900 else R.color.teal_dark } fun dangerText(context: Context): Int { diff --git a/app/src/main/java/io/heckel/ntfy/ui/DetailAdapter.kt b/app/src/main/java/io/heckel/ntfy/ui/DetailAdapter.kt index ff84bb4..b60ed78 100644 --- a/app/src/main/java/io/heckel/ntfy/ui/DetailAdapter.kt +++ b/app/src/main/java/io/heckel/ntfy/ui/DetailAdapter.kt @@ -6,11 +6,9 @@ import android.content.* import android.content.pm.PackageManager import android.graphics.Bitmap import android.graphics.BitmapFactory -import android.graphics.drawable.RippleDrawable import android.net.Uri import android.os.Build import android.os.Environment -import android.os.Handler import android.provider.MediaStore import android.view.LayoutInflater import android.view.View @@ -115,7 +113,7 @@ class DetailAdapter(private val activity: Activity, private val lifecycleScope: tagsView.visibility = View.GONE } if (selected.contains(notification.id)) { - cardView.setCardBackgroundColor(Colors.itemSelectedBackgroundColor(context)) + cardView.setCardBackgroundColor(Colors.cardSelectedBackgroundColor(context)) } val attachment = notification.attachment val exists = if (attachment?.contentUri != null) fileExists(context, attachment.contentUri) else false diff --git a/app/src/main/res/layout/activity_detail.xml b/app/src/main/res/layout/activity_detail.xml index 9a7965c..67a2df3 100644 --- a/app/src/main/res/layout/activity_detail.xml +++ b/app/src/main/res/layout/activity_detail.xml @@ -8,7 +8,7 @@ tools:context=".ui.DetailActivity" > @color/teal_light @color/teal_light - @color/black_light - @color/black_light - @color/black_light + @color/black_900 + @color/black_900 + @color/black_900 - @color/gray_dark + @color/black_800b @color/white @@ -27,15 +27,15 @@ - diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index fbfeeb5..00ae975 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,16 +1,17 @@ - #ff000000 - #121212 - #ffffffff + #ff000000 + #121212 + #1b2023 + #282F33 + #dddddd + #eeeeee + #ffffffff - #338574 - #65b5a3 - #2a6e60 - #fe4d2e - #c30000 - - #eeeeee - #1b2023 + #338574 + #65b5a3 + #2a6e60 + #fe4d2e + #c30000 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 71c7f64..4f0902d 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -21,8 +21,8 @@ @color/white -