diff options
author | Justin Mattson <jmatt@google.com> | 2014-08-15 01:25:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-13 23:16:37 +0000 |
commit | d3a73b254561f1f2f626d58f775a5d66240b9104 (patch) | |
tree | f12cd74632f9a49c63761133976408e5f2e63c82 /core | |
parent | d7df9d7b38064b81e1b035893001499e79fc3cc0 (diff) | |
parent | 90c8466216ef3299f8d719ab5b7437119b95c5db (diff) | |
download | frameworks_base-d3a73b254561f1f2f626d58f775a5d66240b9104.zip frameworks_base-d3a73b254561f1f2f626d58f775a5d66240b9104.tar.gz frameworks_base-d3a73b254561f1f2f626d58f775a5d66240b9104.tar.bz2 |
Merge "Tweak leanback form style" into lmp-dev
Diffstat (limited to 'core')
-rw-r--r-- | core/res/res/color/primary_text_leanback_formwizard_dark.xml | 22 | ||||
-rw-r--r-- | core/res/res/values/colors_leanback.xml | 1 | ||||
-rw-r--r-- | core/res/res/values/dimens_leanback.xml | 19 | ||||
-rw-r--r-- | core/res/res/values/styles_leanback.xml | 6 | ||||
-rw-r--r-- | core/res/res/values/themes_leanback.xml | 1 |
5 files changed, 48 insertions, 1 deletions
diff --git a/core/res/res/color/primary_text_leanback_formwizard_dark.xml b/core/res/res/color/primary_text_leanback_formwizard_dark.xml new file mode 100644 index 0000000..8fe02b2 --- /dev/null +++ b/core/res/res/color/primary_text_leanback_formwizard_dark.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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:state_enabled="false" + android:alpha="@dimen/disabled_alpha_leanback_formwizard" + android:color="@color/primary_text_leanback_formwizard_default_dark"/> + <item android:color="@color/primary_text_leanback_formwizard_default_dark"/> +</selector> diff --git a/core/res/res/values/colors_leanback.xml b/core/res/res/values/colors_leanback.xml index dc0c673..e52a861 100644 --- a/core/res/res/values/colors_leanback.xml +++ b/core/res/res/values/colors_leanback.xml @@ -25,4 +25,5 @@ <color name="primary_text_leanback_light">#cc222222</color> <color name="secondary_text_leanback_light">#99222222</color> + <color name="primary_text_leanback_formwizard_default_dark">#ffeeeeee</color> </resources> diff --git a/core/res/res/values/dimens_leanback.xml b/core/res/res/values/dimens_leanback.xml new file mode 100644 index 0000000..fb5f8f0 --- /dev/null +++ b/core/res/res/values/dimens_leanback.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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> + <!-- Default alpha value for disabled elements. --> + <item name="disabled_alpha_leanback_formwizard" format="float" type="dimen">0.2</item> +</resources> diff --git a/core/res/res/values/styles_leanback.xml b/core/res/res/values/styles_leanback.xml index 256ef00..72735f7 100644 --- a/core/res/res/values/styles_leanback.xml +++ b/core/res/res/values/styles_leanback.xml @@ -39,25 +39,29 @@ <style name="TextAppearance.Leanback.FormWizard" parent="@style/TextAppearance.Material"> <item name="textSize">18sp</item> <item name="fontFamily">sans-serif-light</item> + <item name="textColor">?attr/textColorPrimary</item> </style> <style name="TextAppearance.Leanback.FormWizard.Small" parent="@style/TextAppearance.Material.Small"> <item name="textSize">18sp</item> <item name="fontFamily">sans-serif-light</item> + <item name="textColor">?attr/textColorPrimary</item> </style> <style name="TextAppearance.Leanback.FormWizard.Medium" parent="@style/TextAppearance.Material.Medium"> <item name="textSize">36sp</item> <item name="fontFamily">sans-serif-thin</item> + <item name="textColor">?attr/textColorPrimary</item> </style> <style name="TextAppearance.Leanback.FormWizard.Large" parent="@style/TextAppearance.Material.Large"> <item name="textSize">56sp</item> <item name="fontFamily">sans-serif-thin</item> + <item name="textColor">?attr/textColorPrimary</item> </style> <style name="TextAppearance.Leanback.FormWizard.ListItem" parent="@style/TextAppearance.Material.Subhead"> - <item name="textSize">18sp</item> + <item name="textSize">16sp</item> <item name="fontFamily">sans-serif-condensed</item> </style> diff --git a/core/res/res/values/themes_leanback.xml b/core/res/res/values/themes_leanback.xml index 321b827..1cda843 100644 --- a/core/res/res/values/themes_leanback.xml +++ b/core/res/res/values/themes_leanback.xml @@ -57,5 +57,6 @@ <item name="textAppearanceLarge">@style/TextAppearance.Leanback.FormWizard.Large</item> <item name="textAppearanceListItem">@style/TextAppearance.Leanback.FormWizard.ListItem</item> <item name="textAppearance">@style/TextAppearance.Leanback.FormWizard</item> + <item name="textColorPrimary">@color/primary_text_leanback_formwizard_dark</item> </style> </resources> |