From 1b3192b85585f192fa6d415ab24c045cb7d7fda9 Mon Sep 17 00:00:00 2001 From: Fahim Date: Tue, 25 Jan 2022 22:10:26 +0600 Subject: [PATCH] 4721-Crash_in_dark_mode_issue issue: https://gitlab.e.foundation/e/backlog/-/issues/4721 --- .../fsck/k9/controller/push/PushService.kt | 3 +- .../k9/controller/push/PushServiceManager.kt | 1 - .../main/java/com/fsck/k9/K9ThemeProvider.kt | 4 +- .../src/main/res/values-night/bools.xml | 4 + .../src/main/res/values-night/themes.xml | 8 -- app/k9mail/src/main/res/values/bools.xml | 4 + app/k9mail/src/main/res/values/colors.xml | 11 ++ app/k9mail/src/main/res/values/themes.xml | 121 ++++++++---------- app/ui/base/src/main/res/layout/toolbar.xml | 2 +- .../base/src/main/res/values-night/colors.xml | 4 + app/ui/base/src/main/res/values/colors.xml | 13 ++ app/ui/base/src/main/res/values/styles.xml | 4 +- .../src/main/res/drawable/blue_background.xml | 2 +- .../res/drawable/bullet_point_negative.xml | 11 +- .../res/drawable/bullet_point_neutral.xml | 2 +- .../res/drawable/bullet_point_positive.xml | 11 +- .../src/main/res/drawable/compatibility.xml | 2 +- .../src/main/res/drawable/ic_account.xml | 2 +- .../src/main/res/drawable/ic_account_plus.xml | 3 +- .../main/res/drawable/ic_alert_octagon.xml | 3 +- .../src/main/res/drawable/ic_archive.xml | 3 +- .../src/main/res/drawable/ic_arrow_back.xml | 3 +- .../main/res/drawable/ic_arrow_up_down.xml | 3 +- .../src/main/res/drawable/ic_attachment.xml | 3 +- .../res/drawable/ic_attachment_generic.xml | 2 +- .../main/res/drawable/ic_attachment_image.xml | 2 +- .../legacy/src/main/res/drawable/ic_bug.xml | 3 +- .../src/main/res/drawable/ic_check_circle.xml | 3 +- .../res/drawable/ic_check_circle_large.xml | 2 +- .../src/main/res/drawable/ic_chevron_down.xml | 3 +- .../src/main/res/drawable/ic_chevron_left.xml | 3 +- .../main/res/drawable/ic_chevron_right.xml | 3 +- .../src/main/res/drawable/ic_chevron_up.xml | 3 +- .../legacy/src/main/res/drawable/ic_clear.xml | 3 +- .../legacy/src/main/res/drawable/ic_close.xml | 3 +- .../legacy/src/main/res/drawable/ic_code.xml | 3 +- .../legacy/src/main/res/drawable/ic_cog.xml | 3 +- .../src/main/res/drawable/ic_content_copy.xml | 3 +- .../src/main/res/drawable/ic_description.xml | 3 +- .../src/main/res/drawable/ic_download.xml | 3 +- .../main/res/drawable/ic_drafts_folder.xml | 3 +- .../src/main/res/drawable/ic_drag_handle.xml | 5 +- .../src/main/res/drawable/ic_envelope.xml | 3 +- .../legacy/src/main/res/drawable/ic_error.xml | 3 +- .../src/main/res/drawable/ic_export.xml | 3 +- .../src/main/res/drawable/ic_file_upload.xml | 3 +- .../src/main/res/drawable/ic_floppy.xml | 3 +- .../src/main/res/drawable/ic_folder.xml | 3 +- .../main/res/drawable/ic_folder_magnify.xml | 3 +- .../main/res/drawable/ic_folder_manage.xml | 3 +- .../legacy/src/main/res/drawable/ic_forum.xml | 3 +- .../src/main/res/drawable/ic_import.xml | 3 +- .../legacy/src/main/res/drawable/ic_inbox.xml | 3 +- .../main/res/drawable/ic_inbox_multiple.xml | 3 +- .../legacy/src/main/res/drawable/ic_info.xml | 3 +- .../legacy/src/main/res/drawable/ic_key.xml | 3 +- .../legacy/src/main/res/drawable/ic_link.xml | 3 +- .../src/main/res/drawable/ic_magnify.xml | 3 +- .../main/res/drawable/ic_magnify_cloud.xml | 3 +- .../src/main/res/drawable/ic_mark_new.xml | 3 +- .../src/main/res/drawable/ic_mastodon.xml | 3 +- .../legacy/src/main/res/drawable/ic_menu.xml | 3 +- .../src/main/res/drawable/ic_not_imported.xml | 3 +- .../main/res/drawable/ic_notifications.xml | 3 +- .../main/res/drawable/ic_opened_envelope.xml | 3 +- .../src/main/res/drawable/ic_outbox.xml | 5 +- .../src/main/res/drawable/ic_pencil.xml | 3 +- .../src/main/res/drawable/ic_people.xml | 3 +- .../src/main/res/drawable/ic_person_plus.xml | 3 +- .../legacy/src/main/res/drawable/ic_plus.xml | 3 +- .../drawable/ic_preferences_check_mail.xml | 3 +- .../res/drawable/ic_preferences_crypto.xml | 3 +- .../res/drawable/ic_push_notification.xml | 3 +- .../src/main/res/drawable/ic_refresh.xml | 3 +- .../src/main/res/drawable/ic_refresh_all.xml | 3 +- .../src/main/res/drawable/ic_reply_all.xml | 3 +- .../src/main/res/drawable/ic_select_all.xml | 3 +- .../legacy/src/main/res/drawable/ic_send.xml | 3 +- .../src/main/res/drawable/ic_shield.xml | 3 +- .../legacy/src/main/res/drawable/ic_sort.xml | 3 +- .../src/main/res/drawable/ic_star_border.xml | 3 +- .../main/res/drawable/ic_status_corner.xml | 4 +- .../legacy/src/main/res/drawable/ic_touch.xml | 3 +- .../src/main/res/drawable/ic_trash_can.xml | 3 +- app/ui/legacy/src/main/res/drawable/ic_tv.xml | 3 +- .../src/main/res/drawable/ic_twitter.xml | 3 +- .../src/main/res/drawable/ic_visibility.xml | 3 +- .../drawable/notification_action_archive.xml | 2 +- .../drawable/notification_action_delete.xml | 2 +- .../notification_action_mark_as_read.xml | 2 +- .../notification_action_mark_as_spam.xml | 2 +- .../drawable/notification_action_reply.xml | 2 +- .../drawable/notification_icon_new_mail.xml | 2 +- .../drawable/notification_icon_warning.xml | 2 +- .../res/drawable/status_signature_unknown.xml | 13 +- .../src/main/res/layout/drawer_contents.xml | 2 +- .../res/layout/message_compose_content.xml | 1 + .../src/main/res/layout/message_container.xml | 42 +++--- .../main/res/layout/recipient_token_item.xml | 1 + app/ui/legacy/src/main/res/values/colors.xml | 9 ++ app/ui/legacy/src/main/res/values/styles.xml | 19 +-- 101 files changed, 243 insertions(+), 276 deletions(-) create mode 100644 app/k9mail/src/main/res/values-night/bools.xml delete mode 100644 app/k9mail/src/main/res/values-night/themes.xml create mode 100644 app/k9mail/src/main/res/values/bools.xml create mode 100644 app/k9mail/src/main/res/values/colors.xml create mode 100644 app/ui/base/src/main/res/values-night/colors.xml create mode 100644 app/ui/base/src/main/res/values/colors.xml diff --git a/app/core/src/main/java/com/fsck/k9/controller/push/PushService.kt b/app/core/src/main/java/com/fsck/k9/controller/push/PushService.kt index a24baf9de1..987ba0b69b 100644 --- a/app/core/src/main/java/com/fsck/k9/controller/push/PushService.kt +++ b/app/core/src/main/java/com/fsck/k9/controller/push/PushService.kt @@ -25,7 +25,6 @@ class PushService : Service() { Timber.v("PushService.onStartCommand()") super.onStartCommand(intent, flags, startId) - // startForeground() initializePushController() return START_STICKY @@ -42,7 +41,7 @@ class PushService : Service() { val notification = pushNotificationManager.createForegroundNotification() if (Build.VERSION.SDK_INT >= 29) { - startForeground(notificationId, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC) + startForeground(notificationId, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC) } else { startForeground(notificationId, notification) } diff --git a/app/core/src/main/java/com/fsck/k9/controller/push/PushServiceManager.kt b/app/core/src/main/java/com/fsck/k9/controller/push/PushServiceManager.kt index e55bf3ee4a..1ac8178e08 100644 --- a/app/core/src/main/java/com/fsck/k9/controller/push/PushServiceManager.kt +++ b/app/core/src/main/java/com/fsck/k9/controller/push/PushServiceManager.kt @@ -34,7 +34,6 @@ internal class PushServiceManager(private val context: Context) { try { val intent = Intent(context, PushService::class.java) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - // context.startForegroundService(intent) context.startService(intent) } else { context.startService(intent) diff --git a/app/k9mail/src/main/java/com/fsck/k9/K9ThemeProvider.kt b/app/k9mail/src/main/java/com/fsck/k9/K9ThemeProvider.kt index 0b54cc424d..c3bed2e649 100644 --- a/app/k9mail/src/main/java/com/fsck/k9/K9ThemeProvider.kt +++ b/app/k9mail/src/main/java/com/fsck/k9/K9ThemeProvider.kt @@ -5,8 +5,8 @@ import com.fsck.k9.ui.base.ThemeProvider // TODO: Move this class and the theme resources to the main app module class K9ThemeProvider : ThemeProvider { override val appThemeResourceId = R.style.Theme_K9_DayNight - override val appLightThemeResourceId = R.style.Theme_K9_Light - override val appDarkThemeResourceId = R.style.Theme_K9_Dark + override val appLightThemeResourceId = R.style.Theme_K9_DayNight + override val appDarkThemeResourceId = R.style.Theme_K9_DayNight override val dialogThemeResourceId = R.style.Theme_K9_Dialog_DayNight override val translucentDialogThemeResourceId = R.style.Theme_K9_Dialog_Translucent_DayNight } diff --git a/app/k9mail/src/main/res/values-night/bools.xml b/app/k9mail/src/main/res/values-night/bools.xml new file mode 100644 index 0000000000..ecb2751dc2 --- /dev/null +++ b/app/k9mail/src/main/res/values-night/bools.xml @@ -0,0 +1,4 @@ + + + false + \ No newline at end of file diff --git a/app/k9mail/src/main/res/values-night/themes.xml b/app/k9mail/src/main/res/values-night/themes.xml deleted file mode 100644 index 90591279ed..0000000000 --- a/app/k9mail/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - + #669900 + #336699 + #bbb + #888 - - - - - \ No newline at end of file diff --git a/app/ui/legacy/src/main/res/drawable/blue_background.xml b/app/ui/legacy/src/main/res/drawable/blue_background.xml index 4bd4231827..73ab390fc5 100644 --- a/app/ui/legacy/src/main/res/drawable/blue_background.xml +++ b/app/ui/legacy/src/main/res/drawable/blue_background.xml @@ -1,6 +1,6 @@ - + diff --git a/app/ui/legacy/src/main/res/drawable/bullet_point_negative.xml b/app/ui/legacy/src/main/res/drawable/bullet_point_negative.xml index fed62836b0..506ba75f7e 100644 --- a/app/ui/legacy/src/main/res/drawable/bullet_point_negative.xml +++ b/app/ui/legacy/src/main/res/drawable/bullet_point_negative.xml @@ -1,4 +1,9 @@ - - + + diff --git a/app/ui/legacy/src/main/res/drawable/bullet_point_neutral.xml b/app/ui/legacy/src/main/res/drawable/bullet_point_neutral.xml index 5aed6a1adb..44fa3efe90 100644 --- a/app/ui/legacy/src/main/res/drawable/bullet_point_neutral.xml +++ b/app/ui/legacy/src/main/res/drawable/bullet_point_neutral.xml @@ -6,7 +6,7 @@ android:viewportHeight="457.469"> - + + diff --git a/app/ui/legacy/src/main/res/drawable/compatibility.xml b/app/ui/legacy/src/main/res/drawable/compatibility.xml index 8abc9d9d01..7e5bfbc842 100644 --- a/app/ui/legacy/src/main/res/drawable/compatibility.xml +++ b/app/ui/legacy/src/main/res/drawable/compatibility.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/ui/legacy/src/main/res/drawable/ic_account.xml b/app/ui/legacy/src/main/res/drawable/ic_account.xml index 02600b7471..2c0de44e3a 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_account.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_account.xml @@ -5,6 +5,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/ic_account_plus.xml b/app/ui/legacy/src/main/res/drawable/ic_account_plus.xml index 994f375e75..d8ce14fbcb 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_account_plus.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_account_plus.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_alert_octagon.xml b/app/ui/legacy/src/main/res/drawable/ic_alert_octagon.xml index 226706b9e0..ec074e7b39 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_alert_octagon.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_alert_octagon.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_archive.xml b/app/ui/legacy/src/main/res/drawable/ic_archive.xml index 90e52ab4ee..6346854890 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_archive.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_archive.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_arrow_back.xml b/app/ui/legacy/src/main/res/drawable/ic_arrow_back.xml index c9d2255e20..cfe1e1a3d3 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_arrow_back.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_arrow_back.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_arrow_up_down.xml b/app/ui/legacy/src/main/res/drawable/ic_arrow_up_down.xml index 98f7a42282..eea04380f6 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_arrow_up_down.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_arrow_up_down.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_attachment.xml b/app/ui/legacy/src/main/res/drawable/ic_attachment.xml index b6387fa52a..d868f68ebd 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_attachment.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_attachment.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_attachment_generic.xml b/app/ui/legacy/src/main/res/drawable/ic_attachment_generic.xml index fd1e89cdfe..ab4ecff6d0 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_attachment_generic.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_attachment_generic.xml @@ -4,6 +4,6 @@ android:viewportHeight="24.0" android:viewportWidth="24.0"> diff --git a/app/ui/legacy/src/main/res/drawable/ic_attachment_image.xml b/app/ui/legacy/src/main/res/drawable/ic_attachment_image.xml index 7d86223b87..bd78e52daa 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_attachment_image.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_attachment_image.xml @@ -4,6 +4,6 @@ android:viewportHeight="24.0" android:viewportWidth="24.0"> diff --git a/app/ui/legacy/src/main/res/drawable/ic_bug.xml b/app/ui/legacy/src/main/res/drawable/ic_bug.xml index c90a5a1be3..9c7e65209e 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_bug.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_bug.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_check_circle.xml b/app/ui/legacy/src/main/res/drawable/ic_check_circle.xml index b648f57059..c3fbc4c6c1 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_check_circle.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_check_circle.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_check_circle_large.xml b/app/ui/legacy/src/main/res/drawable/ic_check_circle_large.xml index 6483898ca3..53f3910c86 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_check_circle_large.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_check_circle_large.xml @@ -6,7 +6,7 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_chevron_left.xml b/app/ui/legacy/src/main/res/drawable/ic_chevron_left.xml index e3b3964da1..9856b389aa 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_chevron_left.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_chevron_left.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_chevron_right.xml b/app/ui/legacy/src/main/res/drawable/ic_chevron_right.xml index 9664e23d3c..82255625e8 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_chevron_right.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_chevron_right.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_chevron_up.xml b/app/ui/legacy/src/main/res/drawable/ic_chevron_up.xml index e1d4062f89..378e777e4e 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_chevron_up.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_chevron_up.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_clear.xml b/app/ui/legacy/src/main/res/drawable/ic_clear.xml index 170e3ef60b..0c78f75565 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_clear.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_clear.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_close.xml b/app/ui/legacy/src/main/res/drawable/ic_close.xml index da6ccc8f46..b7b59abdda 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_close.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_close.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_code.xml b/app/ui/legacy/src/main/res/drawable/ic_code.xml index 8054f134c3..76b49851f0 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_code.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_code.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_cog.xml b/app/ui/legacy/src/main/res/drawable/ic_cog.xml index 4e19deecc1..7f4df888cc 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_cog.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_cog.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_content_copy.xml b/app/ui/legacy/src/main/res/drawable/ic_content_copy.xml index 33090f515b..62845fcfb6 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_content_copy.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_content_copy.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_description.xml b/app/ui/legacy/src/main/res/drawable/ic_description.xml index 361aebd475..0d88e4c343 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_description.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_description.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_download.xml b/app/ui/legacy/src/main/res/drawable/ic_download.xml index 0964bd62db..138b22742e 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_download.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_download.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_drafts_folder.xml b/app/ui/legacy/src/main/res/drawable/ic_drafts_folder.xml index 9d70912881..ab4ecff6d0 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_drafts_folder.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_drafts_folder.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_drag_handle.xml b/app/ui/legacy/src/main/res/drawable/ic_drag_handle.xml index 16755b674d..308d0906fe 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_drag_handle.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_drag_handle.xml @@ -2,9 +2,8 @@ android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/ic_envelope.xml b/app/ui/legacy/src/main/res/drawable/ic_envelope.xml index 2c8521771a..715e73e225 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_envelope.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_envelope.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_error.xml b/app/ui/legacy/src/main/res/drawable/ic_error.xml index cce259fa88..bb8f654dcf 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_error.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_error.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_export.xml b/app/ui/legacy/src/main/res/drawable/ic_export.xml index 03b4908dba..fdad795cd2 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_export.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_export.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_file_upload.xml b/app/ui/legacy/src/main/res/drawable/ic_file_upload.xml index 1f34349e73..d9883cd1a8 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_file_upload.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_file_upload.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_floppy.xml b/app/ui/legacy/src/main/res/drawable/ic_floppy.xml index 36541ed280..cc97c00277 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_floppy.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_floppy.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_folder.xml b/app/ui/legacy/src/main/res/drawable/ic_folder.xml index 4350ae5eca..d5dedb08af 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_folder.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_folder.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_folder_magnify.xml b/app/ui/legacy/src/main/res/drawable/ic_folder_magnify.xml index b29f011b9b..bb0baf26b8 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_folder_magnify.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_folder_magnify.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_folder_manage.xml b/app/ui/legacy/src/main/res/drawable/ic_folder_manage.xml index 5a836825b3..32d38cde69 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_folder_manage.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_folder_manage.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_forum.xml b/app/ui/legacy/src/main/res/drawable/ic_forum.xml index 2f776ebb5d..0fee4808cf 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_forum.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_forum.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_import.xml b/app/ui/legacy/src/main/res/drawable/ic_import.xml index cb5d8ef836..eb0579fd2d 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_import.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_import.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_inbox.xml b/app/ui/legacy/src/main/res/drawable/ic_inbox.xml index f55b5a6499..a40eb0c9c5 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_inbox.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple.xml b/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple.xml index e0c21d0956..9b8482c815 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_info.xml b/app/ui/legacy/src/main/res/drawable/ic_info.xml index 95cc987312..31a1cfb466 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_info.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_info.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_key.xml b/app/ui/legacy/src/main/res/drawable/ic_key.xml index 7b554c9493..51309a3d39 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_key.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_key.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_link.xml b/app/ui/legacy/src/main/res/drawable/ic_link.xml index ccb142a610..f5849695cc 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_link.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_link.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_magnify.xml b/app/ui/legacy/src/main/res/drawable/ic_magnify.xml index cbf0cc71e0..7f4449a748 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_magnify.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_magnify.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_magnify_cloud.xml b/app/ui/legacy/src/main/res/drawable/ic_magnify_cloud.xml index fff6643cf5..47fc0408a1 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_magnify_cloud.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_magnify_cloud.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_mark_new.xml b/app/ui/legacy/src/main/res/drawable/ic_mark_new.xml index de26f783aa..4bacfacd69 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_mark_new.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_mark_new.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_mastodon.xml b/app/ui/legacy/src/main/res/drawable/ic_mastodon.xml index 8e50a3251d..e48d1cd22b 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_mastodon.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_mastodon.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_menu.xml b/app/ui/legacy/src/main/res/drawable/ic_menu.xml index ada350030d..8e8b03c912 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_menu.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_menu.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_not_imported.xml b/app/ui/legacy/src/main/res/drawable/ic_not_imported.xml index 7b41d0d07c..1d320800d9 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_not_imported.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_not_imported.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_notifications.xml b/app/ui/legacy/src/main/res/drawable/ic_notifications.xml index 726ba1ec0d..61989ed4cc 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_notifications.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_notifications.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_opened_envelope.xml b/app/ui/legacy/src/main/res/drawable/ic_opened_envelope.xml index e789a77db5..6013d5ada9 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_opened_envelope.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_opened_envelope.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_outbox.xml b/app/ui/legacy/src/main/res/drawable/ic_outbox.xml index f495d1a25d..85f3386b64 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_outbox.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_outbox.xml @@ -1,13 +1,12 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_pencil.xml b/app/ui/legacy/src/main/res/drawable/ic_pencil.xml index 81fef3fb7d..551d96ea01 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_pencil.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_pencil.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_people.xml b/app/ui/legacy/src/main/res/drawable/ic_people.xml index 71da7d97d1..67a2faeeb2 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_people.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_people.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_person_plus.xml b/app/ui/legacy/src/main/res/drawable/ic_person_plus.xml index 842c6df398..7113827ab1 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_person_plus.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_person_plus.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_plus.xml b/app/ui/legacy/src/main/res/drawable/ic_plus.xml index 0553ae300c..035965ddeb 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_plus.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_plus.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_preferences_check_mail.xml b/app/ui/legacy/src/main/res/drawable/ic_preferences_check_mail.xml index b9937db689..8db4a80fc9 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_preferences_check_mail.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_preferences_check_mail.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_preferences_crypto.xml b/app/ui/legacy/src/main/res/drawable/ic_preferences_crypto.xml index 0e2b77b774..13e02b93d3 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_preferences_crypto.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_preferences_crypto.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_push_notification.xml b/app/ui/legacy/src/main/res/drawable/ic_push_notification.xml index 7d758bbf78..f192b447f8 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_push_notification.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_push_notification.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_refresh.xml b/app/ui/legacy/src/main/res/drawable/ic_refresh.xml index 0d768f68dc..93870b19bf 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_refresh.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_refresh.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_refresh_all.xml b/app/ui/legacy/src/main/res/drawable/ic_refresh_all.xml index f0721d9915..3e187baead 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_refresh_all.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_refresh_all.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_reply_all.xml b/app/ui/legacy/src/main/res/drawable/ic_reply_all.xml index 627b2754c5..e573ed2e0b 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_reply_all.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_reply_all.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_select_all.xml b/app/ui/legacy/src/main/res/drawable/ic_select_all.xml index b43ae6f947..ce914598d8 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_select_all.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_select_all.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_send.xml b/app/ui/legacy/src/main/res/drawable/ic_send.xml index d1e2e1c9c5..6755e765f4 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_send.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_send.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_shield.xml b/app/ui/legacy/src/main/res/drawable/ic_shield.xml index 5a77cae5ba..ae7882058f 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_shield.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_shield.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_sort.xml b/app/ui/legacy/src/main/res/drawable/ic_sort.xml index 707e960db7..8e5e3f71ab 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_sort.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_sort.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_star_border.xml b/app/ui/legacy/src/main/res/drawable/ic_star_border.xml index a1c9b57987..720a8af027 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_star_border.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_star_border.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_status_corner.xml b/app/ui/legacy/src/main/res/drawable/ic_status_corner.xml index de69ceaf17..378ba68b34 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_status_corner.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_status_corner.xml @@ -5,8 +5,8 @@ android:viewportWidth="50" android:viewportHeight="50"> + android:strokeColor="@color/default_icon_color" /> diff --git a/app/ui/legacy/src/main/res/drawable/ic_touch.xml b/app/ui/legacy/src/main/res/drawable/ic_touch.xml index deac85f445..556f8d735a 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_touch.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_touch.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_trash_can.xml b/app/ui/legacy/src/main/res/drawable/ic_trash_can.xml index 79372b1d6e..e0ae94b996 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_trash_can.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_trash_can.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_tv.xml b/app/ui/legacy/src/main/res/drawable/ic_tv.xml index 4097ae1434..1abb186ab7 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_tv.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_tv.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_twitter.xml b/app/ui/legacy/src/main/res/drawable/ic_twitter.xml index 07d3a117e1..55b84fee9f 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_twitter.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_twitter.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_visibility.xml b/app/ui/legacy/src/main/res/drawable/ic_visibility.xml index cc9f66f120..579f021930 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_visibility.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_visibility.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/notification_action_archive.xml b/app/ui/legacy/src/main/res/drawable/notification_action_archive.xml index ba3c563e34..6346854890 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_action_archive.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_action_archive.xml @@ -4,6 +4,6 @@ android:viewportHeight="24" android:viewportWidth="24"> diff --git a/app/ui/legacy/src/main/res/drawable/notification_action_delete.xml b/app/ui/legacy/src/main/res/drawable/notification_action_delete.xml index 6c6f704afe..e0ae94b996 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_action_delete.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_action_delete.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_read.xml b/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_read.xml index be9b28d01b..6013d5ada9 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_read.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_read.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_spam.xml b/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_spam.xml index a7bb50e06d..ec074e7b39 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_spam.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_action_mark_as_spam.xml @@ -4,6 +4,6 @@ android:viewportHeight="24" android:viewportWidth="24"> diff --git a/app/ui/legacy/src/main/res/drawable/notification_action_reply.xml b/app/ui/legacy/src/main/res/drawable/notification_action_reply.xml index b879a77198..e573ed2e0b 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_action_reply.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_action_reply.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/notification_icon_new_mail.xml b/app/ui/legacy/src/main/res/drawable/notification_icon_new_mail.xml index 4d54e4d832..715e73e225 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_icon_new_mail.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_icon_new_mail.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/notification_icon_warning.xml b/app/ui/legacy/src/main/res/drawable/notification_icon_warning.xml index 74fcc6f747..e719596bc9 100644 --- a/app/ui/legacy/src/main/res/drawable/notification_icon_warning.xml +++ b/app/ui/legacy/src/main/res/drawable/notification_icon_warning.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/ui/legacy/src/main/res/drawable/status_signature_unknown.xml b/app/ui/legacy/src/main/res/drawable/status_signature_unknown.xml index 7653ab3e5e..4ae926f452 100644 --- a/app/ui/legacy/src/main/res/drawable/status_signature_unknown.xml +++ b/app/ui/legacy/src/main/res/drawable/status_signature_unknown.xml @@ -1,6 +1,11 @@ - - + + android:strokeWidth="1" + android:strokeColor="@color/default_icon_color" /> diff --git a/app/ui/legacy/src/main/res/layout/drawer_contents.xml b/app/ui/legacy/src/main/res/layout/drawer_contents.xml index c3b229b592..066fac2f77 100644 --- a/app/ui/legacy/src/main/res/layout/drawer_contents.xml +++ b/app/ui/legacy/src/main/res/layout/drawer_contents.xml @@ -30,7 +30,7 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:padding="4dp" - android:background="?android:attr/windowBackground"> + android:background="@color/color_default_foreground"> diff --git a/app/ui/legacy/src/main/res/layout/message_container.xml b/app/ui/legacy/src/main/res/layout/message_container.xml index fb5c072b1c..1e3278c15e 100644 --- a/app/ui/legacy/src/main/res/layout/message_container.xml +++ b/app/ui/legacy/src/main/res/layout/message_container.xml @@ -1,83 +1,77 @@ + android:layout_height="match_parent" + android:orientation="vertical"> + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + tools:visibility="visible"> + android:layout_marginTop="4dp"> + android:layout_marginTop="1dp" + android:background="#d55" /> + android:textAppearance="?android:textAppearanceSmall" + android:textColor="#d55" /> + tools:text="Unsigned text content" /> + android:layout_height="wrap_content" + android:orientation="vertical"> + android:orientation="vertical" /> diff --git a/app/ui/legacy/src/main/res/layout/recipient_token_item.xml b/app/ui/legacy/src/main/res/layout/recipient_token_item.xml index 750d2990d3..8e1791be5b 100644 --- a/app/ui/legacy/src/main/res/layout/recipient_token_item.xml +++ b/app/ui/legacy/src/main/res/layout/recipient_token_item.xml @@ -50,6 +50,7 @@ android:paddingBottom="4dp" android:textAppearance="@android:style/TextAppearance.Medium" android:textSize="15sp" + android:textColor="@android:color/black" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@+id/contact_photo" app:layout_constraintTop_toTopOf="parent" diff --git a/app/ui/legacy/src/main/res/values/colors.xml b/app/ui/legacy/src/main/res/values/colors.xml index 5228d76811..4c9815c4a9 100644 --- a/app/ui/legacy/src/main/res/values/colors.xml +++ b/app/ui/legacy/src/main/res/values/colors.xml @@ -15,4 +15,13 @@ #212121 #F9F9F9 + + @lineageos.platform:color/color_default_primary + @lineageos.platform:color/color_default_primary_dark + @lineageos.platform:color/color_default_accent + @lineageos.platform:color/color_default_background + @lineageos.platform:color/color_default_foreground + @lineageos.platform:color/color_default_primary_text + @lineageos.platform:color/color_default_secondary_text + @lineageos.platform:color/color_default_divider diff --git a/app/ui/legacy/src/main/res/values/styles.xml b/app/ui/legacy/src/main/res/values/styles.xml index c49e4ac039..3f6dc1702d 100644 --- a/app/ui/legacy/src/main/res/values/styles.xml +++ b/app/ui/legacy/src/main/res/values/styles.xml @@ -3,17 +3,18 @@