From aafe3d9b0d01c0734f6a566caded0d873622ea52 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sun, 8 Oct 2017 10:27:47 +0100 Subject: msm8996-common: Doze: Re-integrate into Settings * Apply the default Oreo theme and inherit the layouts from Google for the Settings app, in order to keep UI consistency. * Get rid of SettingsDrawerActivity as it no longer fits in and include the back button in the action bar. * Kill the icon drawable not only because is a leftover, but also doesn't really serve any puropose in the new UI. Change-Id: I53b6d3bb99d63852ba34d71e16ae99f05223569e Signed-off-by: Davide Garberi --- doze/res/drawable/ic_settings_doze.xml | 51 ------------------------------ doze/res/drawable/switchbar_background.xml | 3 +- doze/res/layout/switch_bar.xml | 4 +-- doze/res/values/colors.xml | 23 -------------- doze/res/values/styles.xml | 41 ++++++++++++++++++++---- 5 files changed, 37 insertions(+), 85 deletions(-) delete mode 100644 doze/res/drawable/ic_settings_doze.xml delete mode 100644 doze/res/values/colors.xml (limited to 'doze/res') diff --git a/doze/res/drawable/ic_settings_doze.xml b/doze/res/drawable/ic_settings_doze.xml deleted file mode 100644 index 8386024..0000000 --- a/doze/res/drawable/ic_settings_doze.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - diff --git a/doze/res/drawable/switchbar_background.xml b/doze/res/drawable/switchbar_background.xml index 45f1578..314ed12 100644 --- a/doze/res/drawable/switchbar_background.xml +++ b/doze/res/drawable/switchbar_background.xml @@ -16,6 +16,5 @@ - + - diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml index d25948b..7199174 100644 --- a/doze/res/layout/switch_bar.xml +++ b/doze/res/layout/switch_bar.xml @@ -33,7 +33,7 @@ android:maxLines="2" android:ellipsize="end" android:textAppearance="@android:style/TextAppearance.Material.Title" - android:textColor="?android:attr/textColorPrimaryInverse" + android:textColor="?android:attr/textColorPrimary" android:textAlignment="viewStart" /> + android:theme="@style/Theme.Main.SwitchBar" /> diff --git a/doze/res/values/colors.xml b/doze/res/values/colors.xml deleted file mode 100644 index d598598..0000000 --- a/doze/res/values/colors.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - #ff37474f - #ff7fcac3 - #ff37474F - diff --git a/doze/res/values/styles.xml b/doze/res/values/styles.xml index f64a2b8..082e53c 100644 --- a/doze/res/values/styles.xml +++ b/doze/res/values/styles.xml @@ -15,16 +15,43 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + + + + + + + + + + -- cgit v1.2.3