diff options
author | Clark Scheff <clark@cyngn.com> | 2014-06-13 17:50:28 -0700 |
---|---|---|
committer | Andy Mast <andy@cyngn.com> | 2015-01-15 09:47:45 -0800 |
commit | 3c1b6dd43a9f53bb55c0c1fd8ab52da0989facaf (patch) | |
tree | 5e9253dd240c4c81d501b0a5a7240732ebd61bbc /res/layout | |
parent | 7ccb6305880d89f7ab10356dbe1a9f4ba34796ce (diff) | |
download | android_packages_providers_ThemesProvider-3c1b6dd43a9f53bb55c0c1fd8ab52da0989facaf.tar.gz android_packages_providers_ThemesProvider-3c1b6dd43a9f53bb55c0c1fd8ab52da0989facaf.tar.bz2 android_packages_providers_ThemesProvider-3c1b6dd43a9f53bb55c0c1fd8ab52da0989facaf.zip |
Themes: Port to CM12 [4/6]
Auto-generate previews.
Id: Ia8f12bc852fb708e52ccc98641eea278756b198f
Add MODIFIES_STATUS_BAR and MODIFIES_NAVIGATION_BAR
Id: If1f81b122cfb5075835c70dff0bcfa6dea5d8de8
Use image with largest size for boot ani preview.
Id: I3f2c16aa6ceb18387925e2cf2812d8c3ddf0d3d7
Use same components used in the original chooser.
Icon previews will be generated using the same login used in the
theme chooser v1.
Id: Iafcd9f3d78fc86a66fe3635d27ee9fb7d47ae531
Remove (Default) from Holo's title.
Holo may not be the default theme and therefore we should not add
this to the title. The clients can handle determining which theme
is the default on a device and act accordingly.
Id: I162b3af97b05205c3ddf1e6ce130d05d9e0fe81f
Add query for retrieving previews of currently applied components.
Id: Ic3cffb4b762a047af40c72846e6e6bcf9a273619
Delete previews from provider when theme removed
Id: Ica221885b929f7671f048d367648f7c6f82e4529
Alias status bar background as navbar_background
Id: I3a32ea59e8fa94689d20fe92fbbc544b9da6e32b
Fix provider not updating previews due to missing action.
Id: Icd9f38ab499cfc617862be7638f06a9273dbdc22
Retrieve correct wallpaper size and store as jpeg
Id: I346516a5860819f15a6b689e6da1a6bdf4f2540f
Add style preview.
What was originally called STYLE_PREVIEW is now STYLE_THUMBNAIL and
STYLE_PREVIEW is now a larger sized image of various controls.
Id: Iecf9785e992efa98360c84af2054d3a2a113f094
Use ThemeUtils methods for getting wallpaper paths.
Id: I7fb269abe38560d638a2bad74fcfb7ed6a9a4c43
Add newly added navbar background in ThemesContract. [1/2]
Id: I6fc92388a58b69c7a52053103cf85bb348f6144a
Keep track of when a theme was installed
Id: I9cdf637d63a4ed3d14b978a7d6c019aed0afe8e0
Update provider with ComposedIconInfo changes in f/b
Id: I6ad0db5f55ed0dfb42c30cb5946f5c10af5b5a0f
Use getThemedResourcesForApplication for icons
Since we no longer pass bitmaps around in ComposedIconInfo we need
to make sure the icons are actually attached to the resources in
order to retrieve the drawables for the composed icons.
Id: I7c92ee9d4114399024743c01d0df7fcc0284c150
Themes: Let ThemeService handle all theme processing [3/3]
Id: Ied877eb5f1e96774d2e415970034d0b892765134
Add theme to db when installed and defer processing
This allows the theme to show up in the theme provider even though
the theme resources still need to be compiled. Once they are compiled
the themes provider will update the database with the previews.
Id: I2505cb875ee36975745a46469b2e55afe4fd1e68
Catch excpetions that occur when generating icon previews
Id: I22e270911af12b6bd3cd69c84205d8455f74cf79
REF: THEMES-387
Catch all exceptions for styles and systemui previews
Id: I4e3ee24e049d6dedba331175e21a143872de1f8e
Presentable themes should contian icons, wallpaper and overlays
The thems provider considered any theme with 2 or more components as
a presentable theme which may not be represented well in the Theme Chooser.
This patch makes it mandatory that a theme have icons, wallpaper and
overlays in order to be considered a presentable theme.
Id: If9918bd50125a4cd74b7926c5617c882eb89d5c2
REF: CHOOSER-2
Get working on CM12
Id: If585b1c9ee10b049f473ba2ca4ee313e09b6e715
Add column for target api
This column will allow us to easily track what version of CM a
theme was built for in case of incompatibility issues. The
system theme will have a value of 0 indicating that it works on
whatever the current api level is on the device. This prevents us
from updating the row for the system font whenever the api level
increases.
Id: Ic43b63f2f801243914124043c4f4113a6b75b914
CM11 -> CM12 Upgrade [2/3]
Renamed the "holo" theme to "system"
Id: I82f2cde2e26e0b13c95ebb0fc61253c805c0a16e
Fix String.format in upgradeToVersion11()
Id: I13917d0c7ab34ff25a6326aebc0d707780bd6769
Change-Id: Ic98ec257e56a82d7faef37c0d2a2cfe360d6e35c
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/bootanimation_preview.xml | 13 | ||||
-rw-r--r-- | res/layout/controls_preview.xml | 105 | ||||
-rw-r--r-- | res/layout/controls_thumbnail.xml | 35 |
3 files changed, 153 insertions, 0 deletions
diff --git a/res/layout/bootanimation_preview.xml b/res/layout/bootanimation_preview.xml new file mode 100644 index 0000000..c1cabf8 --- /dev/null +++ b/res/layout/bootanimation_preview.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="#000000" > + <ImageView + android:id="@+id/preview" + android:layout_width="@dimen/boot_animation_preview_width" + android:layout_height="@dimen/boot_animation_preview_height" + android:scaleType="fitCenter" + android:background="#000000"/> +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/controls_preview.xml b/res/layout/controls_preview.xml new file mode 100644 index 0000000..b15ef43 --- /dev/null +++ b/res/layout/controls_preview.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="264dp" + android:layout_height="wrap_content" + android:theme="@android:style/Theme.Material.Light"> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginEnd="37dp" + android:src="@*android:drawable/btn_star_mtrl_alpha" + android:tint="?*android:attr/colorControlNormal"/> + + <ImageView + android:layout_width="47dp" + android:layout_height="58dp" + android:layout_gravity="center_vertical" + android:src="@*android:drawable/text_select_handle_left_material"/> + + <ImageView + android:layout_width="47dp" + android:layout_height="58dp" + android:layout_gravity="center_vertical" + android:src="@*android:drawable/text_select_handle_right_material"/> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginStart="37dp" + android:src="@*android:drawable/btn_star_mtrl_alpha" + android:tint="?*android:attr/colorControlActivated"/> + + </LinearLayout> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <Button + android:layout_width="96dp" + android:layout_height="30dp" + android:layout_marginEnd="72dp" + android:textSize="12sp" + android:text="@string/controls_preview_button_text" /> + + <Switch + android:layout_width="96dp" + android:layout_height="24dp" + android:checked="true"/> + + </LinearLayout> + + <SeekBar + android:layout_width="match_parent" + android:layout_height="32dp" + android:max="100" + android:progress="50" + android:layout_marginStart="-12dp" + android:layout_marginEnd="-14dp" + android:layout_gravity="center_horizontal"/> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageView + android:layout_width="32dp" + android:layout_height="32dp" + android:layout_gravity="bottom" + android:src="@*android:drawable/btn_check_to_on_mtrl_000" /> + + <ImageView + android:layout_width="32dp" + android:layout_height="32dp" + android:layout_gravity="bottom" + android:layout_marginEnd="44dp" + android:src="@*android:drawable/btn_check_to_on_mtrl_015" /> + + <ProgressBar + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginEnd="44dp" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:src="@*android:drawable/btn_radio_to_on_mtrl_000" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:src="@*android:drawable/btn_radio_to_on_mtrl_015" /> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/controls_thumbnail.xml b/res/layout/controls_thumbnail.xml new file mode 100644 index 0000000..17f5391 --- /dev/null +++ b/res/layout/controls_thumbnail.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="64dp" + android:layout_height="64dp" + android:theme="@android:style/Theme.Material"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1"> + + <CheckBox + android:layout_width="32dp" + android:layout_height="match_parent" + android:checked="true" /> + + <RadioButton + android:layout_width="32dp" + android:layout_height="match_parent" + android:checked="true"/> + + </LinearLayout> + + <SeekBar + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_marginStart="-10dp" + android:layout_marginEnd="-10dp" + android:max="100" + android:progress="50"/> + +</LinearLayout>
\ No newline at end of file |