From 751898ae192d223216965c982b54cd9729b50fa7 Mon Sep 17 00:00:00 2001 From: Arne Date: Wed, 4 Oct 2023 22:43:09 +0200 Subject: [PATCH] 1. --- build.gradle | 4 +- .../ui/ConversationsActivity.java | 6 +- .../ui/util/ConversationMenuConfigurator.java | 2 +- .../res/drawable/ic_arrow_back_black_24dp.xml | 6 ++ .../drawable/ic_attach_file_black_24dp.xml | 5 ++ .../drawable/ic_cloud_download_black_24dp.xml | 5 ++ .../res/drawable/ic_contacts_black_24dp.xml | 5 ++ .../drawable/ic_content_copy_black_24dp.xml | 5 ++ .../drawable/ic_file_download_black_24dp.xml | 5 ++ .../res/drawable/ic_group_add_black_24dp.xml | 9 +++ src/main/res/drawable/ic_group_black_24dp.xml | 5 ++ src/main/res/drawable/ic_lock_black_24dp.xml | 5 ++ .../res/drawable/ic_lock_open_black_24dp.xml | 5 ++ .../res/drawable/ic_navigation_black_24dp.xml | 5 ++ .../res/drawable/ic_person_add_black_24dp.xml | 5 ++ .../drawable/ic_phone_in_talk_black_24dp.xml | 6 ++ .../drawable/ic_qrcode_scan_black_24dp.xml | 5 ++ .../ic_question_answer_black_24dp.xml | 5 ++ .../res/drawable/ic_search_black_24dp.xml | 5 ++ src/main/res/layout/ab_title.xml | 4 +- src/main/res/layout/toolbar.xml | 8 +-- src/main/res/values/styles.xml | 6 +- src/main/res/values/themes.xml | 55 ++++++++++--------- 23 files changed, 127 insertions(+), 44 deletions(-) create mode 100644 src/main/res/drawable/ic_arrow_back_black_24dp.xml create mode 100644 src/main/res/drawable/ic_attach_file_black_24dp.xml create mode 100644 src/main/res/drawable/ic_cloud_download_black_24dp.xml create mode 100644 src/main/res/drawable/ic_contacts_black_24dp.xml create mode 100644 src/main/res/drawable/ic_content_copy_black_24dp.xml create mode 100644 src/main/res/drawable/ic_file_download_black_24dp.xml create mode 100644 src/main/res/drawable/ic_group_add_black_24dp.xml create mode 100644 src/main/res/drawable/ic_group_black_24dp.xml create mode 100644 src/main/res/drawable/ic_lock_black_24dp.xml create mode 100644 src/main/res/drawable/ic_lock_open_black_24dp.xml create mode 100644 src/main/res/drawable/ic_navigation_black_24dp.xml create mode 100644 src/main/res/drawable/ic_person_add_black_24dp.xml create mode 100644 src/main/res/drawable/ic_phone_in_talk_black_24dp.xml create mode 100644 src/main/res/drawable/ic_qrcode_scan_black_24dp.xml create mode 100644 src/main/res/drawable/ic_question_answer_black_24dp.xml create mode 100644 src/main/res/drawable/ic_search_black_24dp.xml diff --git a/build.gradle b/build.gradle index c62b489cb..5d197bf3c 100644 --- a/build.gradle +++ b/build.gradle @@ -156,8 +156,8 @@ android { targetSdkVersion 32 versionNameSuffix " beta_(2023-10-04)" // " beta_(XXXX-XX-XX)" // activate for beta versions - versionCode 138 - versionName "1.8" + versionCode 137 + versionName "1.7.5" //resConfigs "en" archivesBaseName += "-$versionName" diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java index 22989c9a3..0394fcc0b 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationsActivity.java @@ -1048,7 +1048,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio final View view = getLayoutInflater().inflate(R.layout.ab_title, null); getSupportActionBar().setCustomView(view); actionBar.setIcon(null); - actionBar.setBackgroundDrawable(new ColorDrawable(StyledAttributes.getColor(this, R.attr.colorPrimary))); + actionBar.setBackgroundDrawable(new ColorDrawable(StyledAttributes.getColor(this, R.attr.color_background_secondary))); actionBar.setDisplayShowTitleEnabled(false); actionBar.setDisplayShowCustomEnabled(true); TextView abtitle = findViewById(android.R.id.text1); @@ -1122,12 +1122,10 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio return; } } - actionBar.setDisplayShowTitleEnabled(true); actionBar.setDisplayShowCustomEnabled(false); actionBar.setTitle(null); - actionBar.setIcon(R.drawable.logo_toolbar_white); + actionBar.setIcon(R.drawable.logo_800); //actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.header_background))); - actionBar.setSubtitle(null); actionBar.setDisplayHomeAsUpEnabled(false); ActionBarUtil.resetCustomActionBarOnClickListeners(binding.toolbar); } diff --git a/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java b/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java index f7092d200..1e650685d 100644 --- a/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java +++ b/src/main/java/eu/siacs/conversations/ui/util/ConversationMenuConfigurator.java @@ -130,7 +130,7 @@ public class ConversationMenuConfigurator { } if (conversation.getNextEncryption() != Message.ENCRYPTION_NONE) { - menuSecure.setIcon(R.drawable.ic_lock_white_24dp); + menuSecure.setIcon(R.drawable.ic_lock_black_24dp); } otr.setVisible(Config.supportOtr() && activity.enableOTR()); if (conversation.getMode() == Conversation.MODE_MULTI) { diff --git a/src/main/res/drawable/ic_arrow_back_black_24dp.xml b/src/main/res/drawable/ic_arrow_back_black_24dp.xml new file mode 100644 index 000000000..37210bb72 --- /dev/null +++ b/src/main/res/drawable/ic_arrow_back_black_24dp.xml @@ -0,0 +1,6 @@ + + + diff --git a/src/main/res/drawable/ic_attach_file_black_24dp.xml b/src/main/res/drawable/ic_attach_file_black_24dp.xml new file mode 100644 index 000000000..4a2cae9a8 --- /dev/null +++ b/src/main/res/drawable/ic_attach_file_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_cloud_download_black_24dp.xml b/src/main/res/drawable/ic_cloud_download_black_24dp.xml new file mode 100644 index 000000000..ec749b392 --- /dev/null +++ b/src/main/res/drawable/ic_cloud_download_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_contacts_black_24dp.xml b/src/main/res/drawable/ic_contacts_black_24dp.xml new file mode 100644 index 000000000..fb9f7b6c7 --- /dev/null +++ b/src/main/res/drawable/ic_contacts_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_content_copy_black_24dp.xml b/src/main/res/drawable/ic_content_copy_black_24dp.xml new file mode 100644 index 000000000..a02b5d5bb --- /dev/null +++ b/src/main/res/drawable/ic_content_copy_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_file_download_black_24dp.xml b/src/main/res/drawable/ic_file_download_black_24dp.xml new file mode 100644 index 000000000..1d13784f2 --- /dev/null +++ b/src/main/res/drawable/ic_file_download_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_group_add_black_24dp.xml b/src/main/res/drawable/ic_group_add_black_24dp.xml new file mode 100644 index 000000000..d0a7a0b62 --- /dev/null +++ b/src/main/res/drawable/ic_group_add_black_24dp.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/src/main/res/drawable/ic_group_black_24dp.xml b/src/main/res/drawable/ic_group_black_24dp.xml new file mode 100644 index 000000000..79d596ce8 --- /dev/null +++ b/src/main/res/drawable/ic_group_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_lock_black_24dp.xml b/src/main/res/drawable/ic_lock_black_24dp.xml new file mode 100644 index 000000000..d833d3323 --- /dev/null +++ b/src/main/res/drawable/ic_lock_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_lock_open_black_24dp.xml b/src/main/res/drawable/ic_lock_open_black_24dp.xml new file mode 100644 index 000000000..cf40bec18 --- /dev/null +++ b/src/main/res/drawable/ic_lock_open_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_navigation_black_24dp.xml b/src/main/res/drawable/ic_navigation_black_24dp.xml new file mode 100644 index 000000000..21021e139 --- /dev/null +++ b/src/main/res/drawable/ic_navigation_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_person_add_black_24dp.xml b/src/main/res/drawable/ic_person_add_black_24dp.xml new file mode 100644 index 000000000..f6b071331 --- /dev/null +++ b/src/main/res/drawable/ic_person_add_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_phone_in_talk_black_24dp.xml b/src/main/res/drawable/ic_phone_in_talk_black_24dp.xml new file mode 100644 index 000000000..0a0193136 --- /dev/null +++ b/src/main/res/drawable/ic_phone_in_talk_black_24dp.xml @@ -0,0 +1,6 @@ + + + diff --git a/src/main/res/drawable/ic_qrcode_scan_black_24dp.xml b/src/main/res/drawable/ic_qrcode_scan_black_24dp.xml new file mode 100644 index 000000000..339ed020b --- /dev/null +++ b/src/main/res/drawable/ic_qrcode_scan_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_question_answer_black_24dp.xml b/src/main/res/drawable/ic_question_answer_black_24dp.xml new file mode 100644 index 000000000..0506325c9 --- /dev/null +++ b/src/main/res/drawable/ic_question_answer_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/drawable/ic_search_black_24dp.xml b/src/main/res/drawable/ic_search_black_24dp.xml new file mode 100644 index 000000000..890cc0927 --- /dev/null +++ b/src/main/res/drawable/ic_search_black_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/layout/ab_title.xml b/src/main/res/layout/ab_title.xml index 76d9ca0f6..0721a1a96 100644 --- a/src/main/res/layout/ab_title.xml +++ b/src/main/res/layout/ab_title.xml @@ -17,7 +17,7 @@ android:paddingTop="1dp" android:scrollHorizontally="true" android:singleLine="true" - android:textColor="@color/realwhite" /> + android:textColor="@color/realblack" /> \ No newline at end of file diff --git a/src/main/res/layout/toolbar.xml b/src/main/res/layout/toolbar.xml index 097510aee..b258cf437 100644 --- a/src/main/res/layout/toolbar.xml +++ b/src/main/res/layout/toolbar.xml @@ -1,11 +1,9 @@ - \ No newline at end of file diff --git a/src/main/res/values/styles.xml b/src/main/res/values/styles.xml index 95913cab9..9e2b45305 100644 --- a/src/main/res/values/styles.xml +++ b/src/main/res/values/styles.xml @@ -1,12 +1,12 @@ @@ -113,7 +113,7 @@ diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index ce7440788..62e2a03cc 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -11,7 +11,7 @@ --> - - - - -