diff --git a/CHANGELOG.md b/CHANGELOG.md index b391e1a9a..fc3c29dd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ Types of changes can be: Added/Changed/Deprecated/Removed/Fixed/Security ## [UNRELEASED] ### Added +### Changed +- improve conversation list design wand dark/light theming + ### Fixed - @ in username is allowed for phonebook sync - avoid sync when phonebook is empty @@ -24,4 +27,4 @@ Types of changes can be: Added/Changed/Deprecated/Removed/Fixed/Security - upload files from local storage - delete messages (requires Talk 11.1 on server) - UI-improvements for call screens -- new ringtone for outgoing calls \ No newline at end of file +- new ringtone for outgoing calls diff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.png index fecfe8ef2..70df96e90 100644 Binary files a/app/src/main/ic_launcher-web.png and b/app/src/main/ic_launcher-web.png differ diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java index 822dc8852..32c3d1ac1 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java @@ -2,6 +2,8 @@ * Nextcloud Talk application * * @author Mario Danic + * @author Andy Scherzinger + * Copyright (C) 2021 Andy Scherzinger * Copyright (C) 2017-2018 Mario Danic * * This program is free software: you can redistribute it and/or modify @@ -21,6 +23,8 @@ package com.nextcloud.talk.adapters.items; import android.content.Context; +import android.graphics.Color; +import android.graphics.Typeface; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.LayerDrawable; @@ -30,14 +34,15 @@ import android.view.View; import android.widget.ImageView; import android.widget.TextView; +import androidx.core.content.ContextCompat; import androidx.emoji.widget.EmojiTextView; import butterknife.BindView; import butterknife.ButterKnife; -import com.amulyakhare.textdrawable.TextDrawable; import com.facebook.drawee.backends.pipeline.Fresco; import com.facebook.drawee.interfaces.DraweeController; import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.chip.Chip; import com.nextcloud.talk.R; import com.nextcloud.talk.application.NextcloudTalkApplication; import com.nextcloud.talk.models.database.UserEntity; @@ -113,17 +118,32 @@ public class ConversationItem extends AbstractFlexibleItem 0) { + holder.dialogName.setTypeface( + holder.dialogName.getTypeface(), + Typeface.BOLD + ); + holder.dialogDate.setTypeface( + holder.dialogDate.getTypeface(), + Typeface.BOLD + ); + holder.dialogLastMessage.setTypeface( + holder.dialogLastMessage.getTypeface(), + Typeface.BOLD + ); holder.dialogUnreadBubble.setVisibility(View.VISIBLE); - if (conversation.getUnreadMessages() < 100) { + if (conversation.getUnreadMessages() < 1000) { holder.dialogUnreadBubble.setText(Long.toString(conversation.getUnreadMessages())); } else { - holder.dialogUnreadBubble.setText("99+"); + holder.dialogUnreadBubble.setText(R.string.tooManyUnreadMessages); } if (conversation.isUnreadMention() || conversation.type == Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL) { - holder.dialogUnreadBubble.setBackground(context.getDrawable(R.drawable.bubble_circle_unread_mention)); + holder.dialogUnreadBubble.setChipBackgroundColorResource(R.color.colorPrimary); + holder.dialogUnreadBubble.setTextColor(Color.WHITE); } else { - holder.dialogUnreadBubble.setBackground(context.getDrawable(R.drawable.bubble_circle_unread)); + holder.dialogUnreadBubble.setChipBackgroundColorResource(R.color.conversation_unread_bubble); + holder.dialogUnreadBubble.setTextColor( + ContextCompat.getColor(context, R.color.conversation_unread_bubble_text)); } } else { holder.dialogUnreadBubble.setVisibility(View.GONE); @@ -254,7 +274,7 @@ public class ConversationItem extends AbstractFlexibleItem + ~ * + ~ * This program is free software: you can redistribute it and/or modify + ~ * it under the terms of the GNU General Public License as published by + ~ * the Free Software Foundation, either version 3 of the License, or + ~ * at your option) any later version. + ~ * + ~ * This program is distributed in the hope that it will be useful, + ~ * but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ * GNU General Public License for more details. + ~ * + ~ * You should have received a copy of the GNU General Public License + ~ * along with this program. If not, see . + ~ */ + --> + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/bubble_circle_unread.xml b/app/src/main/res/drawable/bubble_circle_unread.xml deleted file mode 100644 index c4cb9d5ec..000000000 --- a/app/src/main/res/drawable/bubble_circle_unread.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/app/src/main/res/drawable/bubble_circle_unread_mention.xml b/app/src/main/res/drawable/bubble_circle_unread_mention.xml deleted file mode 100644 index 99e07c625..000000000 --- a/app/src/main/res/drawable/bubble_circle_unread_mention.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml index caf95f772..a931ebc5f 100644 --- a/app/src/main/res/drawable/ic_launcher_background.xml +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -1,1223 +1,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml index 8ce946fb9..34fa29932 100644 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -19,15 +19,18 @@ --> - - - + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + + + + + diff --git a/app/src/main/res/layout/controller_conversations_rv.xml b/app/src/main/res/layout/controller_conversations_rv.xml index 9397b7948..baf7bd72f 100644 --- a/app/src/main/res/layout/controller_conversations_rv.xml +++ b/app/src/main/res/layout/controller_conversations_rv.xml @@ -89,11 +89,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" - android:backgroundTint="@color/colorPrimary" android:layout_margin="16dp" + android:backgroundTint="@color/colorPrimary" + android:contentDescription="@string/nc_new_conversation" app:borderWidth="0dp" - app:tint="@color/white" - app:srcCompat="@drawable/ic_add_white_24px"/> + app:srcCompat="@drawable/ic_add_white_24px" + app:tint="@color/white" /> diff --git a/app/src/main/res/layout/rv_item_conversation_with_last_message.xml b/app/src/main/res/layout/rv_item_conversation_with_last_message.xml index cc56f2b71..949c7b6c9 100644 --- a/app/src/main/res/layout/rv_item_conversation_with_last_message.xml +++ b/app/src/main/res/layout/rv_item_conversation_with_last_message.xml @@ -2,6 +2,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2018 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -34,7 +36,7 @@ android:layout_width="@dimen/small_item_height" android:layout_height="@dimen/small_item_height" android:layout_centerVertical="true" - android:layout_marginEnd="@dimen/margin_between_elements"> + android:layout_marginEnd="@dimen/double_margin_between_elements"> + android:src="@drawable/ic_star_black_24dp" + app:tint="@color/favorite_icon_tint" + app:tintMode="src_in"/> @@ -64,7 +68,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/dialogName" - android:layout_marginTop="8dp" + android:layout_marginTop="6dp" android:layout_toEndOf="@id/dialogAvatarFrameLayout"> - + android:textAppearance="@style/ChipUnreadMessagesTextAppearance" + android:textColor="@color/conversation_unread_bubble_text" + app:chipBackgroundColor="@color/conversation_unread_bubble" + app:chipEndPadding="-1dp" + app:chipMinTouchTargetSize="0dp" + app:chipStartPadding="-3dp" + app:ensureMinTouchTargetSize="false" + tools:text="999+" /> @@ -103,9 +110,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" + android:layout_marginTop="2dp" android:ellipsize="end" android:maxLines="1" - android:textColor="@color/textColorMaxContrast" /> + android:textSize="14sp" + android:textColor="@color/textColorMaxContrast" + tools:text="yesterday"/> - + diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png index 9209d4c2b..9d2b0ff83 100644 Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png index 397045b0a..32fedff4d 100644 Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png index a8b7521c4..51b6aefa6 100644 Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index e6876466b..03ce9c884 100644 Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index fb51f6885..0d30ab720 100644 Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index b4f70325c..466a70ac2 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -2,10 +2,12 @@ - #ffffff + #deffffff - #222222 - #222222 + #121212 + #121212 #00AA00 + #373737 + #D8D8D8 + #D8D8D8 @android:color/holo_purple - #222222 + #121212 #484848 #66484848 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index a7ce271d9..c674ac8af 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -3,6 +3,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2019 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -30,7 +32,8 @@ #000000 - #FFFFFF + #DBDBDB + #222222 #D32F2F #006400 @@ -59,5 +62,5 @@ #46ffffff #BF999999 - + #FFCC00 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0ab52c40d..0228a95f1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,6 +2,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2018 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -356,4 +358,5 @@ M3.27,4.27L19.74,20.74 + 999+ diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index e40d24ebe..f27cfa3ed 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -2,6 +2,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2019 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -26,6 +28,7 @@ @color/colorPrimary @color/colorPrimary @color/colorPrimary + @color/bg_default @color/colorPrimary @color/nc_outcoming_text_default @color/nc_incoming_text_default @@ -55,6 +58,11 @@ @color/colorPrimary + +