Merge "Update screenshot dark mode to spec" into rvc-dev am: d368634f25
Change-Id: I216e9e76fb9968f0e3ddf56f4c669c8e48a0f142
This commit is contained in:
@@ -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>
|
||||
@@ -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"
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -306,6 +306,7 @@
|
||||
<dimen name="global_screenshot_bg_padding">20dp</dimen>
|
||||
<dimen name="global_screenshot_bg_protection_height">400dp</dimen>
|
||||
<dimen name="global_screenshot_x_scale">80dp</dimen>
|
||||
<dimen name="screenshot_bg_protection_height">242dp</dimen>
|
||||
<dimen name="screenshot_preview_elevation">6dp</dimen>
|
||||
<dimen name="screenshot_offset_y">48dp</dimen>
|
||||
<dimen name="screenshot_offset_x">16dp</dimen>
|
||||
|
||||
Reference in New Issue
Block a user