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

Commit 367f2199 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Adding dark theme for AddItemActivity

Bug: 117786476
Change-Id: I1a3adb7c10ed2326dc1440c3db15f702f42dbfd8
parent 55ba0dca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@
                       android:value="true" />

        <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
            android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"
            android:theme="@style/AppItemActivityTheme"
            android:excludeFromRecents="true"
            android:autoRemoveFromRecents="true"
            android:label="@string/action_add_to_workspace" >
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?android:attr/colorPrimaryDark"
                android:theme="@style/WidgetContainerTheme">
                android:theme="?attr/widgetsTheme">

                <com.android.launcher3.dragndrop.LivePreviewWidgetCell
                    android:id="@+id/widget_cell"
+6 −8
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2016 The Android Open Source Project
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,13 +16,11 @@
* limitations under the License.
*/
-->

<resources>

    <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs">
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">#00000000</item>
        <item name="android:navigationBarColor">#00000000</item>
    <style name="AppItemActivityTheme" parent="@android:style/Theme.DeviceDefault.Dialog.Alert">
        <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
    </style>

</resources>
 No newline at end of file
+4 −4
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2016 The Android Open Source Project
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,11 +16,11 @@
* limitations under the License.
*/
-->

<resources>

    <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs">
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
    <style name="AppItemActivityTheme" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
        <item name="widgetsTheme">@style/WidgetContainerTheme</item>
    </style>

</resources>
 No newline at end of file
+11 −3
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
        <item name="android:colorEdgeEffect">#FF757575</item>
    </style>

    <style name="BaseLauncherThemeWithCustomAttrs" parent="@style/BaseLauncherTheme">
    <style name="LauncherTheme" parent="@style/BaseLauncherTheme">
        <item name="allAppsScrimColor">#EAFFFFFF</item>
        <item name="allAppsInterimScrimAlpha">46</item>
        <item name="allAppsNavBarScrimColor">#66FFFFFF</item>
@@ -44,9 +44,13 @@
        <item name="widgetsTheme">@style/WidgetContainerTheme</item>
        <item name="folderBadgeColor">?android:attr/colorPrimary</item>
        <item name="loadingIconColor">#FFF</item>
    </style>

    <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs"></style>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">#00000000</item>
        <item name="android:navigationBarColor">#00000000</item>
    </style>

    <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
        <item name="workspaceTextColor">#FF212121</item>
@@ -94,6 +98,10 @@
    <style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
    <style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />

    <style name="AppItemActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
        <item name="widgetsTheme">@style/WidgetContainerTheme</item>
    </style>

    <!--
    Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
    Various foreground colors are overridden to be workspaceTextColor so that they are properly