<?xml version="1.0" encoding="utf-8"?>
<!--
 * Copyright (c) 2016, 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>
    <!-- A radio button that will have a ripple effect when touched. -->
    <style name="HvacButton.Ripple" parent="@android:style/Widget.Material.Button.Borderless">
        <item name="android:background">@drawable/ripple_background</item>
    </style>
    <!-- A radio button that has an image with a ripple effect. -->
    <style name="HvacButton.Ripple.Image">
        <item name="android:scaleType">fitCenter</item>
    </style>
    <!-- Font for the temperature text inside the HVAC panel controls-->
    <style name="HvacTemperatureFont">
        <item name="android:textSize">@dimen/temperature_bar_text_size</item>
        <item name="android:textColor">#000000</item>
    </style>
    <style name="HvacTemperature" parent="HvacTemperatureFont">
        <item name="android:layout_marginLeft">@dimen/hvac_text_left_margin</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
    </style>
    <style name="HvacTemperatureOff" parent="HvacTemperatureFont">
        <item name="android:gravity">center</item>
        <item name="android:textAllCaps">true</item>
        <item name="android:text">@string/hvac_temperature_off</item>
        <item name="android:layout_gravity">center_horizontal|bottom</item>
        <item name="android:layout_width">@dimen/temperature_off_text_bg_width</item>
        <item name="android:layout_height">@dimen/temperature_off_text_bg_height</item>
        <item name="android:layout_marginBottom">@dimen/temperature_bar_off_text_bottom_margin</item>
    </style>

    <style name="HvacTemperatureControlIcon">
        <item name="android:scaleType">center</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">@dimen/temperature_control_arrow_height</item>
        <item name="android:layout_centerHorizontal">true</item>
        <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
    </style>

    <style name="HvacFanSpeedBar">
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_weight">1</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:layout_marginTop">12dp</item>
        <item name="android:layout_marginBottom">12dp</item>
        <item name="android:layout_marginEnd">@dimen/hvac_fan_speed_bar_segment_margin</item>
        <item name="android:layout_marginStart">@dimen/hvac_fan_speed_bar_segment_margin</item>
        <item name="android:layout_gravity">center</item>
    </style>

    <style name="HvacFanSpeedText">
        <item name="android:gravity">center</item>
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_weight">1</item>
        <item name="android:layout_marginTop">12dp</item>
        <item name="android:layout_marginBottom">12dp</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:textSize">@dimen/hvac_fan_speed_bar_text_size</item>
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:textColor">@color/hvac_icon_color</item>
        <item name="android:layout_centerVertical">true</item>
    </style>

    <style name="HvacSpacerView" >
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_height">1dp</item>
        <item name="android:layout_weight">1</item>
    </style>

    <style name="HvacButton.FanDirection" parent="HvacButton">
        <item name="android:alpha">0.5</item>
        <item name="android:layout_gravity">center</item>
        <item name="android:scaleType">fitCenter</item>
    </style>

    <style name="HvacButton">
        <item name="android:layout_width">@dimen/hvac_panel_button_dimen</item>
        <item name="android:layout_height">@dimen/hvac_panel_button_dimen</item>
    </style>
</resources>