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

Commit e631b41d authored by John Spurlock's avatar John Spurlock
Browse files

Draw gradient behind fully transparent system bars.

Use a transition-drawable to crossfade between the gradient and
solid color backgrounds, avoiding custom onDraw.

Rename colors to their final names.  Since both bars now receive the
gradient treatment, centralize in base BarTransitions.

Bug:10602521
Change-Id: Id094fa1767eabab88a3709d6026c23858c83fb5b
parent a2d65108
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="#FF000000"
    android:background="@drawable/system_bar_background"
    >

    <FrameLayout android:id="@+id/rot0"
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="#FF000000"
    android:background="@drawable/system_bar_background"
    >

    <FrameLayout android:id="@+id/rot0"
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="#FF000000"
    android:background="@drawable/system_bar_background"
    >

    <FrameLayout android:id="@+id/rot0"
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:id="@+id/status_bar"
    android:background="@drawable/status_bar_background"
    android:background="@drawable/system_bar_background"
    android:orientation="vertical"
    android:focusable="true"
    android:descendantFocusability="afterDescendants"
+4 −5
Original line number Diff line number Diff line
@@ -19,11 +19,10 @@
<resources>
    <drawable name="notification_number_text_color">#ffffffff</drawable>
    <drawable name="ticker_background_color">#ff1d1d1d</drawable>
    <drawable name="status_bar_background">#ff000000</drawable>
    <color name="status_bar_background_semi_transparent">#66000000</color>
    <color name="status_bar_background_transparent">#00000000</color>
    <color name="navigation_bar_background_transparent_start">#7f000000</color>
    <color name="navigation_bar_background_transparent_end">#00000000</color>
    <drawable name="system_bar_background">#ff000000</drawable>
    <color name="system_bar_background_semi_transparent">#66000000</color> <!-- 40% black -->
    <color name="system_bar_background_gradient_start">#7f000000</color> <!-- 50% black -->
    <color name="system_bar_background_gradient_end">#00000000</color>
    <color name="notification_panel_solid_background">#ff000000</color>
    <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable>
    <color name="status_bar_recents_app_label_color">#ffffffff</color>
Loading