aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/values/themes.xml
blob: 8e0ea6ac01b967d91764ac0b4a2389c8019e34c7 (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
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <style name="KeychainTheme" parent="KeychainTheme.Base" />

    <style name="KeychainTheme.Base" parent="Theme.AppCompat.Light">
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/accent</item>

        <!-- remove actionbar and title, we use toolbar! -->
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <!-- multi selection should overlay Toolbar! http://stackoverflow.com/a/26450875 -->
        <item name="windowActionModeOverlay">true</item>
        <item name="searchViewStyle">@style/MySearchViewStyle</item>
    </style>

    <!-- http://android-developers.blogspot.de/2014/10/appcompat-v21-material-design-for-pre.html -->
    <style name="MySearchViewStyle" parent="Widget.AppCompat.SearchView">
        <!-- Background for the search query section (e.g. EditText) -->
        <!--<item name="queryBackground">...</item>-->
        <!-- Background for the actions section (e.g. voice, submit) -->
        <!--<item name="submitBackground">...</item>-->
        <!-- Close button icon -->
        <item name="closeIcon">@drawable/ic_close_white_24dp</item>
        <!-- Search button icon -->
        <!--<item name="searchIcon">...</item>-->
        <!-- Go/commit button icon -->
        <!--<item name="goIcon">...</item>-->
        <!-- Voice search button icon -->
        <!--<item name="voiceIcon">...</item>-->
        <!-- Commit icon shown in the query suggestion row -->
        <!--<item name="commitIcon">...</item>-->
        <!-- Layout for query suggestion rows -->
        <!--<item name="suggestionRowLayout">...</item>-->
    </style>

    <style name="KeychainTheme.YubiKeyDialog" parent="@style/Theme.AppCompat.Light.Dialog.MinWidth">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>
</resources>