Skip to content

Commit 6fdf0bc

Browse files
authored
Add scrim behind Reader fullscreen photo viewer toolbar (#23126)
The back arrow was invisible over white/light images because the toolbar is transparent and its icon is always white. Add a dark gradient scrim behind the toolbar so the arrow stays legible regardless of image color.
1 parent 49a63f1 commit 6fdf0bc

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
3+
<gradient
4+
android:angle="90"
5+
android:startColor="@android:color/transparent"
6+
android:endColor="@color/black_translucent_50"
7+
android:type="linear" />
8+
</shape>

WordPress/src/main/res/layout/reader_activity_photo_viewer.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
android:id="@+id/toolbar"
3333
android:layout_width="match_parent"
3434
android:layout_height="?attr/actionBarSize"
35+
android:background="@drawable/reader_photo_viewer_toolbar_scrim"
3536
android:elevation="@dimen/appbar_elevation"
3637
app:contentInsetEnd="@dimen/toolbar_content_offset_end"
3738
app:contentInsetLeft="@dimen/toolbar_content_offset"

0 commit comments

Comments
 (0)