mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Add background color option for media detail page (#5394)
* feat: add backgroundColor property on media * feat: add optional menu items for media backgroundColor * fix: test pass when running in batch * refactor: remove backgroundColor from media * refactor: add string for background color menu * chore: remove useless change * feat: change media image background color * feat: pass backgroundColor to ZoomableActivity * chore: remove extra space
This commit is contained in:
parent
9028e0ed32
commit
e1e4f9329a
7 changed files with 260 additions and 15 deletions
|
|
@ -38,5 +38,25 @@
|
|||
android:id="@+id/menu_view_report"
|
||||
android:title="@string/menu_view_report"
|
||||
app:showAsAction="never" />
|
||||
<!--
|
||||
Setting visible and enabled to false as default because
|
||||
we only want to show it in a very specific case
|
||||
-->
|
||||
<item
|
||||
android:id="@+id/menu_view_set_white_background"
|
||||
android:title="@string/menu_view_set_white_background"
|
||||
android:visible="false"
|
||||
android:enabled="false"
|
||||
app:showAsAction="never" />
|
||||
<!--
|
||||
Setting visible and enabled to false as default because
|
||||
we only want to show it in a very specific case
|
||||
-->
|
||||
<item
|
||||
android:id="@+id/menu_view_set_black_background"
|
||||
android:title="@string/menu_view_set_black_background"
|
||||
android:visible="false"
|
||||
android:enabled="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
|
|
@ -770,6 +770,8 @@ Upload your first media by tapping on the add button.</string>
|
|||
<string name="image_selected">Image selected</string>
|
||||
<string name="image_marked_as_not_for_upload">Image marked as not for upload</string>
|
||||
<string name="menu_view_report">Report</string>
|
||||
<string name="menu_view_set_white_background">Set white background</string>
|
||||
<string name="menu_view_set_black_background">Set black background</string>
|
||||
<string name="report_violation">Report violation</string>
|
||||
<string name="report_user">Report this user</string>
|
||||
<string name="report_content">Report this content</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue