diff --git a/vector/src/main/java/im/vector/app/core/extensions/RecyclerView.kt b/vector/src/main/java/im/vector/app/core/extensions/RecyclerView.kt index f7d51cd862..03ce44f33f 100644 --- a/vector/src/main/java/im/vector/app/core/extensions/RecyclerView.kt +++ b/vector/src/main/java/im/vector/app/core/extensions/RecyclerView.kt @@ -23,7 +23,6 @@ import androidx.recyclerview.widget.RecyclerView import com.airbnb.epoxy.EpoxyController import com.airbnb.epoxy.EpoxyVisibilityTracker import im.vector.app.R -import im.vector.app.features.themes.ThemeUtils /** * Apply a Vertical LinearLayout Manager to the recyclerView and set the adapter from the epoxy controller @@ -46,7 +45,7 @@ fun RecyclerView.configureWith(epoxyController: EpoxyController, if (showDivider) { addItemDecoration( DividerItemDecoration(context, DividerItemDecoration.VERTICAL).apply { - ContextCompat.getDrawable(context, ThemeUtils.getResourceId(context, R.drawable.divider_horizontal_light))?.let { + ContextCompat.getDrawable(context, R.drawable.divider_horizontal)?.let { setDrawable(it) } } diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/UnreadCounterBadgeView.kt b/vector/src/main/java/im/vector/app/features/home/room/list/UnreadCounterBadgeView.kt index b1d4d3e9b0..cc7271b55f 100755 --- a/vector/src/main/java/im/vector/app/features/home/room/list/UnreadCounterBadgeView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/UnreadCounterBadgeView.kt @@ -20,7 +20,6 @@ import android.util.AttributeSet import android.view.View import androidx.appcompat.widget.AppCompatTextView import im.vector.app.R -import im.vector.app.features.themes.ThemeUtils class UnreadCounterBadgeView : AppCompatTextView { @@ -38,7 +37,7 @@ class UnreadCounterBadgeView : AppCompatTextView { val bgRes = if (state.highlighted) { R.drawable.bg_unread_highlight } else { - ThemeUtils.getResourceId(context, R.drawable.bg_unread_notification_light) + R.drawable.bg_unread_notification } setBackgroundResource(bgRes) text = RoomSummaryFormatter.formatUnreadMessagesCounter(state.count) diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/widget/FabMenuView.kt b/vector/src/main/java/im/vector/app/features/home/room/list/widget/FabMenuView.kt index cf4a41f193..f9058840d2 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/widget/FabMenuView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/widget/FabMenuView.kt @@ -22,7 +22,6 @@ import androidx.constraintlayout.motion.widget.MotionLayout import androidx.core.view.isVisible import com.google.android.material.floatingactionbutton.FloatingActionButton import im.vector.app.R -import im.vector.app.features.themes.ThemeUtils import kotlinx.android.synthetic.main.motion_fab_menu_merge.view.* class FabMenuView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, @@ -37,12 +36,6 @@ class FabMenuView @JvmOverloads constructor(context: Context, attrs: AttributeSe override fun onFinishInflate() { super.onFinishInflate() - // Tint label background - listOf(createRoomItemChatLabel, createRoomItemGroupLabel) - .forEach { - it.setBackgroundResource(ThemeUtils.getResourceId(context, R.drawable.vector_label_background_light)) - } - listOf(createRoomItemChat, createRoomItemChatLabel) .forEach { it.setOnClickListener { diff --git a/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt b/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt index 38fc328f14..ef806b55b4 100644 --- a/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt +++ b/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt @@ -164,50 +164,6 @@ object ThemeUtils { return null } - /** - * Get the resource Id applied to the current theme - * - * @param c the context - * @param resourceId the resource id in the light theme - * @return the resource Id for the current theme - */ - // TODO Now that we are API 21, this is not necessary anymore - fun getResourceId(c: Context, resourceId: Int): Int { - val theme = getApplicationTheme(c) - - return when (theme) { - THEME_LIGHT_VALUE -> resourceId - THEME_DARK_VALUE -> { - return when (resourceId) { - R.drawable.bg_search_edit_text_light -> R.drawable.bg_search_edit_text_dark - R.drawable.bg_unread_notification_light -> R.drawable.bg_unread_notification_dark - R.drawable.vector_label_background_light -> R.drawable.vector_label_background_dark - R.drawable.divider_horizontal_light -> R.drawable.divider_horizontal_dark - else -> { - Timber.w("Warning, missing case for wanted drawable in dark theme") - resourceId - } - } - } - THEME_BLACK_VALUE -> { - return when (resourceId) { - R.drawable.bg_search_edit_text_light -> R.drawable.bg_search_edit_text_black - R.drawable.bg_unread_notification_light -> R.drawable.bg_unread_notification_black - R.drawable.vector_label_background_light -> R.drawable.vector_label_background_black - R.drawable.divider_horizontal_light -> R.drawable.divider_horizontal_black - else -> { - Timber.w("Warning, missing case for wanted drawable in black theme") - resourceId - } - } - } - else -> { - Timber.w("Warning, missing theme: $theme") - resourceId - } - } - } - /** * Update the menu icons colors * diff --git a/vector/src/main/res/color/primary_text_color_selector.xml b/vector/src/main/res/color/primary_text_color_selector.xml new file mode 100644 index 0000000000..3ad723c976 --- /dev/null +++ b/vector/src/main/res/color/primary_text_color_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/vector/src/main/res/color/primary_text_color_selector_dark.xml b/vector/src/main/res/color/primary_text_color_selector_dark.xml deleted file mode 100644 index 7c4c853b58..0000000000 --- a/vector/src/main/res/color/primary_text_color_selector_dark.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/color/primary_text_color_selector_light.xml b/vector/src/main/res/color/primary_text_color_selector_light.xml deleted file mode 100644 index 8d4c0d06c4..0000000000 --- a/vector/src/main/res/color/primary_text_color_selector_light.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/color/primary_text_color_selector_status.xml b/vector/src/main/res/color/primary_text_color_selector_status.xml deleted file mode 100644 index 9bbc84c321..0000000000 --- a/vector/src/main/res/color/primary_text_color_selector_status.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable-hdpi/riotx_logo.png b/vector/src/main/res/drawable-hdpi/riotx_logo.png deleted file mode 100644 index 8d6e3454b8..0000000000 Binary files a/vector/src/main/res/drawable-hdpi/riotx_logo.png and /dev/null differ diff --git a/vector/src/main/res/drawable-mdpi/riotx_logo.png b/vector/src/main/res/drawable-mdpi/riotx_logo.png deleted file mode 100644 index 5c45ebabaf..0000000000 Binary files a/vector/src/main/res/drawable-mdpi/riotx_logo.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xhdpi/riotx_logo.png b/vector/src/main/res/drawable-xhdpi/riotx_logo.png deleted file mode 100644 index 651ff38e09..0000000000 Binary files a/vector/src/main/res/drawable-xhdpi/riotx_logo.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xxhdpi/ic_file_download_white.png b/vector/src/main/res/drawable-xxhdpi/ic_file_download_white.png deleted file mode 100755 index 78aa591668..0000000000 Binary files a/vector/src/main/res/drawable-xxhdpi/ic_file_download_white.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xxhdpi/ic_report_black.png b/vector/src/main/res/drawable-xxhdpi/ic_report_black.png deleted file mode 100755 index 8ab8241ae1..0000000000 Binary files a/vector/src/main/res/drawable-xxhdpi/ic_report_black.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xxhdpi/newmessages.png b/vector/src/main/res/drawable-xxhdpi/newmessages.png deleted file mode 100755 index 38d861af0a..0000000000 Binary files a/vector/src/main/res/drawable-xxhdpi/newmessages.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xxhdpi/riotx_logo.png b/vector/src/main/res/drawable-xxhdpi/riotx_logo.png deleted file mode 100644 index 1652b970e7..0000000000 Binary files a/vector/src/main/res/drawable-xxhdpi/riotx_logo.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xxhdpi/scrolldown.png b/vector/src/main/res/drawable-xxhdpi/scrolldown.png deleted file mode 100755 index abeea3f07f..0000000000 Binary files a/vector/src/main/res/drawable-xxhdpi/scrolldown.png and /dev/null differ diff --git a/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png b/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png deleted file mode 100644 index fd944daf8f..0000000000 Binary files a/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png and /dev/null differ diff --git a/vector/src/main/res/drawable/bg_search_edit_text_black.xml b/vector/src/main/res/drawable/bg_search_edit_text_black.xml deleted file mode 100644 index 741e3c031c..0000000000 --- a/vector/src/main/res/drawable/bg_search_edit_text_black.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/bg_search_edit_text_dark.xml b/vector/src/main/res/drawable/bg_search_edit_text_dark.xml deleted file mode 100644 index d65c331ed2..0000000000 --- a/vector/src/main/res/drawable/bg_search_edit_text_dark.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/bg_search_edit_text_light.xml b/vector/src/main/res/drawable/bg_search_edit_text_light.xml deleted file mode 100644 index ba0da29660..0000000000 --- a/vector/src/main/res/drawable/bg_search_edit_text_light.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/bg_unread_notification_dark.xml b/vector/src/main/res/drawable/bg_unread_notification.xml similarity index 70% rename from vector/src/main/res/drawable/bg_unread_notification_dark.xml rename to vector/src/main/res/drawable/bg_unread_notification.xml index 7f3669c55f..bba5fcdf2e 100644 --- a/vector/src/main/res/drawable/bg_unread_notification_dark.xml +++ b/vector/src/main/res/drawable/bg_unread_notification.xml @@ -5,5 +5,5 @@ - + \ No newline at end of file diff --git a/vector/src/main/res/drawable/bg_unread_notification_black.xml b/vector/src/main/res/drawable/bg_unread_notification_black.xml deleted file mode 100644 index 7059985f47..0000000000 --- a/vector/src/main/res/drawable/bg_unread_notification_black.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/bg_unread_notification_light.xml b/vector/src/main/res/drawable/bg_unread_notification_light.xml deleted file mode 100644 index 944af91a10..0000000000 --- a/vector/src/main/res/drawable/bg_unread_notification_light.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/direct_chat_circle_black.xml b/vector/src/main/res/drawable/direct_chat_circle_black.xml deleted file mode 100644 index 3c45c0231f..0000000000 --- a/vector/src/main/res/drawable/direct_chat_circle_black.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/direct_chat_circle_dark.xml b/vector/src/main/res/drawable/direct_chat_circle_dark.xml deleted file mode 100644 index 1e9a4500f4..0000000000 --- a/vector/src/main/res/drawable/direct_chat_circle_dark.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/direct_chat_circle_light.xml b/vector/src/main/res/drawable/direct_chat_circle_light.xml deleted file mode 100644 index 88bb178a9b..0000000000 --- a/vector/src/main/res/drawable/direct_chat_circle_light.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/direct_chat_circle_status.xml b/vector/src/main/res/drawable/direct_chat_circle_status.xml deleted file mode 100644 index 2d527d0b4d..0000000000 --- a/vector/src/main/res/drawable/direct_chat_circle_status.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/divider_horizontal_dark.xml b/vector/src/main/res/drawable/divider_horizontal.xml similarity index 62% rename from vector/src/main/res/drawable/divider_horizontal_dark.xml rename to vector/src/main/res/drawable/divider_horizontal.xml index 24a9307799..ae2f61e60a 100644 --- a/vector/src/main/res/drawable/divider_horizontal_dark.xml +++ b/vector/src/main/res/drawable/divider_horizontal.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/vector/src/main/res/drawable/divider_horizontal_black.xml b/vector/src/main/res/drawable/divider_horizontal_black.xml deleted file mode 100644 index 43a68bbe2d..0000000000 --- a/vector/src/main/res/drawable/divider_horizontal_black.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/divider_horizontal_light.xml b/vector/src/main/res/drawable/divider_horizontal_light.xml deleted file mode 100644 index 4b215ecaa4..0000000000 --- a/vector/src/main/res/drawable/divider_horizontal_light.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/highlighted_message_background_dark.xml b/vector/src/main/res/drawable/highlighted_message_background.xml similarity index 90% rename from vector/src/main/res/drawable/highlighted_message_background_dark.xml rename to vector/src/main/res/drawable/highlighted_message_background.xml index 4448f01d0e..5975ff06b3 100644 --- a/vector/src/main/res/drawable/highlighted_message_background_dark.xml +++ b/vector/src/main/res/drawable/highlighted_message_background.xml @@ -9,7 +9,7 @@ - + diff --git a/vector/src/main/res/drawable/highlighted_message_background_black.xml b/vector/src/main/res/drawable/highlighted_message_background_black.xml deleted file mode 100644 index ebb4c81dd9..0000000000 --- a/vector/src/main/res/drawable/highlighted_message_background_black.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/highlighted_message_background_light.xml b/vector/src/main/res/drawable/highlighted_message_background_light.xml deleted file mode 100644 index 7b53b3ffe3..0000000000 --- a/vector/src/main/res/drawable/highlighted_message_background_light.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/line_divider_dark.xml b/vector/src/main/res/drawable/line_divider.xml similarity index 75% rename from vector/src/main/res/drawable/line_divider_dark.xml rename to vector/src/main/res/drawable/line_divider.xml index ee2a3a0972..004243a214 100644 --- a/vector/src/main/res/drawable/line_divider_dark.xml +++ b/vector/src/main/res/drawable/line_divider.xml @@ -6,6 +6,6 @@ android:width="1dp" android:height="1dp" /> - + \ No newline at end of file diff --git a/vector/src/main/res/drawable/line_divider_light.xml b/vector/src/main/res/drawable/line_divider_light.xml deleted file mode 100644 index cfaebbda7d..0000000000 --- a/vector/src/main/res/drawable/line_divider_light.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_background_room_alias_dark.xml b/vector/src/main/res/drawable/pill_background_room_alias_dark.xml deleted file mode 100644 index b86cbd3b78..0000000000 --- a/vector/src/main/res/drawable/pill_background_room_alias_dark.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_background_room_alias_light.xml b/vector/src/main/res/drawable/pill_background_room_alias_light.xml deleted file mode 100644 index 9a67df1182..0000000000 --- a/vector/src/main/res/drawable/pill_background_room_alias_light.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_background_room_alias_status.xml b/vector/src/main/res/drawable/pill_background_room_alias_status.xml deleted file mode 100644 index 9a67df1182..0000000000 --- a/vector/src/main/res/drawable/pill_background_room_alias_status.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_background_user_id_light.xml b/vector/src/main/res/drawable/pill_background_user_id_light.xml deleted file mode 100644 index 9a67df1182..0000000000 --- a/vector/src/main/res/drawable/pill_background_user_id_light.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_background_user_id_status.xml b/vector/src/main/res/drawable/pill_background_user_id_status.xml deleted file mode 100644 index 9a67df1182..0000000000 --- a/vector/src/main/res/drawable/pill_background_user_id_status.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_background_user_id_dark.xml b/vector/src/main/res/drawable/pill_receipt.xml similarity index 70% rename from vector/src/main/res/drawable/pill_background_user_id_dark.xml rename to vector/src/main/res/drawable/pill_receipt.xml index b86cbd3b78..4ee57ebe61 100644 --- a/vector/src/main/res/drawable/pill_background_user_id_dark.xml +++ b/vector/src/main/res/drawable/pill_receipt.xml @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_receipt_black.xml b/vector/src/main/res/drawable/pill_receipt_black.xml deleted file mode 100644 index e63903550d..0000000000 --- a/vector/src/main/res/drawable/pill_receipt_black.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_receipt_dark.xml b/vector/src/main/res/drawable/pill_receipt_dark.xml deleted file mode 100644 index 5442f13985..0000000000 --- a/vector/src/main/res/drawable/pill_receipt_dark.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/pill_receipt_light.xml b/vector/src/main/res/drawable/pill_receipt_light.xml deleted file mode 100644 index 66875dc1b1..0000000000 --- a/vector/src/main/res/drawable/pill_receipt_light.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/shadow_bottom_dark.xml b/vector/src/main/res/drawable/shadow_bottom_dark.xml deleted file mode 100644 index f56addee06..0000000000 --- a/vector/src/main/res/drawable/shadow_bottom_dark.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/shadow_bottom_light.xml b/vector/src/main/res/drawable/shadow_bottom_light.xml deleted file mode 100755 index c86eaf3b3b..0000000000 --- a/vector/src/main/res/drawable/shadow_bottom_light.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/shadow_top_dark.xml b/vector/src/main/res/drawable/shadow_top_dark.xml deleted file mode 100644 index 7b2d95e2b6..0000000000 --- a/vector/src/main/res/drawable/shadow_top_dark.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/shadow_top_light.xml b/vector/src/main/res/drawable/shadow_top_light.xml deleted file mode 100755 index 03412fc414..0000000000 --- a/vector/src/main/res/drawable/shadow_top_light.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_background_fab_label.xml b/vector/src/main/res/drawable/vector_background_fab_label.xml deleted file mode 100644 index 2c13ba76ee..0000000000 --- a/vector/src/main/res/drawable/vector_background_fab_label.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_background_fab_label_light.xml b/vector/src/main/res/drawable/vector_background_fab_label_light.xml deleted file mode 100644 index b65b9b00cf..0000000000 --- a/vector/src/main/res/drawable/vector_background_fab_label_light.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_label_background_light.xml b/vector/src/main/res/drawable/vector_label_background.xml similarity index 66% rename from vector/src/main/res/drawable/vector_label_background_light.xml rename to vector/src/main/res/drawable/vector_label_background.xml index b09b0c7d7d..e721c1dd69 100644 --- a/vector/src/main/res/drawable/vector_label_background_light.xml +++ b/vector/src/main/res/drawable/vector_label_background.xml @@ -4,10 +4,10 @@ - + + android:color="?riotx_fab_label_stroke" /> \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_label_background_black.xml b/vector/src/main/res/drawable/vector_label_background_black.xml deleted file mode 100644 index dc85b06057..0000000000 --- a/vector/src/main/res/drawable/vector_label_background_black.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_label_background_dark.xml b/vector/src/main/res/drawable/vector_label_background_dark.xml deleted file mode 100644 index 1e375fbf90..0000000000 --- a/vector/src/main/res/drawable/vector_label_background_dark.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_background.xml b/vector/src/main/res/drawable/vector_tabbar_background.xml new file mode 100644 index 0000000000..a1e1e7ae1f --- /dev/null +++ b/vector/src/main/res/drawable/vector_tabbar_background.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_background_dark.xml b/vector/src/main/res/drawable/vector_tabbar_background_dark.xml deleted file mode 100644 index 74b4a8c4c3..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_background_dark.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_background_group_light.xml b/vector/src/main/res/drawable/vector_tabbar_background_group_light.xml deleted file mode 100644 index 3166002c08..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_background_group_light.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_background_light.xml b/vector/src/main/res/drawable/vector_tabbar_background_light.xml deleted file mode 100644 index 432be45bbe..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_background_light.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_background_status.xml b/vector/src/main/res/drawable/vector_tabbar_background_status.xml deleted file mode 100644 index f0f38a6439..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_background_status.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_selected_background.xml b/vector/src/main/res/drawable/vector_tabbar_selected_background.xml new file mode 100644 index 0000000000..c4a7ae037c --- /dev/null +++ b/vector/src/main/res/drawable/vector_tabbar_selected_background.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_selected_background_dark.xml b/vector/src/main/res/drawable/vector_tabbar_selected_background_dark.xml deleted file mode 100644 index ce8ba4eb8d..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_selected_background_dark.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_selected_background_group_light.xml b/vector/src/main/res/drawable/vector_tabbar_selected_background_group_light.xml deleted file mode 100644 index a46d469734..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_selected_background_group_light.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_selected_background_light.xml b/vector/src/main/res/drawable/vector_tabbar_selected_background_light.xml deleted file mode 100644 index 9625ac483f..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_selected_background_light.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_selected_background_status.xml b/vector/src/main/res/drawable/vector_tabbar_selected_background_status.xml deleted file mode 100644 index ee338a5a39..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_selected_background_status.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_unselected_background_group_light.xml b/vector/src/main/res/drawable/vector_tabbar_unselected_background.xml similarity index 68% rename from vector/src/main/res/drawable/vector_tabbar_unselected_background_group_light.xml rename to vector/src/main/res/drawable/vector_tabbar_unselected_background.xml index b2d360f2e0..72fbda740c 100644 --- a/vector/src/main/res/drawable/vector_tabbar_unselected_background_group_light.xml +++ b/vector/src/main/res/drawable/vector_tabbar_unselected_background.xml @@ -1,9 +1,8 @@ - - + \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_unselected_background_dark.xml b/vector/src/main/res/drawable/vector_tabbar_unselected_background_dark.xml deleted file mode 100644 index cb302f5111..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_unselected_background_dark.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_unselected_background_light.xml b/vector/src/main/res/drawable/vector_tabbar_unselected_background_light.xml deleted file mode 100644 index a7a286e724..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_unselected_background_light.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/drawable/vector_tabbar_unselected_background_status.xml b/vector/src/main/res/drawable/vector_tabbar_unselected_background_status.xml deleted file mode 100644 index e2c7613c50..0000000000 --- a/vector/src/main/res/drawable/vector_tabbar_unselected_background_status.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/vector/src/main/res/layout/item_timeline_event_base.xml b/vector/src/main/res/layout/item_timeline_event_base.xml index 80d257fbfd..853ece47e1 100644 --- a/vector/src/main/res/layout/item_timeline_event_base.xml +++ b/vector/src/main/res/layout/item_timeline_event_base.xml @@ -13,7 +13,7 @@ android:layout_height="match_parent" android:layout_alignBottom="@+id/informationBottom" android:layout_alignParentTop="true" - android:background="?riotx_highlighted_message_background" /> + android:background="@drawable/highlighted_message_background" /> + android:background="@drawable/highlighted_message_background" /> + android:background="@drawable/highlighted_message_background" /> \ No newline at end of file diff --git a/vector/src/main/res/layout/view_read_receipts.xml b/vector/src/main/res/layout/view_read_receipts.xml index cb536884a1..3e4c49fe00 100644 --- a/vector/src/main/res/layout/view_read_receipts.xml +++ b/vector/src/main/res/layout/view_read_receipts.xml @@ -10,7 +10,7 @@ android:id="@+id/receiptMore" android:layout_width="wrap_content" android:layout_height="18dp" - android:background="?vctr_pill_receipt" + android:background="@drawable/pill_receipt" android:gravity="center" android:importantForAccessibility="no" android:paddingStart="4dp" diff --git a/vector/src/main/res/values/attrs.xml b/vector/src/main/res/values/attrs.xml index dd2fbfce7a..8c71fb26b2 100644 --- a/vector/src/main/res/values/attrs.xml +++ b/vector/src/main/res/values/attrs.xml @@ -8,32 +8,21 @@ - - - - - - - - - - - @@ -42,53 +31,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vector/src/main/res/values/colors_riot.xml b/vector/src/main/res/values/colors_riot.xml index faecfb66d3..5b85b71dd5 100644 --- a/vector/src/main/res/values/colors_riot.xml +++ b/vector/src/main/res/values/colors_riot.xml @@ -12,23 +12,6 @@ #FFC7C7C7 #FF999999 - - #BD79CC - #744C7F - #F8A15F - #D97051 - @color/accent_color_light - #5EA584 - #a6d0e5 - - #81bddb - - - #7F03b381 - #7F03b381 - #7F03b381 - #7F586C7B - @@ -63,19 +46,22 @@ #FF586C7B + #EEEFEF #FF61708B #FF22262E - @color/primary_color_light - @color/primary_color_dark - @color/primary_color_status + + @color/riotx_android_secondary_light + @color/riotx_android_secondary_dark + @color/riotx_android_secondary_black - @color/primary_color_light - @color/primary_color_dark - @color/primary_color_status + + @color/riotx_background_light + @color/riotx_background_dark + @color/riotx_background_black #FFFFFF @@ -85,6 +71,9 @@ #CCDDDDDD + + + #FF2E2F32 #FF9E9E9E @@ -106,10 +95,6 @@ #7F70808D @color/riot_primary_text_color_status - - #FFDDDDDD - @android:color/transparent - #2f9edb @color/vector_fuchsia_color diff --git a/vector/src/main/res/values/colors_riotx.xml b/vector/src/main/res/values/colors_riotx.xml index 4116e76f5d..de415bae1b 100644 --- a/vector/src/main/res/values/colors_riotx.xml +++ b/vector/src/main/res/values/colors_riotx.xml @@ -163,6 +163,11 @@ #FF181B21 #FF181B21 + + #1EFFFFFF + @color/black + @color/black + #FF2E2F32 #FFA1B2D1 diff --git a/vector/src/main/res/values/styles_riot.xml b/vector/src/main/res/values/styles_riot.xml index 72801f02c4..b3430a59c8 100644 --- a/vector/src/main/res/values/styles_riot.xml +++ b/vector/src/main/res/values/styles_riot.xml @@ -15,11 +15,6 @@ 0dp - - - - - - - - - - + + \ No newline at end of file diff --git a/vector/src/main/res/values/theme_black.xml b/vector/src/main/res/values/theme_black.xml index 0c78469c3d..b39ef440c3 100644 --- a/vector/src/main/res/values/theme_black.xml +++ b/vector/src/main/res/values/theme_black.xml @@ -29,6 +29,7 @@ @color/riotx_fab_secondary_bg_black @color/riotx_fab_secondary_color_black @color/riotx_fab_label_bg_black + @color/riotx_fab_label_stroke_black @color/riotx_fab_label_color_black @color/riotx_touch_guard_bg_black @color/riotx_attachment_selector_background_black @@ -38,9 +39,6 @@ @color/riotx_bottom_nav_icon_color_black - - @drawable/highlighted_message_background_black - @color/riotx_accent @@ -63,7 +61,6 @@ @style/VectorButtonStyle @style/VectorToolbarStyle - @style/VectorAlertDialogStyleDark @color/riotx_links @@ -73,26 +70,17 @@ #FF090A0C - - @color/primary_color_black - - @color/primary_color_dark_black @color/riotx_list_bottom_sheet_divider_color_black @color/riotx_header_panel_background_black - @color/list_divider_color_black - #FF4D4D4D - @drawable/pill_receipt_black - @color/riot_primary_background_color_black @color/riotx_bottom_nav_background_color_black @color/riotx_bottom_nav_background_border_color_black - @drawable/direct_chat_circle_black - diff --git a/vector/src/main/res/values/theme_light.xml b/vector/src/main/res/values/theme_light.xml index cfd7b7cc81..a4d36763fe 100644 --- a/vector/src/main/res/values/theme_light.xml +++ b/vector/src/main/res/values/theme_light.xml @@ -27,6 +27,7 @@ @color/riotx_fab_secondary_bg_light @color/riotx_fab_secondary_color_light @color/riotx_fab_label_bg_light + @color/riotx_fab_label_stroke_light @color/riotx_fab_label_color_light @color/riotx_touch_guard_bg_light @color/riotx_keys_backup_banner_accent_color_light @@ -37,9 +38,6 @@ @color/riotx_bottom_nav_icon_color_light - - @drawable/highlighted_message_background_light - @color/riotx_accent @@ -83,40 +81,24 @@ @color/riotx_text_primary_light @color/riotx_links - - @color/primary_hint_text_color_light - - @color/primary_color_light - @color/primary_color_dark_light - @color/default_text_hint_color_light - - #FF2E3648 #61708B @color/vector_fuchsia_color @color/riot_primary_text_color_light #FF61708b @color/accent_color_light @color/riotx_text_secondary_light - @color/vector_fuchsia_color - @color/primary_color_light - #333C3C3C - @color/accent_color_light #FFEEEEEE #FF000000 - #FFF2F2F2 + + @color/riot_primary_text_color_light + @color/riot_primary_text_color_disabled_light #FFF2F2F2 - - @color/tab_bar_selected_background_color_light - - - @color/tab_bar_unselected_background_color_light - @@ -129,20 +111,9 @@ @color/riotx_list_bottom_sheet_divider_color_light @color/riotx_header_panel_background_light - @color/list_divider_color_light - - - #80ffffff - #33000000 - - #FFF2F2F2 - - - @color/riot_primary_text_color_light - #FF61708b @@ -150,32 +121,8 @@ @android:color/black @color/riotx_accent - @android:color/white - - - @drawable/line_divider_light - @drawable/shadow_bottom_light - @drawable/shadow_top_light - - @drawable/vector_tabbar_selected_background_light - - - @drawable/vector_tabbar_unselected_background_light - - @drawable/vector_tabbar_background_light - - @drawable/pill_background_user_id_light - @drawable/pill_background_room_alias_light - - @color/riot_primary_text_color_light - @android:color/white - - @drawable/pill_receipt_light - - @drawable/direct_chat_circle_light - - #FFD3EFE1 + @color/list_divider_color_light @@ -203,13 +150,16 @@ @null - @style/Vector.TabView.Light - @style/Vector.TabView.Light + @style/Vector.TabView + @style/Vector.TabView @style/Vector.TabText @style/Vector.TabText + @color/tab_bar_selected_background_color_light + @color/tab_bar_unselected_background_color_light + @style/PreferenceThemeOverlay.v14.Material @@ -236,9 +186,4 @@ - diff --git a/vector/src/main/res/values/theme_status.xml b/vector/src/main/res/values/theme_status.xml index 06394ad049..6a008e62f3 100644 --- a/vector/src/main/res/values/theme_status.xml +++ b/vector/src/main/res/values/theme_status.xml @@ -9,7 +9,7 @@ @color/primary_color_status @color/accent_color_status - @color/primary_text_color_selector_status + @color/primary_text_color_selector @color/riot_secondary_text_color_status @color/riot_tertiary_text_color_status @@ -33,86 +33,35 @@ @color/primary_color_dark_status @color/primary_color_dark_status - - @color/primary_hint_text_color_light - - @color/primary_color_status - @color/primary_color_dark_status - - - @color/default_text_hint_color_light - - ?colorAccent #61708B #FFFF4444 #70879d #adadbe #AECDF9 #b3e8d2 - @color/vector_fuchsia_color - @color/primary_color_status - #333C3C3C - #AECDF9 #FFEEEEEE - #FFF2F2F2 + + @color/riot_primary_text_color_status + @color/riot_primary_text_color_disabled_status #FFF2F2F2 - - @color/tab_bar_selected_background_color_status - - - @color/tab_bar_unselected_background_color_status - #FFF6F6F6 #7F3C3C3C #4D3C3C3C - - #80ffffff - #33000000 - - #FFF2F2F2 - - - @color/riot_primary_text_color_status - #a0a29f @color/accent_color_status @color/riotx_accent - @android:color/white - - - - @drawable/line_divider_light - @drawable/shadow_bottom_light - @drawable/shadow_top_light - - @drawable/vector_tabbar_selected_background_status - - - @drawable/vector_tabbar_unselected_background_status - - @drawable/vector_tabbar_background_status - - @drawable/pill_background_user_id_status - @drawable/pill_background_room_alias_status - - @color/riot_primary_text_color_status - @android:color/white - - @drawable/direct_chat_circle_status - - #FFF7F7F7 @@ -139,14 +88,13 @@ @null - - @style/Vector.TabView.Status - @style/Vector.TabView.Status - @style/Vector.TabText @style/Vector.TabText + @color/tab_bar_selected_background_color_status + @color/tab_bar_unselected_background_color_status + @style/PreferenceThemeOverlay.v14.Material @@ -155,9 +103,4 @@ -