]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/values/styles.xml
Refactor style code to use attrs.xml. Create a dark theme for Find on Page.
[PrivacyBrowserAndroid.git] / app / src / main / res / values / styles.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <resources>
22     <!-- Light theme styles. -->
23
24     <!-- `android:windowTranslucentStatus` makes the system status bar translucent.
25          When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
26     <style name="PrivacyBrowserLight" parent="Theme.AppCompat.Light.NoActionBar" >
27         <item name="android:windowTranslucentStatus">true</item>
28         <item name="colorAccent">@color/blue_700</item>
29         <item name="android:textColorHighlight">@color/blue_200</item>
30         <item name="navigationHeaderBackground">@color/blue_700</item>
31         <item name="navigationHeaderTextColor">@color/white</item>
32         <item name="appBarTheme">@style/PrivacyBrowserAppBarLight</item>
33         <item name="progressTintColor">@color/blue_700</item>
34         <item name="navigationIconTintColor">@color/blue_800</item>
35         <item name="findOnPageIconTintColor">@color/blue_700</item>
36     </style>
37
38     <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar.
39          `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
40     <style name="PrivacyBrowserLight.SecondaryActivity" >
41         <item name="windowActionModeOverlay">true</item>
42         <item name="colorPrimaryDark">@color/blue_700</item>
43         <item name="android:textColorHighlight">@color/blue_200</item>
44         <item name="android:actionModeBackground">@color/blue_700</item>
45         <item name="aboutTitle">@color/blue_900</item>
46         <item name="aboutText">@color/blue_700</item>
47         <item name="actionBarPopupTheme">@style/PrivacyBrowserPopupsLight</item>
48         <item name="appBarTextTheme">@style/PrivacyBrowserAppBarWhiteText</item>
49         <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutLight</item>
50     </style>
51
52     <!-- `colorPrimaryDark` is the color of the status bar. -->
53     <style name="Settings" parent="Theme.AppCompat.Light.DarkActionBar" >
54         <item name="colorPrimary">@color/blue_700</item>
55         <item name="colorPrimaryDark">@color/blue_900</item>
56         <item name="colorAccent">@color/blue_700</item>
57     </style>
58
59     <!-- `ThemeOverlay.AppCompat.ActionBar` makes the hamburger icons dark. -->
60     <style name="PrivacyBrowserAppBarLight" parent="ThemeOverlay.AppCompat.ActionBar" />
61
62     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
63     <style name="PrivacyBrowserAppBarWhiteText" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
64
65     <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a light background with dark text. -->
66     <style name="PrivacyBrowserPopupsLight" parent="ThemeOverlay.AppCompat.Light" />
67
68     <!-- Configure the About and Guide `TabLayouts`. -->
69     <style name="PrivacyBrowserTabLayoutLight" parent="Widget.Design.TabLayout" >
70         <item name="android:textColorPrimary">@color/white</item>
71         <item name="android:textColorSecondary">@color/blue_100</item>
72         <item name="tabIndicatorColor">@color/white</item>
73     </style>
74
75     <style name="LightAlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert" >
76         <item name="colorAccent">@color/blue_700</item>
77     </style>
78
79     <!-- Dark theme styles. -->
80
81     <!-- `android:windowTranslucentStatus` makes the system status bar translucent.
82          When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
83     <style name="PrivacyBrowserDark" parent="Theme.AppCompat.NoActionBar" >
84         <item name="android:windowTranslucentStatus">true</item>
85         <item name="android:textColorPrimary">@color/dark_primary_text_color_selector</item>
86         <item name="colorAccent">@color/blue_900</item>
87         <item name="android:textColorHighlight">@color/blue_800</item>
88         <item name="navigationHeaderBackground">@color/blue_900</item>
89         <item name="navigationHeaderTextColor">@color/gray_300</item>
90         <item name="appBarTheme">@style/PrivacyBrowserAppBarDark</item>
91         <item name="progressTintColor">@color/blue_800</item>
92         <item name="navigationIconTintColor">@color/blue_900</item>
93         <item name="findOnPageIconTintColor">@color/blue_900</item>
94     </style>
95
96     <style name="PrivacyBrowserDark.SecondaryActivity" >
97         <item name="colorPrimaryDark">@color/blue_900</item>
98         <item name="aboutTitle">@color/blue_700</item>
99         <item name="aboutText">@color/blue_400</item>
100         <item name="appBarTextTheme">@style/PrivacyBrowserAppBarDark</item>
101         <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutDark</item>
102     </style>
103
104     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
105     <style name="PrivacyBrowserAppBarDark" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
106         <item name="android:textColorPrimary">@color/gray_300</item>
107     </style>
108
109     <!-- Configure the About and Guide `TabLayouts`. -->
110     <style name="PrivacyBrowserTabLayoutDark" parent="Widget.Design.TabLayout" >
111         <item name="tabBackground">@color/blue_900</item>
112         <item name="android:textColorSecondary">@color/blue_700</item>
113         <item name="tabIndicatorColor">@color/gray_300</item>
114     </style>
115
116     <!-- `ThemeOverlay.AppCompat.Dark` makes the popups have a dark background with light text. -->
117     <!-- <style name="PrivacyBrowserPopupOverlayDark" parent="ThemeOverlay.AppCompat.Dark" /> -->
118
119     <!-- -->
120     <!--<style name="PrivacyBrowserToolbarDark" parent="Widget.AppCompat.Toolbar" >
121         <item name="android:background">@color/gray_900</item>
122     </style> -->
123 </resources>