Reporting
This commit is contained in:
6
mastodon/src/main/res/drawable/bg_edittext_dark.xml
Normal file
6
mastodon/src/main/res/drawable/bg_edittext_dark.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/gray_800"/>
|
||||
<corners android:radius="10dp"/>
|
||||
<padding android:top="16dp" android:left="16dp" android:right="16dp" android:bottom="16dp"/>
|
||||
</shape>
|
||||
6
mastodon/src/main/res/drawable/bg_edittext_light.xml
Normal file
6
mastodon/src/main/res/drawable/bg_edittext_light.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/gray_25"/>
|
||||
<corners android:radius="10dp"/>
|
||||
<padding android:top="16dp" android:left="16dp" android:right="16dp" android:bottom="16dp"/>
|
||||
</shape>
|
||||
@@ -0,0 +1,3 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
|
||||
<path android:pathData="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm3.22 6.97l-4.47 4.47-1.97-1.97c-0.293-0.293-0.767-0.293-1.06 0-0.293 0.293-0.293 0.767 0 1.06l2.5 2.5c0.293 0.293 0.767 0.293 1.06 0l5-5c0.293-0.293 0.293-0.767 0-1.06-0.293-0.293-0.767-0.293-1.06 0z" android:fillColor="@color/fluent_default_icon_tint"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,3 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
|
||||
<path android:pathData="M12 22.002c5.524 0 10.002-4.478 10.002-10.001 0-5.524-4.478-10.002-10.002-10.002-5.524 0-10.002 4.478-10.002 10.002 0 5.523 4.478 10.001 10.002 10.001zm0-1.5c-4.695 0-8.502-3.806-8.502-8.501 0-4.696 3.807-8.502 8.502-8.502s8.502 3.806 8.502 8.502c0 4.695-3.807 8.501-8.502 8.501z" android:fillColor="@color/fluent_default_icon_tint"/>
|
||||
</vector>
|
||||
5
mastodon/src/main/res/drawable/ic_round_checkbox.xml
Normal file
5
mastodon/src/main/res/drawable/ic_round_checkbox.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:drawable="@drawable/ic_fluent_checkmark_circle_24_filled"/>
|
||||
<item android:drawable="@drawable/ic_fluent_radio_button_24_regular"/>
|
||||
</selector>
|
||||
12
mastodon/src/main/res/drawable/reported_overlay.xml
Normal file
12
mastodon/src/main/res/drawable/reported_overlay.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="?android:colorBackground"/>
|
||||
<stroke android:width="6.5dp" android:color="@color/success_600"/>
|
||||
<corners android:radius="7dp"/>
|
||||
<size android:width="205dp" android:height="69dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item android:drawable="@drawable/reported_text" android:gravity="center"/>
|
||||
</layer-list>
|
||||
9
mastodon/src/main/res/drawable/reported_text.xml
Normal file
9
mastodon/src/main/res/drawable/reported_text.xml
Normal file
File diff suppressed because one or more lines are too long
20
mastodon/src/main/res/layout/button_bar_one.xml
Normal file
20
mastodon/src/main/res/layout/button_bar_one.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/button_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:windowBackground"
|
||||
android:outlineProvider="bounds"
|
||||
android:elevation="3dp"
|
||||
tools:showIn="@layout/fragment_report_choice">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_next"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
style="?primaryLargeButtonStyle"
|
||||
android:text="@string/next" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/content_wrap"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<me.grishka.appkit.views.UsableRecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="vertical"
|
||||
android:clipToPadding="false"/>
|
||||
|
||||
<ViewStub android:layout="?emptyViewLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/empty"/>
|
||||
|
||||
</FrameLayout>
|
||||
16
mastodon/src/main/res/layout/fragment_report_choice.xml
Normal file
16
mastodon/src/main/res/layout/fragment_report_choice.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<me.grishka.appkit.views.UsableRecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:colorBackground"/>
|
||||
|
||||
<include layout="@layout/button_bar_one" />
|
||||
|
||||
</LinearLayout>
|
||||
35
mastodon/src/main/res/layout/fragment_report_comment.xml
Normal file
35
mastodon/src/main/res/layout/fragment_report_comment.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/item_list_header"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:hint="@string/report_comment_hint"
|
||||
android:inputType="textMultiLine|textCapSentences"
|
||||
android:gravity="top|start"
|
||||
android:minHeight="212dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<include layout="@layout/button_bar_one"/>
|
||||
|
||||
</LinearLayout>
|
||||
134
mastodon/src/main/res/layout/fragment_report_done.xml
Normal file
134
mastodon/src/main/res/layout/fragment_report_done.xml
Normal file
@@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="32dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:textAppearance="@style/m3_headline_medium"
|
||||
android:minHeight="36dp"
|
||||
android:gravity="center_vertical"
|
||||
tools:text="Title"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/ava_reported"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:clipToPadding="false">
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="104dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
tools:src="#0f0"/>
|
||||
<View
|
||||
android:id="@+id/reported_overlay"
|
||||
android:layout_width="205dp"
|
||||
android:layout_height="69dp"
|
||||
android:layout_gravity="center"
|
||||
android:elevation="2dp"
|
||||
android:background="@drawable/reported_overlay"/>
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subtitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/m3_title_medium"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
tools:text="Subtitle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/unfollow_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:textAppearance="@style/m3_title_medium"
|
||||
tools:text="@string/unfollow_user"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/unfollow_btn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
style="?secondaryLargeButtonStyle"
|
||||
android:text="@string/unfollow"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mute_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:textAppearance="@style/m3_title_medium"
|
||||
tools:text="@string/mute_user"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textAppearance="@style/m3_body_medium"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:text="@string/mute_user_explain"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/mute_btn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
style="?secondaryLargeButtonStyle"
|
||||
android:text="@string/do_mute"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/block_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:textAppearance="@style/m3_title_medium"
|
||||
tools:text="@string/block_user"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textAppearance="@style/m3_body_medium"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:text="@string/block_user_explain"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/block_btn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
style="?secondaryLargeButtonStyle"
|
||||
android:text="@string/do_block"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<include layout="@layout/button_bar_one"/>
|
||||
|
||||
</LinearLayout>
|
||||
37
mastodon/src/main/res/layout/fragment_report_posts.xml
Normal file
37
mastodon/src/main/res/layout/fragment_report_posts.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<me.grishka.appkit.views.FragmentRootLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/appkit_loader_root"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="?android:colorBackground">
|
||||
|
||||
<include layout="@layout/appkit_toolbar"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/appkit_loader_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<include layout="@layout/loading"
|
||||
android:id="@+id/loading"/>
|
||||
|
||||
<ViewStub android:layout="?errorViewLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/error"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/content_stub"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<include layout="@layout/button_bar_one"/>
|
||||
|
||||
</me.grishka.appkit.views.FragmentRootLinearLayout>
|
||||
30
mastodon/src/main/res/layout/item_list_header.xml
Normal file
30
mastodon/src/main/res/layout/item_list_header.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="32dp"
|
||||
android:paddingBottom="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:textAppearance="@style/m3_headline_medium"
|
||||
android:minHeight="36dp"
|
||||
android:gravity="center_vertical"
|
||||
tools:text="Title"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subtitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/m3_title_medium"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
tools:text="Subtitle"/>
|
||||
|
||||
</LinearLayout>
|
||||
37
mastodon/src/main/res/layout/item_report_choice.xml
Normal file
37
mastodon/src/main/res/layout/item_report_choice.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/checkbox"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:tint="?android:textColorSecondary"
|
||||
android:src="@drawable/ic_round_checkbox"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/checkbox"
|
||||
android:layout_marginStart="16dp"
|
||||
android:textAppearance="@style/m3_title_medium"
|
||||
tools:text="Title"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subtitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/checkbox"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginStart="16dp"
|
||||
android:textAppearance="@style/m3_body_medium"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
tools:text="Subtitle"/>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -16,6 +16,9 @@
|
||||
<attr name="colorTabInactive" format="color"/>
|
||||
<attr name="colorAccentLightest" format="color"/>
|
||||
|
||||
<attr name="primaryLargeButtonStyle" format="reference"/>
|
||||
<attr name="secondaryLargeButtonStyle" format="reference"/>
|
||||
|
||||
<declare-styleable name="MaxWidthFrameLayout">
|
||||
<attr name="android:maxWidth" format="dimension"/>
|
||||
</declare-styleable>
|
||||
|
||||
@@ -145,4 +145,31 @@
|
||||
<item quantity="one">Discussed %d time</item>
|
||||
<item quantity="other">Discussed %d times</item>
|
||||
</plurals>
|
||||
<string name="report_title">Report %s</string>
|
||||
<string name="report_choose_reason">Tell us what\'s going on with this post.</string>
|
||||
<string name="report_choose_reason_subtitle">Choose the best match</string>
|
||||
<string name="report_reason_personal">I don\'t like it</string>
|
||||
<string name="report_reason_personal_subtitle">It is not something you want to see</string>
|
||||
<string name="report_reason_spam">It\'s spam</string>
|
||||
<string name="report_reason_spam_subtitle">Malicious links, fake engagement, or repetitive replies</string>
|
||||
<string name="report_reason_violation">It violates server rules</string>
|
||||
<string name="report_reason_violation_subtitle">You are aware that it breaks specific rules</string>
|
||||
<string name="report_reason_other">It\'s something else</string>
|
||||
<string name="report_reason_other_subtitle">The issue does not fit into other categories</string>
|
||||
<string name="report_choose_rule">Which rules are being violated?</string>
|
||||
<string name="report_choose_rule_subtitle">Select all that apply</string>
|
||||
<string name="report_choose_posts">Are there any posts that back up this report?</string>
|
||||
<string name="report_choose_posts_subtitle">Optional. Select all that apply</string>
|
||||
<string name="report_comment_title">Is there anything else you think we should know?</string>
|
||||
<string name="report_comment_subtitle">Optional.</string>
|
||||
<string name="report_comment_hint">Additional comments</string>
|
||||
<string name="sending_report">Sending report…</string>
|
||||
<string name="report_sent_title">Thanks for reporting, we\'ll look into this.</string>
|
||||
<string name="report_sent_subtitle">While we review this, you can take action against %s.</string>
|
||||
<string name="unfollow_user">Unfollow %s</string>
|
||||
<string name="unfollow">Unfollow</string>
|
||||
<string name="mute_user_explain">You won\'t see their posts or reblogs in your home feed. They won\'t know they\'ve been muted.</string>
|
||||
<string name="block_user_explain">They will no longer be able to follow or see your posts, but thye can see if they\'ve been blocked.</string>
|
||||
<string name="report_personal_title">Don\'t want to see this?</string>
|
||||
<string name="report_personal_subtitle">When you see something you don\'t like on Mastodon, you can remove the person from your experience.</string>
|
||||
</resources>
|
||||
@@ -7,9 +7,12 @@
|
||||
<item name="appkitBackDrawable">@drawable/ic_fluent_arrow_left_24_regular</item>
|
||||
<item name="android:splitMotionEvents">false</item>
|
||||
<item name="android:windowBackground">?colorWindowBackground</item>
|
||||
<item name="android:editTextStyle">@style/Widget.Mastodon.EditText</item>
|
||||
|
||||
<item name="android:buttonStyle">@style/Widget.Mastodon.Button.Primary_DarkOnLight</item>
|
||||
<item name="secondaryButtonStyle">@style/Widget.Mastodon.Button.Secondary_DarkOnLight</item>
|
||||
<item name="primaryLargeButtonStyle">@style/Widget.Mastodon.Button.Large.Primary_DarkOnLight</item>
|
||||
<item name="secondaryLargeButtonStyle">@style/Widget.Mastodon.Button.Large.Secondary_DarkOnLight</item>
|
||||
<item name="android:colorAccent">@color/primary_700</item>
|
||||
<item name="android:colorPrimary">@color/gray_800</item>
|
||||
<item name="android:colorBackground">@color/gray_100</item>
|
||||
@@ -34,6 +37,7 @@
|
||||
<item name="colorAccentLightest">@color/primary_100</item>
|
||||
|
||||
<item name="buttonBackground">@drawable/bg_button_primary_dark_on_light</item>
|
||||
<item name="android:editTextBackground">@drawable/bg_edittext_light</item>
|
||||
|
||||
<item name="android:windowLightStatusBar">true</item>
|
||||
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
|
||||
@@ -46,9 +50,12 @@
|
||||
<item name="appkitBackDrawable">@drawable/ic_fluent_arrow_left_24_regular</item>
|
||||
<item name="android:splitMotionEvents">false</item>
|
||||
<item name="android:windowBackground">?colorWindowBackground</item>
|
||||
<item name="android:editTextStyle">@style/Widget.Mastodon.EditText</item>
|
||||
|
||||
<item name="android:buttonStyle">@style/Widget.Mastodon.Button.Primary_LightOnDark</item>
|
||||
<item name="secondaryButtonStyle">@style/Widget.Mastodon.Button.Secondary_LightOnDark</item>
|
||||
<item name="primaryLargeButtonStyle">@style/Widget.Mastodon.Button.Large.Primary_LightOnDark</item>
|
||||
<item name="secondaryLargeButtonStyle">@style/Widget.Mastodon.Button.Large.Secondary_LightOnDark</item>
|
||||
<item name="android:colorAccent">@color/primary_600</item>
|
||||
<item name="android:colorPrimary">@color/gray_50</item>
|
||||
<item name="android:colorBackground">@color/gray_700</item>
|
||||
@@ -75,6 +82,7 @@
|
||||
<item name="colorAccentLightest">@color/primary_100</item>
|
||||
|
||||
<item name="buttonBackground">@drawable/bg_button_primary_light_on_dark</item>
|
||||
<item name="android:editTextBackground">@drawable/bg_edittext_light</item>
|
||||
|
||||
<item name="android:windowLightStatusBar">false</item>
|
||||
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
|
||||
@@ -114,6 +122,13 @@
|
||||
<item name="android:paddingRight">16dp</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.Button.Large">
|
||||
<item name="android:minHeight">56dp</item>
|
||||
<item name="android:paddingLeft">32dp</item>
|
||||
<item name="android:paddingRight">32dp</item>
|
||||
<item name="android:textAppearance">@style/m3_title_medium</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.Button.Primary_DarkOnLight">
|
||||
<item name="android:background">@drawable/bg_button_primary_dark_on_light</item>
|
||||
<item name="android:textColor">@color/button_text_primary_dark_on_light</item>
|
||||
@@ -134,6 +149,32 @@
|
||||
<item name="android:textColor">@color/button_text_secondary_light_on_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.Button.Large.Primary_DarkOnLight">
|
||||
<item name="android:background">@drawable/bg_button_primary_dark_on_light</item>
|
||||
<item name="android:textColor">@color/button_text_primary_dark_on_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.Button.Large.Secondary_DarkOnLight">
|
||||
<item name="android:background">@drawable/bg_button_secondary_dark_on_light</item>
|
||||
<item name="android:textColor">@color/button_text_secondary_dark_on_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.Button.Large.Primary_LightOnDark">
|
||||
<item name="android:background">@drawable/bg_button_primary_light_on_dark</item>
|
||||
<item name="android:textColor">@color/button_text_primary_light_on_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.Button.Large.Secondary_LightOnDark">
|
||||
<item name="android:background">@drawable/bg_button_secondary_light_on_dark</item>
|
||||
<item name="android:textColor">@color/button_text_secondary_light_on_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.EditText" parent="android:Widget.Material.Light.EditText">
|
||||
<item name="android:textColorHint">?android:textColorSecondary</item>
|
||||
<item name="android:elevation">2dp</item>
|
||||
<item name="android:textAppearance">@style/m3_body_large</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Dialog.Alert" parent="android:Theme.Material.Light.Dialog.Alert">
|
||||
<item name="android:windowTitleStyle">@style/alert_title</item>
|
||||
<item name="android:dialogPreferredPadding">24dp</item>
|
||||
@@ -188,6 +229,7 @@
|
||||
<style name="m3_body_medium">
|
||||
<item name="android:textSize">14dp</item>
|
||||
<item name="android:textColor">?android:textColorPrimary</item>
|
||||
<item name="android:lineSpacingExtra">4dp</item>
|
||||
</style>
|
||||
|
||||
<style name="m3_title_medium">
|
||||
@@ -226,4 +268,10 @@
|
||||
<item name="android:textSize">24dp</item>
|
||||
<item name="android:textColor">?android:textColorPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="m3_headline_medium">
|
||||
<item name="android:textSize">28dp</item>
|
||||
<item name="android:textColor">?android:textColorPrimary</item>
|
||||
<item name="android:lineSpacingExtra">3dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user