summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/theme/res/values/styles.xml
blob: 8412aaadfc1948d42cb75bbc7c9c0a1e8528c1c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!--
  ~ Copyright (C) 2012 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="CallLogCardStyle" parent="CardView">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_margin">4dp</item>
    <item name="android:baselineAligned">false</item>
    <item name="cardCornerRadius">2dp</item>
    <item name="cardBackgroundColor">@color/background_dialer_call_log_list_item</item>
  </style>

  <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
  since the Alert dialog is private. They are identical anyway. -->
  <style name="AlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
    <item name="android:colorAccent">@color/dialtacts_theme_color</item>
  </style>

  <style name="TextActionStyle">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">@dimen/call_log_action_height</item>
    <item name="android:gravity">end|center_vertical</item>
    <item name="android:paddingStart">@dimen/call_log_action_horizontal_padding</item>
    <item name="android:paddingEnd">@dimen/call_log_action_horizontal_padding</item>
    <item name="android:textColor">@color/dialtacts_theme_color</item>
    <item name="android:fontFamily">"sans-serif-medium"</item>
    <item name="android:focusable">true</item>
    <item name="android:singleLine">true</item>
    <item name="android:textAllCaps">true</item>
  </style>

  <style name="DialerButtonTextStyle" parent="@android:style/TextAppearance.Material.Widget.Button">
    <item name="android:textColor">@color/dialer_primary_text_color_white</item>
  </style>

  <style name="DialerActionBarBaseStyle"
    parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
    <item name="android:background">@color/actionbar_background_color</item>
    <item name="background">@color/actionbar_background_color</item>
  </style>

  <!-- This Checkbox style helps align checkboxes with the common list element layout(Image + text) -->
  <style name="DialerCheckboxStyle" parent="Widget.AppCompat.CompoundButton.CheckBox">
    <item name="android:layout_marginStart">20dp</item>
    <item name="android:paddingLeft">12dp</item>
  </style>
</resources>