From 17159fdbe0f35aa3a8b5987594261db2d562c0a0 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Fri, 6 May 2022 11:16:46 +0600 Subject: [PATCH 1/6] Update preference settings layouts --- .../ui/settings/CustomPreferenceCategory.java | 2 + .../src/main/res/layout/account_list_item.xml | 2 + .../src/main/res/layout/custom_preference.xml | 80 +++++++++++++++++ .../res/layout/custom_seekbar_preference.xml | 86 +++++++++++++++++++ .../main/res/layout/text_icon_list_item.xml | 1 + .../src/main/res/xml/about_preferences.xml | 27 ++++-- .../src/main/res/xml/account_settings.xml | 67 +++++++++++++++ .../res/xml/folder_settings_preferences.xml | 9 +- .../src/main/res/xml/general_settings.xml | 60 +++++++++++++ 9 files changed, 327 insertions(+), 7 deletions(-) create mode 100644 app/ui/legacy/src/main/res/layout/custom_preference.xml create mode 100644 app/ui/legacy/src/main/res/layout/custom_seekbar_preference.xml diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/CustomPreferenceCategory.java b/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/CustomPreferenceCategory.java index 6bde0b466e..4a901616b5 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/CustomPreferenceCategory.java +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/settings/CustomPreferenceCategory.java @@ -2,6 +2,7 @@ package com.fsck.k9.ui.settings; import android.content.Context; +import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.TextView; @@ -39,5 +40,6 @@ public class CustomPreferenceCategory extends PreferenceCategory { super.onBindViewHolder(holder); final TextView titleView = (TextView) holder.findViewById(android.R.id.title); titleView.setTextColor(ContextCompat.getColor(getContext(), R.color.color_default_primary_text)); + titleView.setTypeface(titleView.getTypeface(), Typeface.BOLD); } } diff --git a/app/ui/legacy/src/main/res/layout/account_list_item.xml b/app/ui/legacy/src/main/res/layout/account_list_item.xml index d34d78c272..43d67b4321 100644 --- a/app/ui/legacy/src/main/res/layout/account_list_item.xml +++ b/app/ui/legacy/src/main/res/layout/account_list_item.xml @@ -40,6 +40,7 @@ android:layout_marginBottom="2dp" android:textColor="@color/color_default_secondary_text" android:singleLine="true" + android:textStyle="bold" tools:text="Personal" /> diff --git a/app/ui/legacy/src/main/res/layout/custom_preference.xml b/app/ui/legacy/src/main/res/layout/custom_preference.xml new file mode 100644 index 0000000000..a049a9b64b --- /dev/null +++ b/app/ui/legacy/src/main/res/layout/custom_preference.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/app/ui/legacy/src/main/res/layout/custom_seekbar_preference.xml b/app/ui/legacy/src/main/res/layout/custom_seekbar_preference.xml new file mode 100644 index 0000000000..218f1a8ae5 --- /dev/null +++ b/app/ui/legacy/src/main/res/layout/custom_seekbar_preference.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/ui/legacy/src/main/res/layout/text_icon_list_item.xml b/app/ui/legacy/src/main/res/layout/text_icon_list_item.xml index 0a11a30e08..bbb6785ab9 100644 --- a/app/ui/legacy/src/main/res/layout/text_icon_list_item.xml +++ b/app/ui/legacy/src/main/res/layout/text_icon_list_item.xml @@ -34,6 +34,7 @@ android:singleLine="true" android:textColor="@color/color_default_secondary_text" android:textSize="14sp" + android:textStyle="bold" tools:text="List item with simple text" /> diff --git a/app/ui/legacy/src/main/res/xml/about_preferences.xml b/app/ui/legacy/src/main/res/xml/about_preferences.xml index 3087cc7e7d..3b48871e63 100644 --- a/app/ui/legacy/src/main/res/xml/about_preferences.xml +++ b/app/ui/legacy/src/main/res/xml/about_preferences.xml @@ -13,16 +13,20 @@ limitations under the License. --> - + - + - + - + - + - + diff --git a/app/ui/legacy/src/main/res/xml/account_settings.xml b/app/ui/legacy/src/main/res/xml/account_settings.xml index 1c3e0d12f7..6e9187344a 100644 --- a/app/ui/legacy/src/main/res/xml/account_settings.xml +++ b/app/ui/legacy/src/main/res/xml/account_settings.xml @@ -1,22 +1,26 @@ @@ -46,11 +53,13 @@ @@ -229,16 +264,19 @@ @@ -290,17 +335,20 @@ @@ -375,11 +432,13 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout="@layout/custom_preference"> diff --git a/app/ui/legacy/src/main/res/xml/general_settings.xml b/app/ui/legacy/src/main/res/xml/general_settings.xml index ff6eadb6ea..920f3f1d3b 100644 --- a/app/ui/legacy/src/main/res/xml/general_settings.xml +++ b/app/ui/legacy/src/main/res/xml/general_settings.xml @@ -1,6 +1,7 @@ @@ -68,6 +72,7 @@ @@ -242,10 +264,12 @@ @@ -256,6 +280,7 @@ @@ -353,12 +392,14 @@ @@ -442,12 +494,14 @@ @@ -476,17 +533,20 @@ -- GitLab From 389a6c24d3be9bd86867711c14ec3914c606a81f Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Fri, 6 May 2022 22:32:03 +0600 Subject: [PATCH 2/6] update drawer icons --- .../src/main/java/com/fsck/k9/ui/K9Drawer.kt | 2 +- .../ui/managefolders/ManageFoldersActivity.kt | 6 ++++++ .../k9/ui/onboarding/OnboardingActivity.kt | 6 ++++++ .../main/res/drawable/ic_alert_octagon.xml | 20 +++++++++---------- .../src/main/res/drawable/ic_archive.xml | 12 +++++------ .../res/drawable/ic_create_new_folder.xml | 9 +++++++++ .../main/res/drawable/ic_drafts_folder.xml | 12 +++++------ .../src/main/res/drawable/ic_folder.xml | 12 +++++------ .../legacy/src/main/res/drawable/ic_inbox.xml | 12 +++++------ .../main/res/drawable/ic_inbox_multiple.xml | 10 +++++----- .../src/main/res/drawable/ic_outbox.xml | 16 +++++++-------- .../legacy/src/main/res/drawable/ic_send.xml | 12 +++++------ .../src/main/res/drawable/ic_trash_can.xml | 10 +++++----- .../src/main/res/layout/folder_list_item.xml | 14 +++++-------- 14 files changed, 85 insertions(+), 68 deletions(-) create mode 100644 app/ui/legacy/src/main/res/drawable/ic_create_new_folder.xml diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt index a2976bb1c5..347dbaa2b2 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt @@ -286,7 +286,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K sliderView.addStickyFooterItem( PrimaryDrawerItem().apply { nameRes = R.string.folders_action - iconRes = folderIconProvider.iconFolderResId + iconRes = R.drawable.ic_create_new_folder identifier = DRAWER_ID_FOLDERS isSelectable = false } diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/managefolders/ManageFoldersActivity.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/managefolders/ManageFoldersActivity.kt index 7ee3744893..6d5edc31bf 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/managefolders/ManageFoldersActivity.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/managefolders/ManageFoldersActivity.kt @@ -2,7 +2,11 @@ package com.fsck.k9.ui.managefolders import android.app.Activity import android.content.Intent +import android.graphics.PorterDuff +import android.graphics.PorterDuffColorFilter import android.os.Bundle +import androidx.appcompat.widget.Toolbar +import androidx.core.content.ContextCompat import androidx.core.os.bundleOf import androidx.navigation.NavController import androidx.navigation.ui.AppBarConfiguration @@ -35,6 +39,8 @@ class ManageFoldersActivity : K9Activity() { val appBarConfiguration = AppBarConfiguration(topLevelDestinationIds = emptySet()) setupActionBarWithNavController(navController, appBarConfiguration) + val toolbar = findViewById(R.id.toolbar) + toolbar.navigationIcon?.mutate()?.colorFilter = PorterDuffColorFilter(ContextCompat.getColor(this, R.color.color_default_primary_text), PorterDuff.Mode.SRC_OVER) } override fun onSupportNavigateUp(): Boolean { diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt index 00952cd438..ae0ef86780 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/onboarding/OnboardingActivity.kt @@ -2,7 +2,11 @@ package com.fsck.k9.ui.onboarding import android.app.Activity import android.content.Intent +import android.graphics.PorterDuff +import android.graphics.PorterDuffColorFilter import android.os.Bundle +import androidx.appcompat.widget.Toolbar +import androidx.core.content.ContextCompat import androidx.navigation.NavController import androidx.navigation.ui.AppBarConfiguration import androidx.navigation.ui.setupActionBarWithNavController @@ -26,6 +30,8 @@ class OnboardingActivity : K9Activity() { navController = findNavController(R.id.nav_host_fragment) setupActionBarWithNavController(navController, appBarConfiguration) + val toolbar = findViewById(R.id.toolbar) + toolbar.navigationIcon?.mutate()?.colorFilter = PorterDuffColorFilter(ContextCompat.getColor(this, R.color.color_default_primary_text), PorterDuff.Mode.SRC_OVER) } override fun onSupportNavigateUp(): Boolean { 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 8896679805..c61e387d7b 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,15 +1,15 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:fillColor="@color/default_icon_color" + android:pathData="M15.73,3H8.27L3,8.27V15.73L8.27,21H15.73L21,15.73V8.27L15.73,3ZM19,14.9L14.9,19H9.1L5,14.9V9.1L9.1,5H14.9L19,9.1V14.9Z" /> + android:fillColor="@color/default_icon_color" + android:pathData="M12,17C12.5523,17 13,16.5523 13,16C13,15.4477 12.5523,15 12,15C11.4477,15 11,15.4477 11,16C11,16.5523 11.4477,17 12,17Z" /> + android:fillColor="@color/default_icon_color" + android:pathData="M11,7H13V14H11V7Z" /> 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 52e4a2c3d7..27730bbc80 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_archive.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_archive.xml @@ -1,12 +1,12 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:pathData="M20,2H4C3,2 2,2.9 2,4V7.01C2,7.73 2.43,8.35 3,8.7V20C3,21.1 4.1,22 5,22H19C19.9,22 21,21.1 21,20V8.7C21.57,8.35 22,7.73 22,7.01V4C22,2.9 21,2 20,2ZM19,20H5V9H19V20ZM20,7H4V4H20V7Z" /> + android:pathData="M15,12H9V14H15V12Z" /> diff --git a/app/ui/legacy/src/main/res/drawable/ic_create_new_folder.xml b/app/ui/legacy/src/main/res/drawable/ic_create_new_folder.xml new file mode 100644 index 0000000000..4131990bac --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_create_new_folder.xml @@ -0,0 +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 e7da3b70ad..4b972c01ed 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,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:fillColor="@color/default_icon_color" + android:pathData="M14,2H6C4.9,2 4.01,2.9 4.01,4L4,20C4,21.1 4.89,22 5.99,22H18C19.1,22 20,21.1 20,20V8L14,2ZM6,20V4H13V9H18V20H6Z" /> 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 1f96ee0bcc..c2b0185fc7 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_folder.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_folder.xml @@ -1,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:fillColor="@color/default_icon_color" + android:pathData="M9.17,6L11.17,8H20V18H4V6H9.17ZM10,4H4C2.9,4 2.01,4.9 2.01,6L2,18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V8C22,6.9 21.1,6 20,6H12L10,4Z" /> 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 f6d7df5b7c..72fa611e1d 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_inbox.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox.xml @@ -1,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:fillColor="@color/default_icon_color" + android:pathData="M19,3H5C3.9,3 3,3.9 3,5V19C3,20.1 3.89,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.9 20.1,3 19,3ZM19,19H5V16H8.56C9.25,17.19 10.53,18 12.01,18C13.49,18 14.76,17.19 15.46,16H19V19ZM19,14H14.01C14.01,15.1 13.11,16 12.01,16C10.91,16 10.01,15.1 10.01,14H5V5H19V14Z" /> 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 d8e92c2082..72b2818470 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,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:pathData="M19,3H5C3.9,3 3,3.9 3,5V12C3,13.1 3.9,14 5,14H19C20.1,14 21,13.1 21,12V5C21,3.9 20.1,3 19,3ZM19,9H15C15,10.62 13.62,12 12,12C10.38,12 9,10.62 9,9H5V5H19V9ZM15,16H21V19C21,20.1 20.1,21 19,21H5C3.9,21 3,20.1 3,19V16H9C9,17.66 10.34,19 12,19C13.66,19 15,17.66 15,16Z" /> 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 319f688f67..3de4e85a4f 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_outbox.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_outbox.xml @@ -1,12 +1,12 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:fillColor="@color/default_icon_color" + android:pathData="M11,9.83V14H13V9.83L14.59,11.41L16,10L12,6L8,10L9.41,11.41L11,9.83Z" /> + android:fillColor="@color/default_icon_color" + android:pathData="M19,3H5C3.9,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.9 20.1,3 19,3ZM19,19H5V16H8.02C8.93,17.21 10.37,18 12,18C13.63,18 15.06,17.21 15.98,16H19V19ZM19,14H14.82C14.41,15.16 13.31,16 12,16C10.69,16 9.6,15.16 9.18,14H5V5H19V14Z" /> 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 1356700783..0d6ac45f3f 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_send.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_send.xml @@ -1,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:fillColor="@color/default_icon_color" + android:pathData="M1.51,21L22.5,12L1.51,3L1.5,10L16.5,12L1.5,14L1.51,21Z" /> 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 4be2916631..42c5dac90c 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,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:pathData="M6,19C6,20.1 6.9,21 8,21H16C17.1,21 18,20.1 18,19V7H6V19ZM8,9H16V19H8V9ZM15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z" /> diff --git a/app/ui/legacy/src/main/res/layout/folder_list_item.xml b/app/ui/legacy/src/main/res/layout/folder_list_item.xml index 6a040f4359..26eeae0c85 100644 --- a/app/ui/legacy/src/main/res/layout/folder_list_item.xml +++ b/app/ui/legacy/src/main/res/layout/folder_list_item.xml @@ -9,27 +9,23 @@ android:clickable="true" android:focusable="true" android:gravity="center_vertical" - android:minHeight="56dp" android:orientation="horizontal"> -- GitLab From 3a7c09549ad4268db23434c1e652437debd51548 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Sat, 7 May 2022 00:58:33 +0600 Subject: [PATCH 3/6] Update recipient token style --- .../src/main/res/values-night/colors.xml | 1 + app/k9mail/src/main/res/values/colors.xml | 2 + app/k9mail/src/main/res/values/themes.xml | 4 +- .../main/res/drawable/bg_recipient_token.xml | 8 ++++ .../src/main/res/drawable/status_dots_1.xml | 38 +++++++++++++----- .../src/main/res/drawable/status_dots_2.xml | 39 +++++++++++++----- .../src/main/res/drawable/status_dots_3.xml | 40 ++++++++++++++----- .../main/res/layout/recipient_token_item.xml | 6 +-- 8 files changed, 100 insertions(+), 38 deletions(-) create mode 100644 app/ui/legacy/src/main/res/drawable/bg_recipient_token.xml diff --git a/app/k9mail/src/main/res/values-night/colors.xml b/app/k9mail/src/main/res/values-night/colors.xml index 2359a8b483..8b7b4c3e09 100644 --- a/app/k9mail/src/main/res/values-night/colors.xml +++ b/app/k9mail/src/main/res/values-night/colors.xml @@ -8,4 +8,5 @@ #61FFFFFF #383838 + #4b4b4b \ No newline at end of file diff --git a/app/k9mail/src/main/res/values/colors.xml b/app/k9mail/src/main/res/values/colors.xml index 124892b99a..5588940801 100644 --- a/app/k9mail/src/main/res/values/colors.xml +++ b/app/k9mail/src/main/res/values/colors.xml @@ -16,4 +16,6 @@ #DCDCDC #61000000 @android:color/white + + #ededed \ No newline at end of file diff --git a/app/k9mail/src/main/res/values/themes.xml b/app/k9mail/src/main/res/values/themes.xml index 3c0e96ed7c..ed3629eba0 100644 --- a/app/k9mail/src/main/res/values/themes.xml +++ b/app/k9mail/src/main/res/values/themes.xml @@ -113,7 +113,7 @@ @drawable/ic_person_plus @color/color_default_foreground #ffababab - #ccc + @color/color_contact_token_background @android:color/background_light #77aa22 #dd2222 @@ -239,7 +239,7 @@ @drawable/ic_person_plus @color/color_default_foreground #ffababab - #ccc + @color/color_contact_token_background @android:color/background_light #77aa22 #dd2222 diff --git a/app/ui/legacy/src/main/res/drawable/bg_recipient_token.xml b/app/ui/legacy/src/main/res/drawable/bg_recipient_token.xml new file mode 100644 index 0000000000..ec48cf744f --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/bg_recipient_token.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/app/ui/legacy/src/main/res/drawable/status_dots_1.xml b/app/ui/legacy/src/main/res/drawable/status_dots_1.xml index b4cf0d065a..b553cf42b8 100644 --- a/app/ui/legacy/src/main/res/drawable/status_dots_1.xml +++ b/app/ui/legacy/src/main/res/drawable/status_dots_1.xml @@ -1,15 +1,31 @@ - - + - + - + + android:strokeWidth="5" + android:strokeAlpha="1" + android:strokeColor="@color/default_icon_color" + android:strokeLineCap="butt" + android:strokeLineJoin="miter" /> diff --git a/app/ui/legacy/src/main/res/drawable/status_dots_2.xml b/app/ui/legacy/src/main/res/drawable/status_dots_2.xml index ebb4133cd8..cbf242a05d 100644 --- a/app/ui/legacy/src/main/res/drawable/status_dots_2.xml +++ b/app/ui/legacy/src/main/res/drawable/status_dots_2.xml @@ -1,15 +1,32 @@ - - + - + - + + android:strokeWidth="5" + android:strokeAlpha="1" + android:strokeColor="@color/default_icon_color" + android:strokeLineCap="butt" + android:strokeLineJoin="miter" /> diff --git a/app/ui/legacy/src/main/res/drawable/status_dots_3.xml b/app/ui/legacy/src/main/res/drawable/status_dots_3.xml index fe2e3915d1..cd7c8bf712 100644 --- a/app/ui/legacy/src/main/res/drawable/status_dots_3.xml +++ b/app/ui/legacy/src/main/res/drawable/status_dots_3.xml @@ -1,15 +1,33 @@ - - + - + - + + android:strokeWidth="5" + android:strokeAlpha="1" + android:strokeColor="@color/default_icon_color" + android:strokeLineCap="butt" + android:strokeLineJoin="miter" /> 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 8e1791be5b..ebb43ce237 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 @@ -9,7 +9,7 @@ android:id="@+id/background" android:layout_width="0dp" android:layout_height="0dp" - android:background="?attr/contactTokenBackgroundColor" + android:background="@drawable/bg_recipient_token" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/background_position_helper" @@ -49,8 +49,8 @@ android:paddingEnd="14dp" android:paddingBottom="4dp" android:textAppearance="@android:style/TextAppearance.Medium" - android:textSize="15sp" - android:textColor="@android:color/black" + android:textSize="16sp" + android:textColor="@color/color_default_primary_text" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@+id/contact_photo" app:layout_constraintTop_toTopOf="parent" -- GitLab From 52390c05d147b577db19856ba2027634a1b0964c Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Sat, 7 May 2022 16:14:01 +0600 Subject: [PATCH 4/6] Update drawer style --- app/k9mail/src/main/res/values/colors.xml | 2 +- app/k9mail/src/main/res/values/themes.xml | 1 + .../base/src/main/res/values-night/colors.xml | 2 + app/ui/base/src/main/res/values/colors.xml | 3 + .../src/main/java/com/fsck/k9/ui/K9Drawer.kt | 36 ++++---- .../account/AccountFallbackImageProvider.kt | 14 +--- .../fsck/k9/ui/account/AccountImageLoader.kt | 4 +- .../k9/ui/account/AccountImageModelLoader.kt | 3 +- .../main/res/drawable/header_background.xml | 2 +- .../main/res/drawable/ic_alert_octagon.xml | 37 ++++---- .../res/drawable/ic_alert_octagon_default.xml | 16 ++++ .../drawable/ic_alert_octagon_selected.xml | 16 ++++ .../src/main/res/drawable/ic_archive.xml | 34 +++++--- .../main/res/drawable/ic_archive_default.xml | 13 +++ .../main/res/drawable/ic_archive_selected.xml | 13 +++ .../src/main/res/drawable/ic_avatar.xml | 22 +++++ .../main/res/drawable/ic_avatar_default.xml | 12 +++ .../main/res/drawable/ic_avatar_selected.xml | 12 +++ .../main/res/drawable/ic_drafts_folder.xml | 31 +++++-- .../res/drawable/ic_drafts_folder_default.xml | 10 +++ .../drawable/ic_drafts_folder_selected.xml | 10 +++ .../src/main/res/drawable/ic_folder.xml | 31 +++++-- .../main/res/drawable/ic_folder_default.xml | 10 +++ .../main/res/drawable/ic_folder_selected.xml | 10 +++ .../legacy/src/main/res/drawable/ic_inbox.xml | 31 +++++-- .../main/res/drawable/ic_inbox_default.xml | 10 +++ .../main/res/drawable/ic_inbox_multiple.xml | 31 +++++-- .../drawable/ic_inbox_multiple_default.xml | 10 +++ .../drawable/ic_inbox_multiple_selected.xml | 10 +++ .../main/res/drawable/ic_inbox_selected.xml | 10 +++ .../src/main/res/drawable/ic_magnify.xml | 11 ++- .../res/drawable/ic_messagelist_answered.xml | 3 +- .../ic_messagelist_answered_forwarded.xml | 11 +-- .../res/drawable/ic_messagelist_forwarded.xml | 3 +- .../src/main/res/drawable/ic_outbox.xml | 34 +++++--- .../main/res/drawable/ic_outbox_default.xml | 13 +++ .../main/res/drawable/ic_outbox_selected.xml | 13 +++ .../legacy/src/main/res/drawable/ic_send.xml | 31 +++++-- .../src/main/res/drawable/ic_send_default.xml | 10 +++ .../main/res/drawable/ic_send_selected.xml | 10 +++ .../src/main/res/drawable/ic_trash_can.xml | 31 +++++-- .../res/drawable/ic_trash_can_default.xml | 10 +++ .../res/drawable/ic_trash_can_selected.xml | 10 +++ .../res/layout/custom_profile_drawer_item.xml | 56 ++++++------- .../res/layout/drawer_folder_list_item.xml | 42 +++++----- .../res/layout/drawer_footer_list_item.xml | 84 +++++++++++++++++++ .../src/main/res/values-night/colors.xml | 3 + app/ui/legacy/src/main/res/values/colors.xml | 6 +- app/ui/legacy/src/main/res/values/styles.xml | 12 +-- 49 files changed, 628 insertions(+), 211 deletions(-) create mode 100644 app/ui/legacy/src/main/res/drawable/ic_alert_octagon_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_alert_octagon_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_archive_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_archive_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_avatar.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_avatar_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_avatar_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_drafts_folder_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_drafts_folder_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_folder_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_folder_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_inbox_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_inbox_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_outbox_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_outbox_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_send_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_send_selected.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_trash_can_default.xml create mode 100644 app/ui/legacy/src/main/res/drawable/ic_trash_can_selected.xml create mode 100644 app/ui/legacy/src/main/res/layout/drawer_footer_list_item.xml diff --git a/app/k9mail/src/main/res/values/colors.xml b/app/k9mail/src/main/res/values/colors.xml index 5588940801..43d0c5328d 100644 --- a/app/k9mail/src/main/res/values/colors.xml +++ b/app/k9mail/src/main/res/values/colors.xml @@ -8,7 +8,7 @@ #DE000000 #99000000 #61000000 - @lineageos.platform:color/color_default_divider + #14212121 @lineageos.platform:color/color_default_gray1 @lineageos.platform:color/color_default_gray2 diff --git a/app/k9mail/src/main/res/values/themes.xml b/app/k9mail/src/main/res/values/themes.xml index ed3629eba0..6331080f77 100644 --- a/app/k9mail/src/main/res/values/themes.xml +++ b/app/k9mail/src/main/res/values/themes.xml @@ -28,6 +28,7 @@ @color/color_default_accent @color/color_default_primary_text @color/color_default_secondary_text + @color/color_default_ternary_text @drawable/edittext_cursor @style/Theme.k9.Dialog.Base diff --git a/app/ui/base/src/main/res/values-night/colors.xml b/app/ui/base/src/main/res/values-night/colors.xml index 8c640e934b..21a589d687 100644 --- a/app/ui/base/src/main/res/values-night/colors.xml +++ b/app/ui/base/src/main/res/values-night/colors.xml @@ -4,4 +4,6 @@ #DEFFFFFF #99FFFFFF #61FFFFFF + #474747 + #cfcfcf \ No newline at end of file diff --git a/app/ui/base/src/main/res/values/colors.xml b/app/ui/base/src/main/res/values/colors.xml index 9ade74ba47..a3f3f560ac 100644 --- a/app/ui/base/src/main/res/values/colors.xml +++ b/app/ui/base/src/main/res/values/colors.xml @@ -11,4 +11,7 @@ #DE000000 #99000000 #61000000 + + #ededed + #3e3e3e \ No newline at end of file diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt index 347dbaa2b2..fcda8c1925 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt @@ -8,13 +8,9 @@ import android.net.Uri import android.os.Bundle import android.util.TypedValue import android.widget.ImageView -import android.widget.LinearLayout -import android.widget.Toast import androidx.annotation.LayoutRes -import androidx.appcompat.content.res.AppCompatResources import androidx.core.content.ContextCompat import androidx.core.content.res.ResourcesCompat -import androidx.core.graphics.drawable.DrawableCompat import androidx.core.view.GravityCompat import androidx.drawerlayout.widget.DrawerLayout import androidx.swiperefreshlayout.widget.SwipeRefreshLayout @@ -57,7 +53,6 @@ import com.mikepenz.materialdrawer.util.getDrawerItem import com.mikepenz.materialdrawer.util.removeAllItems import com.mikepenz.materialdrawer.widget.AccountHeaderView import com.mikepenz.materialdrawer.widget.MaterialDrawerSliderView -import java.util.ArrayList import org.koin.androidx.viewmodel.ext.android.viewModel import org.koin.core.component.KoinComponent import org.koin.core.component.inject @@ -284,7 +279,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K private fun addFooterItems() { sliderView.addStickyFooterItem( - PrimaryDrawerItem().apply { + FooterDrawerItem().apply { nameRes = R.string.folders_action iconRes = R.drawable.ic_create_new_folder identifier = DRAWER_ID_FOLDERS @@ -293,7 +288,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K ) sliderView.addStickyFooterItem( - PrimaryDrawerItem().apply { + FooterDrawerItem().apply { nameRes = R.string.preferences_action iconRes = getResId(R.attr.iconActionSettings) identifier = DRAWER_ID_PREFERENCES @@ -372,14 +367,8 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K } folderList.unifiedInbox?.let { unifiedInbox -> - val unwrappedDrawable = - AppCompatResources.getDrawable(parent.applicationContext, R.drawable.ic_inbox_multiple) - val wrappedSelectedDrawable = DrawableCompat.wrap(unwrappedDrawable!!) - DrawableCompat.setTintList(wrappedSelectedDrawable, selectedTextColor) - val unifiedInboxItem = FolderDrawerItem().apply { - iconRes = R.drawable.ic_inbox_multiple //getResId(R.attr.iconUnifiedInbox) - selectedIcon = ImageHolder(wrappedSelectedDrawable) + iconRes = R.drawable.ic_inbox_multiple identifier = DRAWER_ID_UNIFIED_INBOX nameRes = R.string.integrated_inbox_title selectedColorInt = selectedBackgroundColor @@ -404,14 +393,8 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K val folder = displayFolder.folder val drawerId = accountOffset + folder.id - val iconId = folderIconProvider.getFolderIcon(folder.type) - val unwrappedDrawable = AppCompatResources.getDrawable(parent.applicationContext, iconId) - val wrappedSelectedDrawable = DrawableCompat.wrap(unwrappedDrawable!!) - DrawableCompat.setTintList(wrappedSelectedDrawable, selectedTextColor) - val drawerItem = FolderDrawerItem().apply { - iconRes = iconId - selectedIcon = ImageHolder(wrappedSelectedDrawable) + iconRes = folderIconProvider.getFolderIcon(folder.type) identifier = drawerId tag = folder nameText = getFolderDisplayName(folder) @@ -581,6 +564,17 @@ private class FolderDrawerItem : PrimaryDrawerItem() { override val layoutRes: Int = R.layout.drawer_folder_list_item } +private class FooterDrawerItem : PrimaryDrawerItem() { + override val layoutRes: Int = R.layout.drawer_footer_list_item + + override fun bindView(holder: ViewHolder, payloads: List) { + super.bindView(holder, payloads) + if (!isSelected) { + holder.itemView.setBackgroundColor(ContextCompat.getColor(holder.itemView.context, R.color.color_drawer_header_background)) + } + } +} + private class CustomProfileDrawerItem : ProfileDrawerItem() { override val layoutRes: Int @LayoutRes diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountFallbackImageProvider.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountFallbackImageProvider.kt index 53abd77c97..b062667633 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountFallbackImageProvider.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountFallbackImageProvider.kt @@ -2,24 +2,14 @@ package com.fsck.k9.ui.account import android.content.Context import android.graphics.drawable.Drawable +import androidx.core.content.ContextCompat import com.fsck.k9.ui.R -import com.mikepenz.iconics.IconicsDrawable -import com.mikepenz.iconics.typeface.library.fontawesome.FontAwesome -import com.mikepenz.iconics.utils.backgroundColorRes -import com.mikepenz.iconics.utils.colorInt -import com.mikepenz.iconics.utils.paddingDp -import com.mikepenz.iconics.utils.sizeDp /** * Provides a [Drawable] for the account using the account's color as background color. */ class AccountFallbackImageProvider(private val context: Context) { fun getDrawable(color: Int): Drawable { - return IconicsDrawable(context, FontAwesome.Icon.faw_user_alt).apply { - colorInt = color - backgroundColorRes = R.color.material_drawer_profile_icon - sizeDp = 56 - paddingDp = 12 - } + return ContextCompat.getDrawable(context, R.drawable.ic_avatar)!! } } diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageLoader.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageLoader.kt index 58f7d747cf..432d867e78 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageLoader.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageLoader.kt @@ -4,6 +4,7 @@ import android.content.Context import android.widget.ImageView import com.bumptech.glide.Glide import com.bumptech.glide.load.engine.DiskCacheStrategy +import com.fsck.k9.ui.R import com.fsck.k9.ui.helper.findActivity /** @@ -14,8 +15,9 @@ class AccountImageLoader(private val accountFallbackImageProvider: AccountFallba imageView.context.ifNotDestroyed { context -> Glide.with(context) .load(AccountImage(email, color)) - .placeholder(accountFallbackImageProvider.getDrawable(color)) + .placeholder(R.drawable.ic_avatar) .diskCacheStrategy(DiskCacheStrategy.NONE) + .fallback(R.drawable.ic_avatar) .dontAnimate() .into(imageView) } diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageModelLoader.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageModelLoader.kt index 4bc81b4910..7f2a0b0960 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageModelLoader.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/account/AccountImageModelLoader.kt @@ -58,8 +58,7 @@ internal class AccountImageDataFetcher( private val accountImage: AccountImage ) : DataFetcher { override fun loadData(priority: Priority, callback: DataFetcher.DataCallback) { - val bitmap = loadAccountImage() ?: createFallbackBitmap() - callback.onDataReady(bitmap) + callback.onDataReady(loadAccountImage()) } private fun loadAccountImage(): Bitmap? { diff --git a/app/ui/legacy/src/main/res/drawable/header_background.xml b/app/ui/legacy/src/main/res/drawable/header_background.xml index a85d95e6a7..d93ad4eaf3 100644 --- a/app/ui/legacy/src/main/res/drawable/header_background.xml +++ b/app/ui/legacy/src/main/res/drawable/header_background.xml @@ -1,6 +1,6 @@ - + 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 c61e387d7b..ddab9f180b 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,15 +1,22 @@ - - - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_alert_octagon_default.xml b/app/ui/legacy/src/main/res/drawable/ic_alert_octagon_default.xml new file mode 100644 index 0000000000..5f7932dc83 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_alert_octagon_default.xml @@ -0,0 +1,16 @@ + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_alert_octagon_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_alert_octagon_selected.xml new file mode 100644 index 0000000000..aaf9a8d03f --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_alert_octagon_selected.xml @@ -0,0 +1,16 @@ + + + + + + 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 27730bbc80..eb0734213b 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_archive.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_archive.xml @@ -1,12 +1,22 @@ - - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_archive_default.xml b/app/ui/legacy/src/main/res/drawable/ic_archive_default.xml new file mode 100644 index 0000000000..2084e35242 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_archive_default.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_archive_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_archive_selected.xml new file mode 100644 index 0000000000..3b34679f15 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_archive_selected.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_avatar.xml b/app/ui/legacy/src/main/res/drawable/ic_avatar.xml new file mode 100644 index 0000000000..b29e9254a6 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_avatar.xml @@ -0,0 +1,22 @@ + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_avatar_default.xml b/app/ui/legacy/src/main/res/drawable/ic_avatar_default.xml new file mode 100644 index 0000000000..00b7012ec7 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_avatar_default.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_avatar_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_avatar_selected.xml new file mode 100644 index 0000000000..778ad75b55 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_avatar_selected.xml @@ -0,0 +1,12 @@ + + + + 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 4b972c01ed..f2614bdacc 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,9 +1,22 @@ - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_drafts_folder_default.xml b/app/ui/legacy/src/main/res/drawable/ic_drafts_folder_default.xml new file mode 100644 index 0000000000..6c1178307a --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_drafts_folder_default.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_drafts_folder_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_drafts_folder_selected.xml new file mode 100644 index 0000000000..ca41f8bdb3 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_drafts_folder_selected.xml @@ -0,0 +1,10 @@ + + + + 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 c2b0185fc7..141e8f9b85 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_folder.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_folder.xml @@ -1,9 +1,22 @@ - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_folder_default.xml b/app/ui/legacy/src/main/res/drawable/ic_folder_default.xml new file mode 100644 index 0000000000..cb5006c23f --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_folder_default.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_folder_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_folder_selected.xml new file mode 100644 index 0000000000..fdbddef93f --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_folder_selected.xml @@ -0,0 +1,10 @@ + + + + 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 72fa611e1d..0f0f29095e 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_inbox.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox.xml @@ -1,9 +1,22 @@ - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_inbox_default.xml b/app/ui/legacy/src/main/res/drawable/ic_inbox_default.xml new file mode 100644 index 0000000000..680c06eaaa --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox_default.xml @@ -0,0 +1,10 @@ + + + + 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 72b2818470..a683471598 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,9 +1,22 @@ - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_default.xml b/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_default.xml new file mode 100644 index 0000000000..b66dd11feb --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_default.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_selected.xml new file mode 100644 index 0000000000..1ea1517e26 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox_multiple_selected.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_inbox_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_inbox_selected.xml new file mode 100644 index 0000000000..4e8acb824c --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_inbox_selected.xml @@ -0,0 +1,10 @@ + + + + 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 5e56103f62..4d3494f6c8 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 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:pathData="M15.7549,14.2549H14.9649L14.6849,13.9849C15.6649,12.8449 16.2549,11.3649 16.2549,9.7549C16.2549,6.1649 13.3449,3.2549 9.7549,3.2549C6.1649,3.2549 3.2549,6.1649 3.2549,9.7549C3.2549,13.3449 6.1649,16.2549 9.7549,16.2549C11.3649,16.2549 12.8449,15.6649 13.9849,14.6849L14.2549,14.9649V15.7549L19.2549,20.7449L20.7449,19.2549L15.7549,14.2549ZM9.7549,14.2549C7.2649,14.2549 5.2549,12.2449 5.2549,9.7549C5.2549,7.2649 7.2649,5.2549 9.7549,5.2549C12.2449,5.2549 14.2549,7.2649 14.2549,9.7549C14.2549,12.2449 12.2449,14.2549 9.7549,14.2549Z" /> - diff --git a/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered.xml b/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered.xml index 979cfb2057..df3550a0ab 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered.xml @@ -1,10 +1,9 @@ diff --git a/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered_forwarded.xml b/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered_forwarded.xml index a50305bd08..89af3f5917 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered_forwarded.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_messagelist_answered_forwarded.xml @@ -2,15 +2,12 @@ + android:fillColor="@color/default_icon_color" + android:pathData="M8.20553,7.94632 L14.2687,14.0095 L14.2687,10.5448 C20.3319,9.67866,22.9304,5.3478,23.7966,1.01695 C21.6312,4.04855,18.5996,5.43442,14.2687,5.43442 L14.2687,1.88312 Z" /> + android:fillColor="@color/default_icon_color" + android:pathData="M15.6928,17.3127 L9.62958,23.3759 L9.62958,19.9112 C3.56638,19.0451,0.967866,14.7142,0.101695,10.3833 C2.26712,13.4149,5.29872,14.8008,9.62958,14.8008 L9.62958,11.2495 Z" /> diff --git a/app/ui/legacy/src/main/res/drawable/ic_messagelist_forwarded.xml b/app/ui/legacy/src/main/res/drawable/ic_messagelist_forwarded.xml index 93d28c9d1f..49a489e788 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_messagelist_forwarded.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_messagelist_forwarded.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 3de4e85a4f..8c4fbb6069 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_outbox.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_outbox.xml @@ -1,12 +1,22 @@ - - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_outbox_default.xml b/app/ui/legacy/src/main/res/drawable/ic_outbox_default.xml new file mode 100644 index 0000000000..d618ab2d64 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_outbox_default.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_outbox_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_outbox_selected.xml new file mode 100644 index 0000000000..d912cc5b49 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_outbox_selected.xml @@ -0,0 +1,13 @@ + + + + + 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 0d6ac45f3f..ab27bb5a82 100644 --- a/app/ui/legacy/src/main/res/drawable/ic_send.xml +++ b/app/ui/legacy/src/main/res/drawable/ic_send.xml @@ -1,9 +1,22 @@ - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_send_default.xml b/app/ui/legacy/src/main/res/drawable/ic_send_default.xml new file mode 100644 index 0000000000..1b6a78dc86 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_send_default.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_send_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_send_selected.xml new file mode 100644 index 0000000000..f124280c10 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_send_selected.xml @@ -0,0 +1,10 @@ + + + + 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 42c5dac90c..099900dbc0 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,9 +1,22 @@ - - - + + + + + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_trash_can_default.xml b/app/ui/legacy/src/main/res/drawable/ic_trash_can_default.xml new file mode 100644 index 0000000000..53866c3e29 --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_trash_can_default.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/drawable/ic_trash_can_selected.xml b/app/ui/legacy/src/main/res/drawable/ic_trash_can_selected.xml new file mode 100644 index 0000000000..4b4530cc9a --- /dev/null +++ b/app/ui/legacy/src/main/res/drawable/ic_trash_can_selected.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/ui/legacy/src/main/res/layout/custom_profile_drawer_item.xml b/app/ui/legacy/src/main/res/layout/custom_profile_drawer_item.xml index d2f5c98ebb..78143be23d 100644 --- a/app/ui/legacy/src/main/res/layout/custom_profile_drawer_item.xml +++ b/app/ui/legacy/src/main/res/layout/custom_profile_drawer_item.xml @@ -3,23 +3,17 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="@dimen/material_drawer_item_profile" + android:layout_height="65dp" android:clipChildren="false" - android:clipToPadding="false" - android:paddingStart="@dimen/material_drawer_vertical_padding" - android:paddingLeft="@dimen/material_drawer_vertical_padding" - android:paddingEnd="@dimen/material_drawer_vertical_padding" - android:paddingRight="@dimen/material_drawer_vertical_padding"> + android:clipToPadding="false"> + + android:layout_height="48dp"> @@ -26,13 +18,15 @@ android:id="@+id/material_drawer_name" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginEnd="8dp" - android:fontFamily="sans-serif-medium" + android:layout_marginStart="32dp" + android:layout_marginEnd="16dp" android:gravity="center_vertical|start" android:singleLine="true" android:ellipsize="middle" android:textDirection="anyRtl" - android:textSize="@dimen/material_drawer_item_primary_text" + android:textSize="14sp" + android:textColor="@color/color_default_secondary_text" + android:textStyle="bold" app:layout_constraintBottom_toTopOf="@id/material_drawer_description" app:layout_constraintEnd_toStartOf="@+id/material_drawer_barrier" app:layout_constraintStart_toEndOf="@id/material_drawer_icon" @@ -44,13 +38,15 @@ android:id="@+id/material_drawer_description" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginEnd="8dp" - android:fontFamily="sans-serif" + android:layout_marginStart="32dp" + android:layout_marginEnd="16dp" android:gravity="center_vertical|start" android:lines="1" android:singleLine="true" android:textDirection="anyRtl" - android:textSize="@dimen/material_drawer_item_primary_description" + android:textSize="12sp" + android:textColor="@color/color_default_secondary_text" + android:textStyle="normal" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/material_drawer_barrier" app:layout_constraintStart_toEndOf="@id/material_drawer_icon" @@ -68,16 +64,16 @@ android:id="@+id/material_drawer_badge" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/material_drawer_padding" - android:layout_marginEnd="@dimen/material_drawer_vertical_padding" - android:fontFamily="sans-serif" + android:layout_marginStart="16dp" + android:layout_marginEnd="20dp" android:gravity="center" android:lines="1" - android:minWidth="20dp" android:paddingLeft="1dp" android:paddingRight="1dp" android:singleLine="true" - android:textSize="@dimen/material_drawer_item_primary_text" + android:textSize="14sp" + android:textColor="@color/color_default_secondary_text" + android:textStyle="normal" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/material_drawer_barrier" diff --git a/app/ui/legacy/src/main/res/layout/drawer_footer_list_item.xml b/app/ui/legacy/src/main/res/layout/drawer_footer_list_item.xml new file mode 100644 index 0000000000..04e7693379 --- /dev/null +++ b/app/ui/legacy/src/main/res/layout/drawer_footer_list_item.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + diff --git a/app/ui/legacy/src/main/res/values-night/colors.xml b/app/ui/legacy/src/main/res/values-night/colors.xml index e7c803a100..f154cb310e 100644 --- a/app/ui/legacy/src/main/res/values-night/colors.xml +++ b/app/ui/legacy/src/main/res/values-night/colors.xml @@ -8,4 +8,7 @@ #6BFFFFFF #14FFFFFF #2e2e2e + + #363636 + #2e2e2e \ No newline at end of file diff --git a/app/ui/legacy/src/main/res/values/colors.xml b/app/ui/legacy/src/main/res/values/colors.xml index a188c107bd..23c9fd51fe 100644 --- a/app/ui/legacy/src/main/res/values/colors.xml +++ b/app/ui/legacy/src/main/res/values/colors.xml @@ -26,14 +26,14 @@ #DE000000 #99000000 #61000000 - @lineageos.platform:color/color_default_divider + #14212121 @lineageos.platform:color/color_default_gray2 #6B212121 #14212121 #f5f5f5 - @lineageos.platform:color/color_default_background - + #fafafa #145DB2FF + @android:color/white diff --git a/app/ui/legacy/src/main/res/values/styles.xml b/app/ui/legacy/src/main/res/values/styles.xml index 6d95f97556..3b5be0586e 100644 --- a/app/ui/legacy/src/main/res/values/styles.xml +++ b/app/ui/legacy/src/main/res/values/styles.xml @@ -54,11 +54,11 @@