Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2320e509 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Update screenshot dark mode to spec

Makes the background protection scrim slightly taller in dark mode,
and makes the light mode scrim darker (25% opacity at the bottom).

Test: manual
Bug: 155416835
Fix: 155416835

Change-Id: I3c5f9f75654b4c359cc0b1486d79f7fdeea7b6af
parent 91382f3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,6 +17,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <gradient
        android:angle="90"
        android:startColor="#1f000000"
        android:startColor="@color/global_screenshot_background_protection_start"
        android:endColor="#00000000"/>
</shape>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
    android:layout_height="match_parent">
    <ImageView
        android:id="@+id/global_screenshot_actions_background"
        android:layout_height="@dimen/global_screenshot_bg_protection_height"
        android:layout_height="@dimen/screenshot_bg_protection_height"
        android:layout_width="match_parent"
        android:alpha="0.0"
        android:src="@drawable/screenshot_actions_background_protection"
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@
    <color name="global_screenshot_button_icon">@color/GM2_blue_300</color>
    <color name="global_screenshot_dismiss_background">@color/GM2_grey_800</color>
    <color name="global_screenshot_dismiss_foreground">#FFFFFF</color>
    <color name="global_screenshot_background_protection_start">#80000000</color> <!-- 50% black -->


    <!-- Biometric dialog colors -->
+4 −0
Original line number Diff line number Diff line
@@ -18,4 +18,8 @@
<resources>
    <!-- The height of the divider between the individual notifications. -->
    <dimen name="notification_divider_height">1dp</dimen>

    <!-- Height of the background gradient behind the screenshot UI (taller in dark mode) -->
    <dimen name="screenshot_bg_protection_height">375dp</dimen>

</resources>
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@
    <color name="global_screenshot_button_icon">@color/GM2_blue_500</color>
    <color name="global_screenshot_dismiss_background">#FFFFFF</color>
    <color name="global_screenshot_dismiss_foreground">@color/GM2_grey_500</color>
    <color name="global_screenshot_background_protection_start">#40000000</color> <!-- 25% black -->

    <!-- GM2 colors -->
    <color name="GM2_grey_50">#F8F9FA</color>
Loading