diff options
| -rw-r--r-- | core/res/res/values-television/themes.xml | 8 | ||||
| -rw-r--r-- | core/res/res/values-television/themes_device_defaults.xml | 2 | ||||
| -rw-r--r-- | core/res/res/values/colors_leanback.xml | 4 | ||||
| -rw-r--r-- | core/res/res/values/themes_leanback.xml | 71 |
4 files changed, 29 insertions, 56 deletions
diff --git a/core/res/res/values-television/themes.xml b/core/res/res/values-television/themes.xml index 176e89ebc691..b023c75ce367 100644 --- a/core/res/res/values-television/themes.xml +++ b/core/res/res/values-television/themes.xml @@ -14,14 +14,14 @@ limitations under the License. --> <resources> - <style name="Theme.Dialog.Alert" parent="Theme.Leanback.Light.Dialog.Alert" /> + <style name="Theme.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> <style name="Theme.Dialog.Confirmation" parent="Theme.Leanback.Dialog.Confirmation" /> <style name="Theme.Holo.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> - <style name="Theme.Holo.Light.Dialog.Alert" parent="Theme.Leanback.Light.Dialog.Alert" /> + <style name="Theme.Holo.Light.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> <style name="Theme.Material.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> - <style name="Theme.Material.Light.Dialog.Alert" parent="Theme.Leanback.Light.Dialog.Alert" /> + <style name="Theme.Material.Light.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> <style name="Theme.Material.Settings.Dialog.Alert" parent="Theme.Leanback.Settings.Dialog.Alert" /> <style name="Theme.Material.Dialog" parent="Theme.Leanback.Dialog" /> - <style name="Theme.Material.Light.Dialog" parent="Theme.Leanback.Light.Dialog" /> + <style name="Theme.Material.Light.Dialog" parent="Theme.Leanback.Dialog" /> <style name="Theme.Material.Settings.Dialog" parent="Theme.Leanback.Settings.Dialog" /> </resources> diff --git a/core/res/res/values-television/themes_device_defaults.xml b/core/res/res/values-television/themes_device_defaults.xml index d6bdeee00a9f..9d0e52213f8b 100644 --- a/core/res/res/values-television/themes_device_defaults.xml +++ b/core/res/res/values-television/themes_device_defaults.xml @@ -16,7 +16,7 @@ <resources> <style name="Theme.DeviceDefault.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> <style name="Theme.DeviceDefault.Dialog.AppError" parent="Theme.Leanback.Dialog.AppError" /> - <style name="Theme.DeviceDefault.Light.Dialog.Alert" parent="Theme.Leanback.Light.Dialog.Alert" /> + <style name="Theme.DeviceDefault.Light.Dialog.Alert" parent="Theme.Leanback.Dialog.Alert" /> <!-- TODO(b/116457731): remove colorBackground from colors_material.xml if not used anymore --> <style name="Theme.DeviceDefault.Autofill" parent="Theme.Material"> diff --git a/core/res/res/values/colors_leanback.xml b/core/res/res/values/colors_leanback.xml index df0be03d6f8e..7eee0c4aeb43 100644 --- a/core/res/res/values/colors_leanback.xml +++ b/core/res/res/values/colors_leanback.xml @@ -17,14 +17,10 @@ <!-- Colors specific to Leanback themes. --> <resources> <color name="background_leanback_dark">#ff324248</color> - <color name="background_leanback_light">#ffeeeeee</color> <color name="primary_text_leanback_dark">#cceeeeee</color> <color name="secondary_text_leanback_dark">#99eeeeee</color> - <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> <color name="btn_leanback_focused">#E8EAED</color> diff --git a/core/res/res/values/themes_leanback.xml b/core/res/res/values/themes_leanback.xml index efe582612982..0def83d7792c 100644 --- a/core/res/res/values/themes_leanback.xml +++ b/core/res/res/values/themes_leanback.xml @@ -15,27 +15,15 @@ --> <resources> <style name="Theme.Leanback.Dialog" parent="Theme.Material.BaseDialog"> - <item name="colorBackground">@color/background_leanback_dark</item> - <item name="textColorPrimary">@color/primary_text_leanback_dark</item> - <item name="textColorSecondary">@color/secondary_text_leanback_dark</item> - <item name="alertDialogStyle">@style/AlertDialog.Leanback</item> - <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> - <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> - <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> - <item name="buttonBarButtonStyle">@style/Widget.Leanback.Button.ButtonBarGravityStart</item> - <item name="buttonBarStyle">@style/Widget.Leanback.ButtonBar</item> - </style> - - <style name="Theme.Leanback.Light.Dialog" parent="Theme.Material.Light.BaseDialog"> - <item name="colorBackground">@color/background_leanback_dark</item> - <item name="textColorPrimary">@color/primary_text_leanback_dark</item> - <item name="textColorSecondary">@color/secondary_text_leanback_dark</item> - <item name="alertDialogStyle">@style/AlertDialog.Leanback</item> - <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> - <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> - <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> + <item name="colorBackground">@color/background_leanback_dark</item> + <item name="textColorPrimary">@color/primary_text_leanback_dark</item> + <item name="textColorSecondary">@color/secondary_text_leanback_dark</item> + <item name="alertDialogStyle">@style/AlertDialog.Leanback</item> + <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> + <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> + <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> <item name="buttonBarButtonStyle">@style/Widget.Leanback.Button.ButtonBarGravityStart</item> - <item name="buttonBarStyle">@style/Widget.Leanback.ButtonBar</item> + <item name="buttonBarStyle">@style/Widget.Leanback.ButtonBar</item> </style> <style name="Theme.Leanback.Settings.Dialog" parent="Theme.Material.Settings.BaseDialog"> @@ -51,34 +39,23 @@ </style> <style name="Theme.Leanback.Dialog.Alert" parent="Theme.Material.Dialog.BaseAlert"> - <item name="colorBackground">@color/background_leanback_dark</item> - <item name="textColorPrimary">@color/primary_text_leanback_dark</item> - <item name="textColorSecondary">@color/secondary_text_leanback_dark</item> - <item name="alertDialogStyle">@style/AlertDialog.Leanback</item> - <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> - <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> - <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> - <item name="buttonBarButtonStyle">@style/Widget.Leanback.Button.ButtonBarGravityStart</item> - <item name="buttonBarStyle">@style/Widget.Leanback.ButtonBar</item> - </style> - - <style name="Theme.Leanback.Light.Dialog.Alert" parent="Theme.Material.Light.Dialog.BaseAlert"> - <item name="colorBackground">@color/background_leanback_light</item> - <item name="textColorPrimary">@color/primary_text_leanback_light</item> - <item name="textColorSecondary">@color/secondary_text_leanback_light</item> - <item name="alertDialogStyle">@style/AlertDialog.Leanback.Light</item> - <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> - <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> - <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> + <item name="colorBackground">@color/background_leanback_dark</item> + <item name="textColorPrimary">@color/primary_text_leanback_dark</item> + <item name="textColorSecondary">@color/secondary_text_leanback_dark</item> + <item name="alertDialogStyle">@style/AlertDialog.Leanback</item> + <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> + <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> + <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> <item name="buttonBarButtonStyle">@style/Widget.Leanback.Button.ButtonBarGravityStart</item> - <item name="buttonBarStyle">@style/Widget.Leanback.ButtonBar</item> + <item name="buttonBarStyle">@style/Widget.Leanback.ButtonBar</item> </style> - <style name="Theme.Leanback.Settings.Dialog.Alert" parent="Theme.Material.Settings.Dialog.BaseAlert"> - <item name="colorBackground">@color/background_leanback_light</item> - <item name="textColorPrimary">@color/primary_text_leanback_light</item> - <item name="textColorSecondary">@color/secondary_text_leanback_light</item> - <item name="alertDialogStyle">@style/AlertDialog.Leanback.Light</item> + <style name="Theme.Leanback.Settings.Dialog.Alert" + parent="Theme.Material.Settings.Dialog.BaseAlert"> + <item name="colorBackground">@color/background_leanback_dark</item> + <item name="textColorPrimary">@color/primary_text_leanback_dark</item> + <item name="textColorSecondary">@color/secondary_text_leanback_dark</item> + <item name="alertDialogStyle">@style/AlertDialog.Leanback</item> <item name="timePickerStyle">@style/Widget.Leanback.TimePicker</item> <item name="datePickerStyle">@style/Widget.Leanback.DatePicker</item> <item name="numberPickerStyle">@style/Widget.Leanback.NumberPicker</item> @@ -144,9 +121,9 @@ <!-- Icon sizes --> <item name="iconfactoryIconSize">@dimen/resolver_icon_size</item> <item name="iconfactoryBadgeSize">@dimen/resolver_badge_size</item> - </style> + </style> <!-- @hide Special theme for the default system Activity-based Alert dialogs. --> - <style name="Theme.Leanback.Dialog.Confirmation" parent="Theme.DeviceDefault.Dialog.Alert" /> + <style name="Theme.Leanback.Dialog.Confirmation" parent="Theme.DeviceDefault.Dialog.Alert"/> </resources> |