PoorManThemes: create DocumentsUITheme

Change-Id: Idda6860020bcf0a4a0cee12e437fdfdb64c99096
diff --git a/config/packages.mk b/config/packages.mk
index 6c20725..4df7e01 100644
--- a/config/packages.mk
+++ b/config/packages.mk
@@ -49,6 +49,9 @@
     GboardOmniTheme
 
 PRODUCT_PACKAGES += \
+    DocumentsUITheme
+
+PRODUCT_PACKAGES += \
     NotificationsDark \
     NotificationsLight \
     NotificationsPrimary
diff --git a/google/themes/DocumentsUITheme/Android.mk b/google/themes/DocumentsUITheme/Android.mk
new file mode 100644
index 0000000..7fb9fb4
--- /dev/null
+++ b/google/themes/DocumentsUITheme/Android.mk
@@ -0,0 +1,12 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_PACKAGE_NAME := DocumentsUITheme
+LOCAL_RRO_THEME := DocumentsUITheme
+LOCAL_CERTIFICATE := platform
+LOCAL_MODULE_TAGS := optional
+LOCAL_SDK_VERSION := current
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
+
+include $(BUILD_RRO_PACKAGE)
diff --git a/google/themes/DocumentsUITheme/AndroidManifest.xml b/google/themes/DocumentsUITheme/AndroidManifest.xml
new file mode 100644
index 0000000..5e7b2f9
--- /dev/null
+++ b/google/themes/DocumentsUITheme/AndroidManifest.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="org.omnirom.theme.app.documentsuitheme"
+    platformBuildVersionCode="28"
+    platformBuildVersionName="9.0.0">
+
+    <overlay android:priority="2" android:targetPackage="com.android.documentsui" />
+
+
+    <application android:hasCode="false"
+                 android:label="DocumentsUI Theme" />
+</manifest>
diff --git a/google/themes/DocumentsUITheme/assets/thumbnail.png b/google/themes/DocumentsUITheme/assets/thumbnail.png
new file mode 100644
index 0000000..9841324
--- /dev/null
+++ b/google/themes/DocumentsUITheme/assets/thumbnail.png
Binary files differ
diff --git a/google/themes/DocumentsUITheme/res/color/ripple_material_light.xml b/google/themes/DocumentsUITheme/res/color/ripple_material_light.xml
new file mode 100644
index 0000000..07ce558
--- /dev/null
+++ b/google/themes/DocumentsUITheme/res/color/ripple_material_light.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 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.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:alpha="@*android:dimen/highlight_alpha_material_light"
+          android:color="@*android:color/omni_color5" />
+</selector>
diff --git a/google/themes/DocumentsUITheme/res/drawable/toast_frame.xml b/google/themes/DocumentsUITheme/res/drawable/toast_frame.xml
new file mode 100644
index 0000000..5738837
--- /dev/null
+++ b/google/themes/DocumentsUITheme/res/drawable/toast_frame.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* Copyright 2017, 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.
+** You may obtain a copy of the License at
+**
+**     http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+       android:shape="rectangle">
+    <!-- background is material_grey_200 with .9 alpha -->
+    <solid android:color="@*android:color/omni_color9" />
+    <corners android:radius="22dp" />
+</shape>
+
diff --git a/google/themes/DocumentsUITheme/res/values/colors.xml b/google/themes/DocumentsUITheme/res/values/colors.xml
new file mode 100644
index 0000000..828dd41
--- /dev/null
+++ b/google/themes/DocumentsUITheme/res/values/colors.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources>
+    <color name="window_background">@*android:color/omni_color1</color>
+    <color name="drawer_background">@*android:color/omni_color1</color>
+    <color name="drawer_border">@*android:color/omni_color2</color>
+    <color name="directory_background">@*android:color/omni_color1</color>
+    <color name="menu_search_background">@android:color/transparent</color>
+
+    <color name="primary_dark">@*android:color/omni_color1</color>
+    <color name="primary">@*android:color/omni_color2</color>
+    <color name="accent">@*android:color/omni_color5</color>
+    <color name="accent_dark">@*android:color/omni_color4</color>
+
+    <color name="text_cursor">@*android:color/omni_text1</color>
+    <color name="text_handle">@*android:color/omni_color4</color>
+    <color name="text_highlight">@*android:color/omni_color5</color>
+    <color name="text_secondary">@*android:color/omni_text2</color>
+
+    <color name="band_select_background">#880000ff</color>
+    <color name="band_select_border">#440000ff</color>
+
+    <color name="root_title_color">@*android:color/omni_text2</color>
+    <color name="root_activated_color">@*android:color/omni_text1</color>
+    <color name="root_details_color">@*android:color/omni_text3</color>
+    <color name="root_focus_color">@*android:color/omni_color7</color>
+
+    <color name="item_hover_color">@*android:color/omni_color7</color>
+
+    <color name="sort_widget_text_color">@*android:color/omni_color5</color>
+
+    <color name="root_icon_color">@*android:color/omni_color4</color>
+    <item name="root_icon_disabled_alpha" format="float" type="dimen">@*android:dimen/disabled_alpha_material_light</item>
+    <color name="doc_icon_color">@*android:color/omni_color6</color>
+    <color name="tool_bar_color">@*android:color/omni_color2</color>
+    <color name="item_doc_title">@*android:color/omni_text1</color>
+    <color name="item_doc_title_disabled">@*android:color/omni_text2</color>
+    <color name="item_doc_details">@*android:color/omni_text3</color>
+    <color name="item_doc_background">@*android:color/omni_color7</color>
+    <color name="item_doc_background_disabled">@*android:color/omni_color1</color>
+    <color name="item_doc_background_selected">@*android:color/omni_color6</color>
+    <color name="item_breadcrumb_background_hovered">@*android:color/omni_color3</color>
+    <color name="item_doc_droppable_background">@*android:color/omni_color7</color>
+    <color name="item_doc_not_droppable_background">@*android:color/omni_color1</color>
+    <color name="item_grid_tint">@*android:color/omni_color8</color>
+
+    <color name="item_drag_shadow_background">@*android:color/omni_color7</color>
+    <color name="item_drag_shadow_container_background">@*android:color/transparent</color>
+
+    <color name="downloads_icon_background">#ff4688f2</color>
+    <color name="app_icon_background">#ff4688f2</color>
+    <color name="shortcut_foreground">#ff3367d6</color>
+    <color name="shortcut_background">#fff5f5f5</color>
+
+    <color name="dialog_title">@*android:color/omni_text1</color>
+
+    <color name="scroll_thumb_pressed">#ff8c8c8c</color>
+    <color name="scroll_thumb">#ffbebebe</color>
+    <color name="scroll_track">#fff0f0f0</color>
+
+    <color name="inspector_value">@*android:color/omni_text1</color>
+    <color name="inspector_link">@*android:color/omni_text3</color>
+    <color name="inspector_section_title">@*android:color/omni_text1</color>
+    <color name="inspector_section_divider">@*android:color/omni_color1</color>
+    <color name="inspector_title_background">@*android:color/omni_color7</color>
+</resources>
diff --git a/google/themes/DocumentsUITheme/res/values/styles.xml b/google/themes/DocumentsUITheme/res/values/styles.xml
new file mode 100644
index 0000000..785efc4
--- /dev/null
+++ b/google/themes/DocumentsUITheme/res/values/styles.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android" >
+
+    <style name="ActionBarPopupTheme" parent="@*android:style/ThemeOverlay.Material" />
+</resources>