8f9c5939b5116e029d0f6f0c5a5cd1d783e5e089
[PrivacyBrowser.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.  When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
25     <style name="PrivacyBrowserLight" parent="Theme.AppCompat.Light.NoActionBar" >
26         <item name="android:windowTranslucentStatus">true</item>
27         <item name="android:textColorPrimary">@color/primary_text_color_selector_light</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_800</item>
36         <item name="sslHeader">@color/blue_700</item>
37         <item name="sslTitle">@color/blue_900</item>
38         <item name="urlHistoryText">@color/black</item>
39         <item name="redText">@color/red_a700</item>
40         <item name="dialogTabLayoutTheme">@style/PrivacyBrowserTabLayoutDialogLight</item>
41     </style>
42
43     <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar.  `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
44     <style name="PrivacyBrowserLight.SecondaryActivity" >
45         <item name="windowActionModeOverlay">true</item>
46         <item name="colorPrimaryDark">@color/blue_700</item>
47         <item name="android:textColorHighlight">@color/blue_200</item>
48         <item name="android:actionModeBackground">@color/blue_700</item>
49         <item name="bookmarksSpinnerHeaderTextColor">@color/white</item>
50         <item name="bookmarksSpinnerTextColorSelector">@color/bookmarks_spinner_color_selector_light</item>
51         <item name="bookmarksSpinnerBackground">@color/blue_750</item>
52         <item name="editBookmarkSpinnerTextColorSelector">@color/edit_bookmark_spinner_color_selector_light</item>
53         <item name="listSelectorDrawable">@drawable/list_selector_light</item>
54         <item name="aboutTitle">@color/blue_900</item>
55         <item name="aboutText">@color/blue_700</item>
56         <item name="aboutBackground">@color/white</item>
57         <item name="iconTintColor">@color/blue_800</item>
58         <item name="deleteIcon">@drawable/delete_light</item>
59         <item name="addIcon">@drawable/add_light</item>
60         <item name="addBookmarkIcon">@drawable/create_bookmark_light</item>
61         <item name="addFolderIcon">@drawable/create_folder_light</item>
62         <item name="selectAllIcon">@drawable/select_all_light</item>
63         <item name="editIcon">@drawable/edit_light</item>
64         <item name="moveToFolderIcon">@drawable/move_to_folder_light</item>
65         <item name="actionBarPopupTheme">@style/PrivacyBrowserPopupsLight</item>
66         <item name="appBarTextTheme">@style/PrivacyBrowserAppBarWhiteText</item>
67         <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutLight</item>
68         <item name="popupsTheme">@style/PrivacyBrowserPopupsLight</item>
69     </style>
70
71     <!-- `colorPrimaryDark` is the color of the status bar. -->
72     <style name="PrivacyBrowserSettingsLight" parent="Theme.AppCompat.Light.DarkActionBar" >
73         <item name="colorPrimary">@color/blue_700</item>
74         <item name="colorPrimaryDark">@color/blue_900</item>
75         <item name="colorAccent">@color/blue_700</item>
76         <item name="userAgentIcon">@drawable/user_agent_light</item>
77         <item name="searchIcon">@drawable/search_enabled_light</item>
78         <item name="homepageIcon">@drawable/home_enabled_light</item>
79         <item name="fontSizeIcon">@drawable/font_size_light</item>
80     </style>
81
82     <!-- `ThemeOverlay.AppCompat.ActionBar` makes the hamburger icons dark. -->
83     <style name="PrivacyBrowserAppBarLight" parent="ThemeOverlay.AppCompat.ActionBar" />
84
85     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
86     <style name="PrivacyBrowserAppBarWhiteText" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
87
88     <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a light background with dark text. -->
89     <style name="PrivacyBrowserPopupsLight" parent="ThemeOverlay.AppCompat.Light" />
90
91     <!-- Configure the About and Guide `TabLayouts`. -->
92     <style name="PrivacyBrowserTabLayoutLight" parent="Widget.Design.TabLayout" >
93         <item name="android:textColorPrimary">@color/white</item>
94         <item name="android:textColorSecondary">@color/blue_100</item>
95         <item name="tabIndicatorColor">@color/white</item>
96     </style>
97
98     <style name="PrivacyBrowserTabLayoutDialogLight" parent="Widget.Design.TabLayout" >
99         <item name="android:textColorPrimary">@color/blue_700</item>
100         <item name="android:textColorSecondary">@color/blue_700_50</item>
101     </style>
102
103     <style name="PrivacyBrowserAlertDialogLight" parent="Theme.AppCompat.Light.Dialog.Alert" >
104         <item name="colorAccent">@color/blue_700</item>
105     </style>
106
107
108     <!-- Dark theme styles. -->
109
110     <!-- `android:windowTranslucentStatus` makes the system status bar translucent.  When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
111     <style name="PrivacyBrowserDark" parent="Theme.AppCompat.NoActionBar" >
112         <item name="android:windowTranslucentStatus">true</item>
113         <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
114         <item name="colorAccent">@color/blue_600</item>
115         <item name="android:textColorHighlight">@color/blue_800</item>
116         <item name="navigationHeaderBackground">@color/blue_800</item>
117         <item name="navigationHeaderTextColor">@color/gray_300</item>
118         <item name="appBarTheme">@style/PrivacyBrowserAppBarDark</item>
119         <item name="progressTintColor">@color/blue_600</item>
120         <item name="navigationIconTintColor">@color/blue_600</item>
121         <item name="findOnPageIconTintColor">@color/blue_600</item>
122         <item name="sslHeader">@color/blue_400</item>
123         <item name="sslTitle">@color/blue_700</item>
124         <item name="urlHistoryText">@color/gray_200</item>
125         <item name="redText">@color/red_900</item>
126     </style>
127
128     <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar.  `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
129     <style name="PrivacyBrowserDark.SecondaryActivity" >
130         <item name="windowActionModeOverlay">true</item>
131         <item name="colorPrimaryDark">@color/blue_800</item>
132         <item name="android:actionModeBackground">@color/blue_800</item>
133         <item name="bookmarksSpinnerHeaderTextColor">@color/gray_300</item>
134         <item name="bookmarksSpinnerTextColorSelector">@color/bookmarks_spinner_color_selector_dark</item>
135         <item name="bookmarksSpinnerBackground">@color/blue_830</item>
136         <item name="editBookmarkSpinnerTextColorSelector">@color/edit_bookmark_spinner_color_selector_dark</item>
137         <item name="aboutTitle">@color/blue_600</item>
138         <item name="aboutText">@color/blue_400</item>
139         <item name="aboutBackground">@color/gray_850</item>
140         <item name="listSelectorDrawable">@drawable/list_selector_dark</item>
141         <item name="iconTintColor">@color/blue_600</item>
142         <item name="deleteIcon">@drawable/delete_dark</item>
143         <item name="addIcon">@drawable/add_dark</item>
144         <item name="addBookmarkIcon">@drawable/create_bookmark_dark</item>
145         <item name="addFolderIcon">@drawable/create_folder_dark</item>
146         <item name="selectAllIcon">@drawable/select_all_dark</item>
147         <item name="editIcon">@drawable/edit_dark</item>
148         <item name="moveToFolderIcon">@drawable/move_to_folder_dark</item>
149         <item name="appBarTextTheme">@style/PrivacyBrowserAppBarDark</item>
150         <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutDark</item>
151         <item name="popupsTheme">@style/PrivacyBrowserPopupsDark</item>
152         <item name="android:spinnerDropDownItemStyle">@style/PrivacyBrowserSpinnerDropDownItemStyleDark</item>
153     </style>
154
155     <style name="PrivacyBrowserSettingsDark" parent="Theme.AppCompat" >
156         <item name="colorPrimary">@color/blue_800</item>
157         <item name="colorPrimaryDark">@color/blue_900</item>
158         <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
159         <item name="colorAccent">@color/blue_600</item>
160         <item name="userAgentIcon">@drawable/user_agent_dark</item>
161         <item name="searchIcon">@drawable/search_enabled_dark</item>
162         <item name="homepageIcon">@drawable/home_enabled_dark</item>
163         <item name="fontSizeIcon">@drawable/font_size_dark</item>
164     </style>
165
166     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
167     <style name="PrivacyBrowserAppBarDark" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
168         <item name="android:textColorPrimary">@color/gray_300</item>
169     </style>
170
171     <!-- Configure the About and Guide `TabLayouts`. -->
172     <style name="PrivacyBrowserTabLayoutDark" parent="Widget.Design.TabLayout" >
173         <item name="tabBackground">@color/blue_900</item>
174         <item name="android:textColorSecondary">@color/blue_300</item>
175         <item name="tabIndicatorColor">@color/gray_300</item>
176     </style>
177
178     <style name="PrivacyBrowserAlertDialogDark" parent="Theme.AppCompat.Dialog.Alert" >
179         <item name="android:windowBackground">@color/gray_850</item>
180         <item name="android:textColorPrimary">@color/gray_300</item>
181         <item name="android:textColorSecondary">@color/gray_300</item>
182         <item name="colorAccent">@color/blue_600</item>
183     </style>
184
185     <style name="PrivacyBrowserSpinnerDropDownItemStyleDark" parent="Base.Widget.AppCompat.TextView.SpinnerItem" >
186         <item name="android:textColor">@color/gray_300</item>
187     </style>
188
189     <!-- `ThemeOverlay.AppCompat.Dark` makes the popups have a dark background with light text. -->
190     <style name="PrivacyBrowserPopupsDark" parent="ThemeOverlay.AppCompat.Dark" >
191         <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
192     </style>
193 </resources>