Loading res/values-night/styles.xml +3 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,9 @@ <style name="AddItemActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item> <item name="android:windowTranslucentStatus">true</item> <!-- Add the dim background here, rather than in the activity layout as the window slides in from the bottom, and we don't want the scrim to slide. --> <item name="android:backgroundDimEnabled">true</item> </style> <style name="WidgetPickerActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> Loading res/values/styles.xml +3 −0 Original line number Diff line number Diff line Loading @@ -427,6 +427,9 @@ <item name="widgetsTheme">@style/WidgetContainerTheme</item> <item name="android:windowLightStatusBar">true</item> <item name="android:windowTranslucentStatus">true</item> <!-- Add the dim background here, rather than in the activity layout as the window slides in from the bottom, and we don't want the scrim to slide. --> <item name="android:backgroundDimEnabled">true</item> </style> <style name="ProxyActivityStarterTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> Loading src/com/android/launcher3/widget/AddItemWidgetsBottomSheet.java +4 −1 Original line number Diff line number Diff line Loading @@ -145,7 +145,10 @@ public class AddItemWidgetsBottomSheet extends AbstractSlideInView<AddItemActivi @Override protected int getScrimColor(Context context) { return context.getResources().getColor(R.color.widgets_picker_scrim); // Don't add a scrim when using the standalone picker activity. The background dimming is // handled by applying dimBackground in the activity theme, so the scrim doesn't slide in // with the window. return -1; } @SuppressLint("NewApi") // Already added API check. Loading Loading
res/values-night/styles.xml +3 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,9 @@ <style name="AddItemActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item> <item name="android:windowTranslucentStatus">true</item> <!-- Add the dim background here, rather than in the activity layout as the window slides in from the bottom, and we don't want the scrim to slide. --> <item name="android:backgroundDimEnabled">true</item> </style> <style name="WidgetPickerActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> Loading
res/values/styles.xml +3 −0 Original line number Diff line number Diff line Loading @@ -427,6 +427,9 @@ <item name="widgetsTheme">@style/WidgetContainerTheme</item> <item name="android:windowLightStatusBar">true</item> <item name="android:windowTranslucentStatus">true</item> <!-- Add the dim background here, rather than in the activity layout as the window slides in from the bottom, and we don't want the scrim to slide. --> <item name="android:backgroundDimEnabled">true</item> </style> <style name="ProxyActivityStarterTheme" parent="@android:style/Theme.Translucent.NoTitleBar"> Loading
src/com/android/launcher3/widget/AddItemWidgetsBottomSheet.java +4 −1 Original line number Diff line number Diff line Loading @@ -145,7 +145,10 @@ public class AddItemWidgetsBottomSheet extends AbstractSlideInView<AddItemActivi @Override protected int getScrimColor(Context context) { return context.getResources().getColor(R.color.widgets_picker_scrim); // Don't add a scrim when using the standalone picker activity. The background dimming is // handled by applying dimBackground in the activity theme, so the scrim doesn't slide in // with the window. return -1; } @SuppressLint("NewApi") // Already added API check. Loading