diff --git a/Habitica/res/layout/fragment_report_message.xml b/Habitica/res/layout/fragment_report_message.xml index 41024dce8..b606e8dc2 100644 --- a/Habitica/res/layout/fragment_report_message.xml +++ b/Habitica/res/layout/fragment_report_message.xml @@ -3,7 +3,8 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + app:cardBackgroundColor="@color/material_card_background_color"> + + - - @@ -78,38 +80,47 @@ android:paddingEnd="24dp" android:paddingBottom="25dp"> - - - + app:cardBackgroundColor="@color/material_card_background_color" + app:cardCornerRadius="12dp" + app:strokeColor="@color/text_primary" + app:strokeWidth="1dp"> + + + + + + @@ -130,10 +142,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/spacing_medium" - android:gravity="center" + android:gravity="start" android:textColor="@color/text_ternary" android:textColorLink="?colorAccent" - android:textStyle="italic" + android:textStyle="bold" android:visibility="gone" tools:text="@string/report_user_description" /> @@ -142,7 +154,7 @@ style="@style/Caption3" android:layout_width="match_parent" android:layout_height="wrap_content" - android:gravity="center" + android:gravity="start" android:textColor="@color/text_ternary" android:textColorLink="?colorAccent" tools:text="@string/report_message_explanation" /> diff --git a/Habitica/res/values/strings.xml b/Habitica/res/values/strings.xml index 78c648415..00be5dcdc 100644 --- a/Habitica/res/values/strings.xml +++ b/Habitica/res/values/strings.xml @@ -806,13 +806,16 @@ %s Class **Only** report a post that violates the [Community Guidelines](https://habitica.com/static/community-guidelines) and/or [Terms of Service](https://habitica.com/static/terms). Inappropriately reporting a post may give you an infraction. Report %s for violation: - **Only** report a post that violates the [Community Guidelines](https://habitica.com/static/community-guidelines) and/or [Terms of Service](https://habitica.com/static/terms). Inappropriately reporting a post may give you an infraction. - **Only** report for a user that violates the [Community Guidelines](https://habitica.com/static/community-guidelines) and/or [Terms of Service](https://habitica.com/static/terms). Inappropriately reporting a user may give you an infraction. + You should only report a post that violates the [Community Guidelines](https://habitica.com/static/community-guidelines) and/or [Terms of Service](https://habitica.com/static/terms). Submitting a false report is a violation of Habitica\'s Community Guidelines. + You should only report a player that violates the [Community Guidelines](https://habitica.com/static/community-guidelines) and/or [Terms of Service](https://habitica.com/static/terms). Submitting a false report is a violation of Habitica\'s Community Guidelines. Report %s? Report Player - Reason for report (required) - This will also block %s - A blocked user cannot send you Private Messages but you will still see their posts. - Reason for report (optional) + Reason for report + Why are you reporting this message? + Why are you reporting this player? + This will also block %s + Reason for report + Report Message %s Reported Report failed, please try again later Report %s diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/ReportBottomSheetFragment.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/ReportBottomSheetFragment.kt index 9c413fc4f..2271bd0e7 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/ReportBottomSheetFragment.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/ReportBottomSheetFragment.kt @@ -76,12 +76,11 @@ class ReportBottomSheetFragment : BottomSheetDialogFragment() { else if (reportType == REPORT_TYPE_USER) reportUser() } - binding.closeButton.setOnClickListener { dismiss() } if (reportType == REPORT_TYPE_USER) { - binding.toolbarTitle.text = getString(R.string.report_player_toolbar_title, profileName) + binding.toolbarTitle.text = getString(R.string.report_player) binding.additionalExplanationTextview.visibility = View.VISIBLE - binding.infoTextInputLayout.hint = getString(R.string.report_player_hint) + binding.infoTextInputLayout.hint = getString(R.string.report_hint) binding.additionalExplanationTextview.setMarkdown( getString( R.string.report_user_description, @@ -89,14 +88,15 @@ class ReportBottomSheetFragment : BottomSheetDialogFragment() { ) ) binding.reportExplanationTextview.setMarkdown(getString(R.string.report_user_explanation)) - binding.titleTextView.text = getString(R.string.report_player_title, profileName) - binding.messageTextView.visibility = View.GONE + binding.messageTextView.text = "@$profileName" + binding.reportReasonTitle.text = getString(R.string.report_reason_title_player) } else if (reportType == REPORT_TYPE_MESSAGE) { + binding.toolbarTitle.text = getString(R.string.report_message) binding.additionalExplanationTextview.visibility = View.GONE binding.infoTextInputLayout.hint = getString(R.string.report_message_hint) binding.reportExplanationTextview.setMarkdown(getString(R.string.report_message_explanation)) - binding.titleTextView.text = getString(R.string.report_message_title, profileName) binding.messageTextView.text = messageText + binding.reportReasonTitle.text = getString(R.string.report_reason_title_message) } } diff --git a/common/src/main/res/values-night/colors.xml b/common/src/main/res/values-night/colors.xml index 7753754a8..77cc57042 100644 --- a/common/src/main/res/values-night/colors.xml +++ b/common/src/main/res/values-night/colors.xml @@ -18,6 +18,8 @@ @color/green_500 @color/blue_500 @color/teal_500 + @color/gray_5 + @color/gray_700 #40502B94 @color/gray_100 diff --git a/common/src/main/res/values/colors.xml b/common/src/main/res/values/colors.xml index 0d2d9d881..3c0fa5f09 100644 --- a/common/src/main/res/values/colors.xml +++ b/common/src/main/res/values/colors.xml @@ -158,6 +158,8 @@ @color/green_10 @color/blue_10 @color/teal_10 + @color/gray_700 + @color/gray_5 @color/gray_500 #40BDA8FF