summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-08-29 15:41:02 -0700
committerd34d <clark@cyngn.com>2016-08-31 09:44:52 -0700
commit550e88b1e62228124f22b2d70ce3bf45fe9a1314 (patch)
tree91efd4126034e8b91c463da8bd02a00cf7ff9751 /res
parentbcd90a38b28f7c57bce8057d855e4c276aab2776 (diff)
downloadpackages_apps_ThemeChooser-550e88b1e62228124f22b2d70ce3bf45fe9a1314.tar.gz
packages_apps_ThemeChooser-550e88b1e62228124f22b2d70ce3bf45fe9a1314.tar.bz2
packages_apps_ThemeChooser-550e88b1e62228124f22b2d70ce3bf45fe9a1314.zip
Fall cleaning
* Change package name to org.cyanogenmod.theme.chooser2 to avoid theme collisions with old OSS chooser * Change parent theme to Theme.Material.Light * Change minSdkVersion to 21 since we are going material * Add selectors for bottom action buttons (app themer, shop themes) * Add selector, using app themer color, for app themer list view * Add selector for actions in theme cards * Bring back OSS app icon * Reduce log spam in ThemedTypefaceHelper * Localize "new" tag using a TextView instead of an image * Other random stuff Change-Id: I73ef0b9c9370284e29ee00add87273cf54c83e0e
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/bg_button_shopthemes_focused.9.pngbin484 -> 0 bytes
-rw-r--r--res/drawable-hdpi/bg_button_shopthemes_normal.9.pngbin487 -> 0 bytes
-rw-r--r--res/drawable-hdpi/bg_button_shopthemes_pressed.9.pngbin655 -> 0 bytes
-rw-r--r--res/drawable-hdpi/bg_tag_new.9.pngbin0 -> 221 bytes
-rw-r--r--res/drawable-hdpi/tag_new.pngbin721 -> 0 bytes
-rw-r--r--res/drawable-mdpi/bg_button_shopthemes_focused.9.pngbin337 -> 0 bytes
-rw-r--r--res/drawable-mdpi/bg_button_shopthemes_normal.9.pngbin337 -> 0 bytes
-rw-r--r--res/drawable-mdpi/bg_button_shopthemes_pressed.9.pngbin434 -> 0 bytes
-rw-r--r--res/drawable-mdpi/bg_tag_new.9.pngbin0 -> 173 bytes
-rw-r--r--res/drawable-mdpi/tag_new.pngbin475 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/bg_button_shopthemes_focused.9.pngbin672 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/bg_button_shopthemes_normal.9.pngbin679 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/bg_button_shopthemes_pressed.9.pngbin919 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/bg_tag_new.9.pngbin0 -> 279 bytes
-rw-r--r--res/drawable-xhdpi/tag_new.pngbin952 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/bg_button_shopthemes_focused.9.pngbin1030 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/bg_button_shopthemes_normal.9.pngbin1020 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/bg_button_shopthemes_pressed.9.pngbin1427 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/bg_tag_new.9.pngbin0 -> 363 bytes
-rw-r--r--res/drawable-xxhdpi/tag_new.pngbin1466 -> 0 bytes
-rw-r--r--res/drawable/bottom_action_item_background.xml30
-rw-r--r--res/drawable/per_app_theme_list_item_background.xml (renamed from res/drawable/shop_themes_bg.xml)16
-rw-r--r--res/drawable/theme_card_action_item_background.xml26
-rw-r--r--res/layout/activity_main.xml20
-rw-r--r--res/layout/audible_card.xml4
-rw-r--r--res/layout/bootanim_card.xml4
-rw-r--r--res/layout/bottom_actions.xml22
-rw-r--r--res/layout/component_selector.xml7
-rw-r--r--res/layout/font_card.xml4
-rw-r--r--res/layout/fragment_pager_list.xml89
-rw-r--r--res/layout/icon_card.xml4
-rw-r--r--res/layout/navbar_card.xml4
-rw-r--r--res/layout/per_app_theme_list.xml5
-rw-r--r--res/layout/save_apply_button.xml42
-rw-r--r--res/layout/status_bar_card.xml4
-rw-r--r--res/layout/style_card.xml4
-rw-r--r--res/layout/title_card.xml105
-rw-r--r--res/layout/wallpaper_component_selection_item.xml4
-rw-r--r--res/mipmap-hdpi/ic_app_themes.pngbin22564 -> 4719 bytes
-rw-r--r--res/mipmap-mdpi/ic_app_themes.pngbin21567 -> 3023 bytes
-rw-r--r--res/mipmap-xhdpi/ic_app_themes.pngbin24105 -> 6555 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_app_themes.pngbin27806 -> 10346 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_app_themes.pngbin32205 -> 14244 bytes
-rw-r--r--res/values/colors.xml9
-rw-r--r--res/values/dimens.xml4
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/values/styles.xml2
47 files changed, 245 insertions, 166 deletions
diff --git a/res/drawable-hdpi/bg_button_shopthemes_focused.9.png b/res/drawable-hdpi/bg_button_shopthemes_focused.9.png
deleted file mode 100644
index 669e672..0000000
--- a/res/drawable-hdpi/bg_button_shopthemes_focused.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/bg_button_shopthemes_normal.9.png b/res/drawable-hdpi/bg_button_shopthemes_normal.9.png
deleted file mode 100644
index 09d03d5..0000000
--- a/res/drawable-hdpi/bg_button_shopthemes_normal.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/bg_button_shopthemes_pressed.9.png b/res/drawable-hdpi/bg_button_shopthemes_pressed.9.png
deleted file mode 100644
index b6fada6..0000000
--- a/res/drawable-hdpi/bg_button_shopthemes_pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/bg_tag_new.9.png b/res/drawable-hdpi/bg_tag_new.9.png
new file mode 100644
index 0000000..25baf5c
--- /dev/null
+++ b/res/drawable-hdpi/bg_tag_new.9.png
Binary files differ
diff --git a/res/drawable-hdpi/tag_new.png b/res/drawable-hdpi/tag_new.png
deleted file mode 100644
index 528e166..0000000
--- a/res/drawable-hdpi/tag_new.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/bg_button_shopthemes_focused.9.png b/res/drawable-mdpi/bg_button_shopthemes_focused.9.png
deleted file mode 100644
index 79b28e3..0000000
--- a/res/drawable-mdpi/bg_button_shopthemes_focused.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/bg_button_shopthemes_normal.9.png b/res/drawable-mdpi/bg_button_shopthemes_normal.9.png
deleted file mode 100644
index 8848e28..0000000
--- a/res/drawable-mdpi/bg_button_shopthemes_normal.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/bg_button_shopthemes_pressed.9.png b/res/drawable-mdpi/bg_button_shopthemes_pressed.9.png
deleted file mode 100644
index fdfdc7a..0000000
--- a/res/drawable-mdpi/bg_button_shopthemes_pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/bg_tag_new.9.png b/res/drawable-mdpi/bg_tag_new.9.png
new file mode 100644
index 0000000..77b4f0f
--- /dev/null
+++ b/res/drawable-mdpi/bg_tag_new.9.png
Binary files differ
diff --git a/res/drawable-mdpi/tag_new.png b/res/drawable-mdpi/tag_new.png
deleted file mode 100644
index c4cef73..0000000
--- a/res/drawable-mdpi/tag_new.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/bg_button_shopthemes_focused.9.png b/res/drawable-xhdpi/bg_button_shopthemes_focused.9.png
deleted file mode 100644
index f74db4d..0000000
--- a/res/drawable-xhdpi/bg_button_shopthemes_focused.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/bg_button_shopthemes_normal.9.png b/res/drawable-xhdpi/bg_button_shopthemes_normal.9.png
deleted file mode 100644
index 1a2b6a0..0000000
--- a/res/drawable-xhdpi/bg_button_shopthemes_normal.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/bg_button_shopthemes_pressed.9.png b/res/drawable-xhdpi/bg_button_shopthemes_pressed.9.png
deleted file mode 100644
index 1ea49ba..0000000
--- a/res/drawable-xhdpi/bg_button_shopthemes_pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/bg_tag_new.9.png b/res/drawable-xhdpi/bg_tag_new.9.png
new file mode 100644
index 0000000..fb8781c
--- /dev/null
+++ b/res/drawable-xhdpi/bg_tag_new.9.png
Binary files differ
diff --git a/res/drawable-xhdpi/tag_new.png b/res/drawable-xhdpi/tag_new.png
deleted file mode 100644
index aaad607..0000000
--- a/res/drawable-xhdpi/tag_new.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/bg_button_shopthemes_focused.9.png b/res/drawable-xxhdpi/bg_button_shopthemes_focused.9.png
deleted file mode 100644
index c92c6c9..0000000
--- a/res/drawable-xxhdpi/bg_button_shopthemes_focused.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/bg_button_shopthemes_normal.9.png b/res/drawable-xxhdpi/bg_button_shopthemes_normal.9.png
deleted file mode 100644
index e4d5577..0000000
--- a/res/drawable-xxhdpi/bg_button_shopthemes_normal.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/bg_button_shopthemes_pressed.9.png b/res/drawable-xxhdpi/bg_button_shopthemes_pressed.9.png
deleted file mode 100644
index 3eee7b7..0000000
--- a/res/drawable-xxhdpi/bg_button_shopthemes_pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/bg_tag_new.9.png b/res/drawable-xxhdpi/bg_tag_new.9.png
new file mode 100644
index 0000000..fd9233d
--- /dev/null
+++ b/res/drawable-xxhdpi/bg_tag_new.9.png
Binary files differ
diff --git a/res/drawable-xxhdpi/tag_new.png b/res/drawable-xxhdpi/tag_new.png
deleted file mode 100644
index c6d6700..0000000
--- a/res/drawable-xxhdpi/tag_new.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable/bottom_action_item_background.xml b/res/drawable/bottom_action_item_background.xml
new file mode 100644
index 0000000..4689ee1
--- /dev/null
+++ b/res/drawable/bottom_action_item_background.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod 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.
+ -->
+
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="@color/bottom_action_selected_background_color">
+ <item android:id="@android:id/mask">
+ <shape android:shape="rectangle">
+ <corners android:radius="4dp"/>
+ <padding android:top="4dp"
+ android:bottom="4dp"
+ android:left="4dp"
+ android:right="4dp"/>
+ <solid android:color="@color/bottom_action_background_mask_color"/>
+ </shape>
+ </item>
+</ripple>
diff --git a/res/drawable/shop_themes_bg.xml b/res/drawable/per_app_theme_list_item_background.xml
index f0384e9..edd4a1d 100644
--- a/res/drawable/shop_themes_bg.xml
+++ b/res/drawable/per_app_theme_list_item_background.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright (C) 2016 Cyanogen, Inc.
Copyright (C) 2016 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,12 +15,9 @@
limitations under the License.
-->
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
-
- <item android:state_focused="true"
- android:drawable="@drawable/bg_button_shopthemes_focused"/>
- <item android:state_pressed="true"
- android:drawable="@drawable/bg_button_shopthemes_pressed"/>
- <item android:drawable="@drawable/bg_button_shopthemes_normal"/>
-
-</selector> \ No newline at end of file
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="@color/per_app_theme_list_item_bg_color">
+ <item android:id="@android:id/mask">
+ <color android:color="@color/per_app_theme_list_item_bg_mask_color" />
+ </item>
+</ripple>
diff --git a/res/drawable/theme_card_action_item_background.xml b/res/drawable/theme_card_action_item_background.xml
new file mode 100644
index 0000000..dc575df
--- /dev/null
+++ b/res/drawable/theme_card_action_item_background.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod 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.
+ -->
+
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="@color/theme_card_action_item_background_color">
+ <item android:id="@android:id/mask">
+ <shape android:shape="rectangle">
+ <corners android:radius="2dp"/>
+ <solid android:color="@color/theme_card_action_item_background_mask_color"/>
+ </shape>
+ </item>
+</ripple>
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml
index 01a91a6..552bed3 100644
--- a/res/layout/activity_main.xml
+++ b/res/layout/activity_main.xml
@@ -29,7 +29,7 @@
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_gravity="center_vertical">
- <org.cyanogenmod.theme.chooser.PagerContainer
+ <org.cyanogenmod.theme.chooser2.PagerContainer
android:id="@+id/pager_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -38,14 +38,22 @@
<android.support.v4.view.ThemeViewPager
android:id="@+id/viewpager"
android:layout_width="@dimen/theme_fragment_width"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:overScrollMode="never"/>
- </org.cyanogenmod.theme.chooser.PagerContainer>
+ </org.cyanogenmod.theme.chooser2.PagerContainer>
</LinearLayout>
- <include layout="@layout/component_selector"/>
- <include layout="@layout/save_apply_button"/>
- <include layout="@layout/bottom_actions"/>
+ <!-- wrap the below layouts for fitting to the system windows -->
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true">
+
+ <include layout="@layout/component_selector"/>
+ <include layout="@layout/save_apply_button"/>
+ <include layout="@layout/bottom_actions"/>
+
+ </FrameLayout>
</FrameLayout>
diff --git a/res/layout/audible_card.xml b/res/layout/audible_card.xml
index 764a04e..b8856d1 100644
--- a/res/layout/audible_card.xml
+++ b/res/layout/audible_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -65,4 +65,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView>
+</org.cyanogenmod.theme.chooser2.ComponentCardView>
diff --git a/res/layout/bootanim_card.xml b/res/layout/bootanim_card.xml
index ad3cb01..c3a0f1b 100644
--- a/res/layout/bootanim_card.xml
+++ b/res/layout/bootanim_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bootani_preview_container"
android:layout_width="match_parent"
@@ -51,4 +51,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView>
+</org.cyanogenmod.theme.chooser2.ComponentCardView>
diff --git a/res/layout/bottom_actions.xml b/res/layout/bottom_actions.xml
index 67f8461..ef4225d 100644
--- a/res/layout/bottom_actions.xml
+++ b/res/layout/bottom_actions.xml
@@ -34,7 +34,8 @@
android:id="@+id/per_app_theming"
android:layout_width="80dp"
android:layout_height="wrap_content"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:background="@drawable/bottom_action_item_background">
<FrameLayout
android:layout_width="match_parent"
@@ -45,13 +46,22 @@
android:layout_gravity="top|center_horizontal"
android:layout_margin="8dp"
android:src="@drawable/ic_appthemer"/>
- <ImageView
+ <org.cyanogenmod.theme.widget.LatoTextView
android:id="@+id/new_tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:layout_marginLeft="6dp"
- android:src="@drawable/tag_new"
+ android:paddingStart="4dp"
+ android:paddingEnd="4dp"
+ android:gravity="center"
+ android:text="@string/new_feature_label"
+ android:textAllCaps="true"
+ android:textSize="10dp"
+ android:textColor="@color/tag_text_color"
+ android:textStyle="bold"
+ android:fontFamily="sans-serif-condensed"
+ android:background="@drawable/bg_tag_new"
android:visibility="gone"/>
</FrameLayout>
@@ -69,7 +79,8 @@
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:background="@drawable/bottom_action_item_background">
<ImageView
android:layout_width="30dp"
@@ -89,7 +100,4 @@
</LinearLayout>
- <org.cyanogenmod.theme.widget.NavBarSpace
- android:layout_width="match_parent"
- android:layout_height="@dimen/navigation_bar_height"/>
</LinearLayout>
diff --git a/res/layout/component_selector.xml b/res/layout/component_selector.xml
index 14b13de..42be00b 100644
--- a/res/layout/component_selector.xml
+++ b/res/layout/component_selector.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentSelector
+<org.cyanogenmod.theme.chooser2.ComponentSelector
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/component_selector"
android:orientation="vertical"
@@ -42,7 +42,4 @@
</org.cyanogenmod.theme.widget.AutoSnapHorizontalScrollView>
- <org.cyanogenmod.theme.widget.NavBarSpace
- android:layout_width="match_parent"
- android:layout_height="@dimen/navigation_bar_height"/>
-</org.cyanogenmod.theme.chooser.ComponentSelector> \ No newline at end of file
+</org.cyanogenmod.theme.chooser2.ComponentSelector> \ No newline at end of file
diff --git a/res/layout/font_card.xml b/res/layout/font_card.xml
index 3b4808d..3a58f93 100644
--- a/res/layout/font_card.xml
+++ b/res/layout/font_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/font_preview_container"
android:layout_width="match_parent"
@@ -64,4 +64,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView>
+</org.cyanogenmod.theme.chooser2.ComponentCardView>
diff --git a/res/layout/fragment_pager_list.xml b/res/layout/fragment_pager_list.xml
index ca1d092..609dbaa 100644
--- a/res/layout/fragment_pager_list.xml
+++ b/res/layout/fragment_pager_list.xml
@@ -77,90 +77,7 @@
</FrameLayout>
<!-- Title card -->
- <FrameLayout
- android:id="@+id/title_card"
- android:layout_width="@dimen/theme_preview_width"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:background="@drawable/card_themepreview_bg">
- <LinearLayout
- android:id="@+id/title_layout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/title_card_height"
- android:alpha="0">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:layout_gravity="center_vertical"
- android:layout_marginStart="16dp"
- android:orientation="vertical">
- <org.cyanogenmod.theme.widget.LatoTextView
- android:id="@+id/title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:singleLine="true"
- android:textColor="@color/theme_title_text_color"/>
- <org.cyanogenmod.theme.widget.LatoTextView
- android:id="@+id/author"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:singleLine="true"
- android:textColor="@color/theme_author_text_color"
- android:textSize="14dp" />
- </LinearLayout>
- <ImageView
- android:id="@+id/customize"
- android:layout_width="47dp"
- android:layout_height="match_parent"
- android:scaleType="center"
- android:src="@drawable/ic_theme_customize"/>
-
- <ImageView
- android:id="@+id/overflow"
- android:layout_width="36dp"
- android:layout_height="match_parent"
- android:layout_marginStart="1dp"
- android:layout_marginEnd="8dp"
- android:scaleType="center"
- android:src="@drawable/ic_overflow_dark"
- android:visibility="gone"/>
-
- <ImageView
- android:id="@+id/delete"
- android:layout_width="36dp"
- android:layout_height="match_parent"
- android:layout_marginStart="1dp"
- android:layout_marginEnd="8dp"
- android:scaleType="center"
- android:src="@drawable/ic_theme_delete"/>
-
- <ImageView
- android:id="@+id/reset"
- android:layout_width="36dp"
- android:layout_height="match_parent"
- android:layout_marginStart="1dp"
- android:layout_marginEnd="8dp"
- android:scaleType="center"
- android:src="@drawable/ic_theme_reset"
- android:visibility="gone"/>
- </LinearLayout>
- <ProgressBar
- android:id="@+id/apply_progress"
- android:layout_width="match_parent"
- android:layout_height="@dimen/apply_progress_height"
- android:layout_gravity="center_vertical|right"
- android:paddingStart="@dimen/apply_progress_padding"
- android:paddingEnd="@dimen/apply_progress_padding"
- android:indeterminate="false"
- android:max="100"
- android:progress="0"
- android:progressDrawable="@drawable/apply_progress_bar"
- android:visibility="gone"
- style="@android:style/Widget.ProgressBar.Horizontal"/>
- </FrameLayout>
+ <include layout="@layout/title_card"/>
<!-- Each card in this layout should have a Space below it
with one final Space for devices that have a navbar -->
@@ -171,7 +88,7 @@
android:orientation="vertical"
android:layout_marginTop="@dimen/additional_cards_margin_top"
android:visibility="invisible">
- <org.cyanogenmod.theme.chooser.WallpaperCardView
+ <org.cyanogenmod.theme.chooser2.WallpaperCardView
android:id="@+id/wallpaper_card"
android:layout_width="match_parent"
android:layout_height="@dimen/wallpaper_card_height"
@@ -179,7 +96,7 @@
/>
<Space android:layout_width="match_parent"
android:layout_height="@dimen/expanded_card_margin_top" />
- <org.cyanogenmod.theme.chooser.WallpaperCardView
+ <org.cyanogenmod.theme.chooser2.WallpaperCardView
android:id="@+id/lockscreen_card"
android:visibility="gone"
android:layout_width="match_parent"
diff --git a/res/layout/icon_card.xml b/res/layout/icon_card.xml
index 1cf454b..591a1a4 100644
--- a/res/layout/icon_card.xml
+++ b/res/layout/icon_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/icon_container"
android:layout_width="match_parent"
@@ -76,4 +76,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView> \ No newline at end of file
+</org.cyanogenmod.theme.chooser2.ComponentCardView> \ No newline at end of file
diff --git a/res/layout/navbar_card.xml b/res/layout/navbar_card.xml
index b196f6a..437f4c3 100644
--- a/res/layout/navbar_card.xml
+++ b/res/layout/navbar_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/navigation_bar_container"
android:layout_width="match_parent"
@@ -92,4 +92,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView> \ No newline at end of file
+</org.cyanogenmod.theme.chooser2.ComponentCardView> \ No newline at end of file
diff --git a/res/layout/per_app_theme_list.xml b/res/layout/per_app_theme_list.xml
index be595c9..1feb993 100644
--- a/res/layout/per_app_theme_list.xml
+++ b/res/layout/per_app_theme_list.xml
@@ -34,14 +34,15 @@
android:elevation="10dp"
android:layout_marginLeft="@dimen/theme_list_side_margin"
android:layout_marginRight="@dimen/theme_list_side_margin"
- android:background="@drawable/per_app_theme_list_background"/>
+ android:background="@drawable/per_app_theme_list_background"
+ android:listSelector="@drawable/per_app_theme_list_item_background"/>
<TextView
android:id="@+id/applying_theme_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:textColor="@color/per_app_theme_list_item_text_color"
+ android:textColor="@color/per_app_theme_applying_text_color"
android:text="@string/per_app_theme_applying"
android:textSize="16dp"
android:alpha="0"/>
diff --git a/res/layout/save_apply_button.xml b/res/layout/save_apply_button.xml
index ac0fee9..1009c9c 100644
--- a/res/layout/save_apply_button.xml
+++ b/res/layout/save_apply_button.xml
@@ -16,36 +16,12 @@
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/save_apply_layout"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|left"
- android:visibility="gone">
-
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <Space
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"/>
-
- <Button
- android:id="@+id/save_apply_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="8dp"
- android:layout_marginBottom="8dp"
- android:background="@drawable/save_apply_button_selector"/>
-
- </LinearLayout>
-
- <org.cyanogenmod.theme.widget.NavBarSpace
- android:layout_width="match_parent"
- android:layout_height="@dimen/navigation_bar_height"/>
-
-</LinearLayout> \ No newline at end of file
+<Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/save_apply_button"
+ android:layout_width="@dimen/save_apply_fab_width"
+ android:layout_height="@dimen/save_apply_fab_height"
+ android:layout_gravity="bottom|end"
+ android:layout_marginEnd="8dp"
+ android:layout_marginBottom="8dp"
+ android:background="@drawable/save_apply_button_selector"
+ android:visibility="gone"/>
diff --git a/res/layout/status_bar_card.xml b/res/layout/status_bar_card.xml
index 331db00..d67abf6 100644
--- a/res/layout/status_bar_card.xml
+++ b/res/layout/status_bar_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/status_bar_container"
android:layout_width="match_parent"
@@ -107,4 +107,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView> \ No newline at end of file
+</org.cyanogenmod.theme.chooser2.ComponentCardView> \ No newline at end of file
diff --git a/res/layout/style_card.xml b/res/layout/style_card.xml
index e1906cc..c9f95b3 100644
--- a/res/layout/style_card.xml
+++ b/res/layout/style_card.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-<org.cyanogenmod.theme.chooser.ComponentCardView
+<org.cyanogenmod.theme.chooser2.ComponentCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/style_card"
android:layout_width="match_parent"
@@ -54,4 +54,4 @@
android:src="@drawable/ic_addcomponent"/>
</LinearLayout>
</FrameLayout>
-</org.cyanogenmod.theme.chooser.ComponentCardView>
+</org.cyanogenmod.theme.chooser2.ComponentCardView>
diff --git a/res/layout/title_card.xml b/res/layout/title_card.xml
new file mode 100644
index 0000000..61efa88
--- /dev/null
+++ b/res/layout/title_card.xml
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod 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.
+ -->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/title_card"
+ android:layout_width="@dimen/theme_preview_width"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/card_themepreview_bg">
+ <LinearLayout
+ android:id="@+id/title_layout"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/title_card_height"
+ android:alpha="0">
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:layout_marginStart="16dp"
+ android:orientation="vertical">
+ <org.cyanogenmod.theme.widget.LatoTextView
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textColor="@color/theme_title_text_color"/>
+ <org.cyanogenmod.theme.widget.LatoTextView
+ android:id="@+id/author"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textColor="@color/theme_author_text_color"
+ android:textSize="14dp" />
+ </LinearLayout>
+ <ImageView
+ android:id="@+id/customize"
+ android:layout_width="47dp"
+ android:layout_height="match_parent"
+ android:scaleType="center"
+ android:src="@drawable/ic_theme_customize"
+ android:background="@drawable/theme_card_action_item_background"/>
+
+ <ImageView
+ android:id="@+id/overflow"
+ android:layout_width="36dp"
+ android:layout_height="match_parent"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="8dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_overflow_dark"
+ android:visibility="gone"
+ android:background="@drawable/theme_card_action_item_background"/>
+
+ <ImageView
+ android:id="@+id/delete"
+ android:layout_width="36dp"
+ android:layout_height="match_parent"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="8dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_theme_delete"
+ android:background="@drawable/theme_card_action_item_background"/>
+
+ <ImageView
+ android:id="@+id/reset"
+ android:layout_width="36dp"
+ android:layout_height="match_parent"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="8dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_theme_reset"
+ android:visibility="gone"
+ android:background="@drawable/theme_card_action_item_background"/>
+ </LinearLayout>
+ <ProgressBar
+ android:id="@+id/apply_progress"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/apply_progress_height"
+ android:layout_gravity="center_vertical|right"
+ android:paddingStart="@dimen/apply_progress_padding"
+ android:paddingEnd="@dimen/apply_progress_padding"
+ android:indeterminate="false"
+ android:max="100"
+ android:progress="0"
+ android:progressDrawable="@drawable/apply_progress_bar"
+ android:visibility="gone"
+ style="@android:style/Widget.ProgressBar.Horizontal"/>
+</FrameLayout>
diff --git a/res/layout/wallpaper_component_selection_item.xml b/res/layout/wallpaper_component_selection_item.xml
index ace5c34..697820d 100644
--- a/res/layout/wallpaper_component_selection_item.xml
+++ b/res/layout/wallpaper_component_selection_item.xml
@@ -17,7 +17,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:cyngn="http://schemas.android.com/apk/res/org.cyanogenmod.theme.chooser"
+ xmlns:themes="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="@dimen/component_selection_cell_height"
@@ -56,7 +56,7 @@
android:layout_marginTop="@dimen/animated_lock_screen_text_margin_top"
android:layout_marginBottom="@dimen/animated_lock_screen_text_margin_bottom"
style="@style/animated_lock_screen_badge_text_style"
- cyngn:autoFitText="true"
+ themes:autoFitText="true"
android:text="@string/animated_lock_screen_badge_text"/>
</LinearLayout>
</FrameLayout>
diff --git a/res/mipmap-hdpi/ic_app_themes.png b/res/mipmap-hdpi/ic_app_themes.png
index aa08c8b..6f72699 100644
--- a/res/mipmap-hdpi/ic_app_themes.png
+++ b/res/mipmap-hdpi/ic_app_themes.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_app_themes.png b/res/mipmap-mdpi/ic_app_themes.png
index 32f7456..8ec3df0 100644
--- a/res/mipmap-mdpi/ic_app_themes.png
+++ b/res/mipmap-mdpi/ic_app_themes.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_app_themes.png b/res/mipmap-xhdpi/ic_app_themes.png
index b629a6a..7420d1b 100644
--- a/res/mipmap-xhdpi/ic_app_themes.png
+++ b/res/mipmap-xhdpi/ic_app_themes.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_app_themes.png b/res/mipmap-xxhdpi/ic_app_themes.png
index 974eb6f..9a38f0e 100644
--- a/res/mipmap-xxhdpi/ic_app_themes.png
+++ b/res/mipmap-xxhdpi/ic_app_themes.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_app_themes.png b/res/mipmap-xxxhdpi/ic_app_themes.png
index 639764d..968b063 100644
--- a/res/mipmap-xxxhdpi/ic_app_themes.png
+++ b/res/mipmap-xxxhdpi/ic_app_themes.png
Binary files differ
diff --git a/res/values/colors.xml b/res/values/colors.xml
index bdc361a..90d2b75 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -77,9 +77,18 @@
<color name="per_app_theme_fab_bg_color">#00b1e5</color>
<color name="per_app_theme_fab_icon_color">#ffffff</color>
<color name="per_app_theme_qs_icon_color">#ffffff</color>
+ <color name="per_app_theme_list_item_bg_color">#00b1e5</color>
+ <color name="per_app_theme_list_item_bg_mask_color">#ffffff</color>
+ <color name="per_app_theme_applying_text_color">#f5f5f5</color>
<color name="bottom_row_icon_color">#ffffff</color>
<color name="edge_effect_color">#ffffff</color>
+ <color name="bottom_action_background_mask_color">#ffffff</color>
+ <color name="bottom_action_selected_background_color">#e9e8e8</color>
+
+ <color name="theme_card_action_item_background_mask_color">#ffffff</color>
+ <color name="theme_card_action_item_background_color">#888888</color>
+
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 6f212e8..22c0dc7 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -113,4 +113,8 @@
<dimen name="animated_lock_screen_text_margin_right">3dp</dimen>
<dimen name="animated_lock_screen_text_margin_bottom">3dp</dimen>
<dimen name="animated_lock_screen_text_margin_left">3dp</dimen>
+
+ <!-- Save and apply customized changes FAB dimensions -->
+ <dimen name="save_apply_fab_width">72dp</dimen>
+ <dimen name="save_apply_fab_height">72dp</dimen>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 6cc115a..12b31f4 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -112,4 +112,6 @@
<string name="get_more_app_not_available">App not available</string>
<string name="play_store_url" translatable="false">https://play.google.com/store/search?q=theme+engine&amp;c=apps</string>
<string name="wiki_url" translatable="false">http://wiki.cyanogenmod.org/w/Themes</string>
+
+ <string name="new_feature_label">New</string>
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 96fced3..8ac749c 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -19,7 +19,7 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Base application theme. -->
- <style name="ThemeChooserTheme" parent="@android:style/Theme.Holo.Light">
+ <style name="ThemeChooserTheme" parent="@android:style/Theme.Material.Light">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:popupMenuStyle">@style/popupMenuStyle</item>