aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/values/styles.xml
blob: 11d2bfde4e155118a657c6cf9b492cbc06d1adf0 (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
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Used in Android < 4 -->

    <style name="KeychainThemeOLD" parent="@style/Theme.AppCompat.Light">
        <item name="android:alertDialogStyle">@style/CustomDialogTheme</item>
    </style>

    <!-- Ugly fix to make content background of Dialogs on Android < 4 white not black! -->
    <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog">
        <item name="android:fullDark">@drawable/popup_full_bright</item>
        <!--<item name="android:topDark">@android:drawable/popup_full_dark</item>-->
        <item name="android:centerDark">@drawable/popup_center_bright</item>
        <!--<item name="android:bottomDark">@android:drawable/popup_bottom_dark</item>-->
        <!--<item name="fullBright">@android:drawable/popup_full_bright</item>-->
        <!--<item name="topBright">@android:drawable/popup_top_bright</item>-->
        <!--<item name="centerBright">@android:drawable/popup_center_bright</item>-->
        <!--<item name="bottomBright">@android:drawable/popup_bottom_bright</item>-->
        <!--<item name="bottomMedium">@android:drawable/popup_bottom_medium</item>-->
        <!--<item name="centerMedium">@android:drawable/popup_center_medium</item>-->
    </style>

    <style name="SectionHeader">
        <item name="android:drawableBottom">@drawable/section_header</item>
        <item name="android:drawablePadding">4dp</item>
        <item name="android:layout_marginTop">8dp</item>
        <item name="android:paddingLeft">8dp</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textColor">@color/emphasis</item>
        <item name="android:textSize">14sp</item>
    </style>

    <style name="SelectableItem">
        <item name="android:background">@drawable/selector_transparent_button</item>
    </style>

    <!--
        Make Toolbar with white text and white overflow menu
        http://www.murrayc.com/permalink/2014/10/28/android-changing-the-toolbars-text-color-and-overflow-icon-color/
    -->
    <style name="KeychainToolbarOverflow" parent="KeychainTheme">
        <!-- android:textColorPrimary is the  color of the title text
             in the Toolbar, in the Theme.AppCompat theme:  -->
        <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>

        <!-- android:textColorPrimaryInverse is the  color of the title
             text in the Toolbar, in the Theme.AppCompat.Light theme:  -->
        <!-- <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item> -->

        <!-- android:actionMenuTextColor is the color of the text of
              action (menu) items in the Toolbar, at least in the
              Theme.AppCompat theme.
              For some reason, they already get the textColorPrimary
              when running on API 21, but not on older versions of
              Android, so this is only necessary to support older
              Android versions.-->
        <item name="actionMenuTextColor">@color/abc_primary_text_material_dark</item>
        <!-- android:textColorSecondary is the color of the menu
             overflow icon (three vertical dots) -->
        <item name="android:textColorSecondary">@color/abc_primary_text_material_dark</item>

        <!-- This would set the toolbar's background color,
              but setting this also changes the popup menu's background,
              even if we define popupTheme for our <Toolbar> -->
        <!-- <item name="android:background">@color/color_primary</item> -->
    </style>

</resources>