diff options
Diffstat (limited to 'res/values-television')
-rw-r--r-- | res/values-television/colors.xml | 28 | ||||
-rw-r--r-- | res/values-television/dimens.xml | 43 | ||||
-rw-r--r-- | res/values-television/strings.xml | 28 | ||||
-rw-r--r-- | res/values-television/themes.xml | 45 |
4 files changed, 144 insertions, 0 deletions
diff --git a/res/values-television/colors.xml b/res/values-television/colors.xml new file mode 100644 index 00000000..1fe60dc7 --- /dev/null +++ b/res/values-television/colors.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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> + <color name="grant_permissions_background_color">#ff263238</color> + <color name="grant_permissions_app_color">@color/grant_permissions_white_text_alpha_100</color> + <color name="grant_permissions_progress_color">@color/grant_permissions_white_text_alpha_100</color> + <color name="grant_permissions_title_color">@color/grant_permissions_white_text_alpha_70</color> + <color name="grant_permissions_body_color">@color/grant_permissions_white_text_alpha_70</color> + <color name="grant_permissions_button_color">@color/grant_permissions_white_text_alpha_100</color> + <color name="grant_permissions_focus_highlight">#26eeeeee</color> + + <color name="grant_permissions_white_text_alpha_100">#ffeeeeee</color> + <color name="grant_permissions_white_text_alpha_70">#b2eeeeee</color> +</resources> diff --git a/res/values-television/dimens.xml b/res/values-television/dimens.xml new file mode 100644 index 00000000..03038386 --- /dev/null +++ b/res/values-television/dimens.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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> + <dimen name="grant_permissions_app_icon_size">64dp</dimen> + <dimen name="grant_permissions_app_icon_margin_top">19dp</dimen> + + <dimen name="grant_permissions_app_breadcrumb_margin_bottom">3dp</dimen> + <dimen name="grant_permissions_app_title_margin_bottom">18dp</dimen> + <dimen name="grant_permissions_app_details_margin_bottom">8dp</dimen> + + <dimen name="action_dialog_z">16dp</dimen> + <dimen name="action_dialog_padding_left">52dp</dimen> + <dimen name="action_dialog_padding_right">40dp</dimen> + <dimen name="action_dialog_padding_top">41dp</dimen> + <dimen name="action_dialog_padding_bottom">27dp</dimen> + + <dimen name="action_dialog_content_margin_left">24dp</dimen> + <dimen name="action_dialog_content_margin_right">32dp</dimen> + + <dimen name="action_dialog_actions_width">304dp</dimen> + <dimen name="action_dialog_actions_margin_left">24dp</dimen> + <dimen name="action_dialog_actions_margin_top">18dp</dimen> + + <dimen name="action_dialog_button_padding_left">16dp</dimen> + <dimen name="action_dialog_button_padding_right">16dp</dimen> + <dimen name="action_dialog_button_padding_top">14dp</dimen> + <dimen name="action_dialog_button_padding_bottom">15dp</dimen> + <dimen name="action_dialog_button_min_height">48dp</dimen> +</resources> diff --git a/res/values-television/strings.xml b/res/values-television/strings.xml new file mode 100644 index 00000000..32517c67 --- /dev/null +++ b/res/values-television/strings.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Title for the dialog button to deny a permission grant and never ask the user again. --> + <string name="grant_dialog_button_deny_dont_ask_again">Deny and don\'t ask again</string> + + <!-- Instructional text telling the user how to change permission grants later. --> + <string name="grant_dialog_how_to_change">You can change this later in Settings > Apps</string> + + <!-- Template for the current permission from the total number of permissions. --> + <string name="current_permission_template"> + <xliff:g id="current_permission_index" example="1">%1$s</xliff:g> / + <xliff:g id="permission_count" example="2">%2$s</xliff:g></string> +</resources> diff --git a/res/values-television/themes.xml b/res/values-television/themes.xml index 04855490..de4ff092 100644 --- a/res/values-television/themes.xml +++ b/res/values-television/themes.xml @@ -17,4 +17,49 @@ <resources> <style name="Settings" parent="Theme.Leanback" /> + + <style name="GrantPermissions" parent="Theme.Leanback"> + <item name="android:windowIsFloating">true</item> + <item name="android:windowAnimationStyle">@style/Animation.Snackbar</item> + <item name="android:windowElevation">@dimen/action_dialog_z</item> + </style> + + <style name="GrantPermissions.BreadcrumbText"> + <item name="android:fontFamily">sans-serif-condensed</item> + <item name="android:textSize">14sp</item> + <item name="android:textColor">@color/grant_permissions_progress_color</item> + </style> + + <style name="GrantPermissions.TitleText"> + <item name="android:fontFamily">sans-serif-light</item> + <item name="android:textSize">24sp</item> + <item name="android:textColor">@color/grant_permissions_title_color</item> + <item name="android:lineSpacingMultiplier">1.221</item> + </style> + + <style name="GrantPermissions.BodyText"> + <item name="android:fontFamily">sans-serif</item> + <item name="android:textSize">14sp</item> + <item name="android:textColor">@color/grant_permissions_body_color</item> + <item name="android:lineSpacingMultiplier">1.465</item> + </style> + + <style name="GrantPermissions.ActionItem"> + <item name="android:gravity">left|center_vertical</item> + <item name="android:fontFamily">sans-serif-condensed</item> + <item name="android:textSize">14sp</item> + <item name="android:textColor">@color/grant_permissions_button_color</item> + <item name="android:lineSpacingMultiplier">1</item> + <item name="android:background">@drawable/grant_permissions_action_item</item> + <item name="android:paddingLeft">@dimen/action_dialog_button_padding_left</item> + <item name="android:paddingRight">@dimen/action_dialog_button_padding_right</item> + <item name="android:paddingTop">@dimen/action_dialog_button_padding_top</item> + <item name="android:paddingBottom">@dimen/action_dialog_button_padding_bottom</item> + <item name="android:minHeight">@dimen/action_dialog_button_min_height</item> + </style> + + <style name="Animation.Snackbar" parent="@android:style/Animation"> + <item name="android:windowEnterAnimation">@anim/snackbar_enter</item> + <item name="android:windowExitAnimation">@anim/snackbar_exit</item> + </style> </resources> |