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

Commit a8433c65 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Add option for recents to use fake shadows" into lmp-dev

parents 9aefd415 cb557031
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -117,4 +117,10 @@

    <!-- The color of the navigation bar icons. Need to be in sync with ic_sysbar_* -->
    <color name="navigation_bar_icon_color">#E5FFFFFF</color>

    <!-- Shadow color for the first pixels around the fake shadow for recents. -->
    <color name="fake_shadow_start_color">#44000000</color>

    <!-- Shadow color for the furthest pixels around the fake shadow for recents. -->
    <color name="fake_shadow_end_color">#03000000</color>
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@
    <!-- The number of app icons we keep in memory -->
    <integer name="config_recents_max_icon_count">20</integer>

    <!-- Whether to use cheap, less good looking shadows for recents -->
    <bool name="config_recents_fake_shadows">false</bool>

    <!-- The theme to use for RecentsActivity. -->
    <item type="style" name="config_recents_activity_theme">@style/RecentsTheme.Wallpaper</item>
+7 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@
    <dimen name="unlock_falsing_threshold">80dp</dimen>

    <!-- Lockscreen falsing threshold for quick settings. -->
    <dimen name="qs_falsing_threshold">80dp</dimen>
    <dimen name="qs_falsing_threshold">40dp</dimen>

    <!-- Falsing threshold used when dismissing notifications from the lockscreen. -->
    <dimen name="swipe_helper_falsing_threshold">70dp</dimen>
@@ -496,4 +496,10 @@

    <!-- The maximum width of the navigation bar ripples. -->
    <dimen name="key_button_ripple_max_width">95dp</dimen>
    
    <!-- Inset shadow for FakeShadowDrawable. It is used to avoid gaps between the card
         and the shadow. -->
    <dimen name="fake_shadow_inset">1dp</dimen>

    <dimen name="fake_shadow_size">8dp</dimen>
</resources>
+0 −2
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@ public class Constants {
            public static final boolean EnableDevAppInfoOnLongPress = true;
            // Enables the search bar layout
            public static final boolean EnableSearchLayout = true;
            // Enables the dynamic shadows behind each task
            public static final boolean EnableShadows = true;
            // Enables the thumbnail alpha on the front-most task
            public static final boolean EnableThumbnailAlphaOnFrontmost = false;
            // This disables the bitmap and icon caches
+2 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ public class RecentsConfiguration {
    /** Misc **/
    public boolean useHardwareLayers;
    public int altTabKeyDelay;
    public boolean fakeShadows;

    /** Dev options and global settings */
    public boolean lockToAppEnabled;
@@ -274,6 +275,7 @@ public class RecentsConfiguration {
        // Misc
        useHardwareLayers = res.getBoolean(R.bool.config_recents_use_hardware_layers);
        altTabKeyDelay = res.getInteger(R.integer.recents_alt_tab_key_delay);
        fakeShadows = res.getBoolean(R.bool.config_recents_fake_shadows);
    }

    /** Updates the system insets */
Loading