mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue