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

Commit cb557031 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Selim Cinek
Browse files

Add option for recents to use fake shadows

Bug: 17522143
Change-Id: I61fdecf8c5aa86b6dacd65ff8729590553d0854a
parent e8199c58
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -117,4 +117,10 @@


    <!-- The color of the navigation bar icons. Need to be in sync with ic_sysbar_* -->
    <!-- The color of the navigation bar icons. Need to be in sync with ic_sysbar_* -->
    <color name="navigation_bar_icon_color">#E5FFFFFF</color>
    <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>
</resources>
+2 −0
Original line number Original line Diff line number Diff line
@@ -39,6 +39,8 @@
    <!-- The number of app icons we keep in memory -->
    <!-- The number of app icons we keep in memory -->
    <integer name="config_recents_max_icon_count">20</integer>
    <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. -->
    <!-- The theme to use for RecentsActivity. -->
    <item type="style" name="config_recents_activity_theme">@style/RecentsTheme.Wallpaper</item>
    <item type="style" name="config_recents_activity_theme">@style/RecentsTheme.Wallpaper</item>
+7 −1
Original line number Original line Diff line number Diff line
@@ -292,7 +292,7 @@
    <dimen name="unlock_falsing_threshold">80dp</dimen>
    <dimen name="unlock_falsing_threshold">80dp</dimen>


    <!-- Lockscreen falsing threshold for quick settings. -->
    <!-- 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. -->
    <!-- Falsing threshold used when dismissing notifications from the lockscreen. -->
    <dimen name="swipe_helper_falsing_threshold">70dp</dimen>
    <dimen name="swipe_helper_falsing_threshold">70dp</dimen>
@@ -492,4 +492,10 @@


    <!-- The maximum width of the navigation bar ripples. -->
    <!-- The maximum width of the navigation bar ripples. -->
    <dimen name="key_button_ripple_max_width">95dp</dimen>
    <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>
</resources>
+0 −2
Original line number Original line Diff line number Diff line
@@ -39,8 +39,6 @@ public class Constants {
            public static final boolean EnableDevAppInfoOnLongPress = true;
            public static final boolean EnableDevAppInfoOnLongPress = true;
            // Enables the search bar layout
            // Enables the search bar layout
            public static final boolean EnableSearchLayout = true;
            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
            // Enables the thumbnail alpha on the front-most task
            public static final boolean EnableThumbnailAlphaOnFrontmost = false;
            public static final boolean EnableThumbnailAlphaOnFrontmost = false;
            // This disables the bitmap and icon caches
            // This disables the bitmap and icon caches
+2 −0
Original line number Original line Diff line number Diff line
@@ -121,6 +121,7 @@ public class RecentsConfiguration {
    /** Misc **/
    /** Misc **/
    public boolean useHardwareLayers;
    public boolean useHardwareLayers;
    public int altTabKeyDelay;
    public int altTabKeyDelay;
    public boolean fakeShadows;


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


    /** Updates the system insets */
    /** Updates the system insets */
Loading