diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-12 09:20:33 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-12 09:20:33 +0000 |
commit | b1b3642ca8ceb159282dc684be2d75afa4b37a91 (patch) | |
tree | 9a3705247f903aed74c158c9ffb3f56f0a1b5e19 /app/src/main/res/values | |
parent | 4df18af91447d7fcd9768f0b5a8f71974f826280 (diff) | |
download | infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.tar infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.tar.gz infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.tar.bz2 infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.tar.lz infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.tar.xz infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.tar.zst infinity-for-reddit-b1b3642ca8ceb159282dc684be2d75afa4b37a91.zip |
Deleting and editing posts are now available.
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r-- | app/src/main/res/values/colors.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 13 |
3 files changed, 25 insertions, 1 deletions
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 9d88ac4f..bf91858c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -12,7 +12,7 @@ <color name="primaryTextColor">#000000</color> - <color name="textColorPrimaryDark">@color/colorPrimaryDark</color> + <color name="colorPrimaryDarkDayNightTheme">@color/colorPrimaryDark</color> <color name="circularProgressBarBackground">#FFFFFF</color> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f76c1e66..392ffc9b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -24,6 +24,8 @@ <string name="action_stop_lazy_mode">Stop Lazy Mode</string> <string name="action_send">Send</string> <string name="action_sort">Sort</string> + <string name="action_edit_post">Edit Post</string> + <string name="action_delete_post">Delete Post</string> <string name="parse_json_response_error">Error occurred when parsing the JSON response</string> <string name="retrieve_token_error">Error Retrieving the token</string> @@ -178,4 +180,13 @@ <string name="log_out">Log out</string> <string name="press_here_to_login">Press here to login</string> <string name="login_first">Login first</string> + + <string name="delete_this_post">Delete This Post</string> + <string name="are_you_sure">Are you sure?</string> + <string name="delete">Delete</string> + <string name="cancel">Cancel</string> + <string name="delete_post_success">Delete successfully</string> + <string name="delete_post_failed">Delete failed</string> + + <string name="edit_success">Edit Successful</string> </resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 75f23b15..0b20ce0e 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -46,5 +46,18 @@ <item name="tabBackground">?attr/selectableItemBackground</item> <item name="tabSelectedTextColor">@android:color/white</item> </style> + + <style name="MaterialAlertDialogTheme" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog"> + <item name="buttonBarPositiveButtonStyle">@style/MaterialAlertDialogPositiveButtonStyle</item> + <item name="buttonBarNegativeButtonStyle">@style/MaterialAlertDialogNegativeButtonStyle</item> + </style> + + <style name="MaterialAlertDialogPositiveButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog"> + <item name="android:textColor">@color/colorAccent</item> + </style> + + <style name="MaterialAlertDialogNegativeButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog"> + <item name="android:textColor">@color/primaryTextColor</item> + </style> </resources> |