Xml文件  |  193行  |  8.88 KB

<?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>

    <style name="TextOrCheckBox">
        <item name="android:textColor">@color/text_black</item>
        <item name="android:textSize">@dimen/main_text_size</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:lineSpacingMultiplier">1.2</item>
    </style>

    <style name="MainText" parent="TextOrCheckBox">
        <item name="android:paddingTop">@dimen/main_text_padding_between_text</item>
    </style>

    <style name="CheckBox" parent="TextOrCheckBox">
        <item name="android:layout_marginTop">@dimen/checkbox_margin_top</item>
        <!-- Space between the checkbox itself and the text -->
        <item name="android:paddingLeft">@dimen/checkbox_padding_left</item>
    </style>

    <style name="TransparentButton" parent="@android:style/Widget.Material.Button.Borderless.Colored">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:gravity">center</item>
        <item name="android:textSize">@dimen/button_text_size</item>
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:background">@color/transparent</item>
        <item name="android:textAllCaps">true</item>
    </style>

    <style name="MainTextContainer">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:paddingBottom">@dimen/main_text_padding_bottom</item>
        <item name="android:paddingLeft">@dimen/main_text_padding_left_right</item>
        <item name="android:paddingRight">@dimen/main_text_padding_left_right</item>
        <item name="android:paddingTop">@dimen/main_text_padding_top</item>
        <item name="android:textSize">@dimen/main_text_size</item>
        <item name="android:textColor">@color/text_black</item>
        <item name="android:lineSpacingMultiplier">1.2</item>
    </style>

    <style name="DialogFragmentTextContainer">
        <item name="android:layout_width">@dimen/dialog_fragment_width</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:orientation">vertical</item>
        <item name="android:background">@color/white</item>
        <item name="android:paddingBottom">@dimen/dialog_text_padding_bottom</item>
        <item name="android:paddingTop">@dimen/dialog_text_padding_top</item>
        <item name="android:textSize">@dimen/main_text_size</item>
        <item name="android:layout_marginTop">@dimen/dialog_fragment_margin_top_bottom</item>
        <item name="android:layout_marginBottom">@dimen/dialog_fragment_margin_top_bottom</item>
    </style>

    <style name="DialogFragmentScrollView" parent="@android:style/Widget.Material.Light.ScrollView">
        <item name="android:layout_width">match_parent</item>
        <item name="android:paddingLeft">@dimen/dialog_text_padding_left_right</item>
        <item name="android:paddingRight">@dimen/dialog_text_padding_left_right</item>
        <item name="android:fadeScrollbars">false</item>
        <item name="android:scrollbarStyle">outsideOverlay</item>
    </style>

    <style name="ManagedProvisioningDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@color/transparent</item>
        <!-- Color for checked checkbox -->
        <item name="android:colorControlActivated">@color/orange</item>
        <!-- Color for enabled button -->
        <item name="android:colorAccent">@color/accent</item>
    </style>

    <style name="Provisioning2Theme" parent="SudThemeGlifV3.Light">
        <item name="android:windowBackground">@color/white</item>
        <item name="android:colorBackground">@color/white</item>
        <item name="swiper_color">@color/teal2</item>
        <item name="sudMarginSides">@dimen/intro_margin</item>
    </style>

    <style name="Provisioning2Theme.Text">
        <item name="android:textColor">@color/black</item>
    </style>

    <style name="Provisioning2Theme.Text.Primary">
        <item name="android:textColor">@color/black_text_primary</item>
        <!--notice: line height 20sp (textSize + leading)-->
        <item name="android:textSize">16sp</item>
        <item name="android:lineSpacingExtra">4sp</item>
    </style>

    <style name="Provisioning2Theme.Text.Primary.Title">
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:textSize">@dimen/info_text_title_size</item>
    </style>

    <style name="InfoAnimationTitle" parent="SudBaseHeaderTitle">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:breakStrategy">balanced</item>
        <item name="android:gravity">center</item>
        <item name="android:singleLine">false</item>
    </style>

    <style name="Provisioning2Theme.Text.Secondary">
        <item name="android:textColor">@color/black_text_secondary</item>
        <!--notice: line height 20sp (textSize + leading)-->
        <item name="android:textSize">14sp</item>
        <item name="android:lineSpacingExtra">6sp</item>
    </style>

    <style name="Provisioning2Theme.Text.Secondary.Small">
        <!--notice: line height 20sp (textSize + leading)-->
        <item name="android:textSize">12sp</item>
        <item name="android:lineSpacingExtra">8sp</item>
    </style>

    <style name="Provisioning2Theme.Button" parent="SudGlifButton.Primary">
        <item name="android:paddingStart">@dimen/spacer_12</item>
        <item name="android:paddingEnd">@dimen/spacer_12</item>
        <item name="android:paddingTop">0dp</item>
        <item name="android:paddingBottom">0dp</item>
        <item name="android:minHeight">0dp</item>
        <item name="android:layout_gravity">center_horizontal</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:stateListAnimator">@null</item> <!-- removes button shadow -->
        <item name="android:background">@drawable/button_ripple</item>
    </style>

    <style name="Provisioning2Theme.Button.Blue">
        <item name="android:textColor">@color/white</item>
        <item name="android:backgroundTint">@color/blue_background</item>
    </style>

    <style name="Provisioning2Theme.Button.Gray">
        <item name="android:textColor">@color/gray_button_text</item>
        <item name="android:backgroundTint">@color/gray</item>
    </style>

    <style name="Provisioning2Theme.Button.Transparent">
        <item name="android:textColor">@color/blue_text</item>
        <item name="android:background">@null</item>
        <item name="android:textAllCaps">false</item>
    </style>

    <style name="Provisioning2Theme.Divider">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">1dp</item>
        <item name="android:background">@color/gray_divider</item>
    </style>

    <style name="NonGlifTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
        <item name="android:windowAnimationStyle">@style/Animation.SudWindowAnimation</item>
        <item name="actionBarTheme">@style/NonGlifToolbarTheme</item>
    </style>

    <style name="NonGlifToolbarTheme" parent="android:style/Theme.Material.Light.DarkActionBar">
        <item name="android:background">#FFFFFF</item>
        <item name="android:textColorPrimary">@*android:color/accent_device_default_light</item>
        <item name="android:textColorSecondary">@*android:color/accent_device_default_light</item>
        <item name="android:navigationIcon">@drawable/ic_arrow_back_24dp</item>
        <item name="android:navigationContentDescription">@*android:string/action_bar_up_description</item>
    </style>

    <style name="ProvisioningProgressText">
        <item name="android:textColor">@color/blue_text</item>
    </style>

    <style name="SetupWizardPartnerResource">
        <!-- Disable to use partner overlay theme for outside setupwizard flow. -->
        <item name="sucUsePartnerResource">false</item>
    </style>
</resources>