Finish tabbed browsing. https://redmine.stoutner.com/issues/22
[PrivacyBrowser.git] / app / src / main / res / values-v21 / styles.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2019 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="aboutIcon">@drawable/about_light</item>
27         <item name="addTabIconTintColor">@color/gray_700</item>
28         <item name="android:textColorHighlight">@color/blue_200</item>
29         <item name="android:textColorPrimary">@color/primary_text_color_selector_light</item>
30         <item name="android:windowTranslucentStatus">true</item>
31         <item name="appBarTheme">@style/PrivacyBrowserAppBarLight</item>
32         <item name="colorAccent">@color/blue_700</item>
33         <item name="dialogTabLayoutTheme">@style/PrivacyBrowserTabLayoutDialogLight</item>
34         <item name="mainStatusBarBackground">@color/gray_500</item>
35         <item name="navigationHeaderBackground">@color/blue_700</item>
36         <item name="navigationHeaderTextColor">@color/white</item>
37         <item name="navigationIconTintColor">@color/blue_800</item>
38         <item name="findOnPageIconTintColor">@color/blue_800</item>
39         <item name="progressTintColor">@color/blue_700</item>
40         <item name="redText">@color/red_a700</item>
41         <item name="sslHeader">@color/blue_700</item>
42         <item name="sslTitle">@color/blue_900</item>
43         <item name="urlHistoryText">@color/black</item>
44         <item name="viewSourceIconTintColor">@color/black</item>
45         <item name="webViewBackground">@color/gray_50</item>
46     </style>
47
48     <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar. -->
49     <style name="PrivacyBrowserLight.SecondaryActivity" >
50         <item name="windowActionModeOverlay">true</item>
51         <item name="android:windowTranslucentStatus">false</item>
52         <item name="colorPrimaryDark">@color/blue_700</item>
53         <item name="android:statusBarColor">@color/blue_900</item>
54         <item name="android:textColorHighlight">@color/blue_200</item>
55         <item name="android:actionModeBackground">@color/blue_700</item>
56         <item name="spinnerHeaderTextColor">@color/white</item>
57         <item name="spinnerBackground">@color/blue_750</item>
58         <item name="spinnerTextColorSelector">@color/spinner_color_selector_light</item>
59         <item name="appbarSpinnerTextColorSelector">@color/appbar_spinner_color_selector_light</item>
60         <item name="buttonBackgroundColorSelector">@color/button_background_color_selector_light</item>
61         <item name="buttonTextColorSelector">@color/button_text_color_selector_light</item>
62         <item name="listSelectorDrawable">@drawable/list_selector_light</item>
63         <item name="aboutTitle">@color/blue_900</item>
64         <item name="aboutText">@color/blue_700</item>
65         <item name="aboutBackground">@color/white</item>
66         <item name="domainSettingsIconTintColor">@color/blue_800</item>
67         <item name="deleteIcon">@drawable/delete_light</item>
68         <item name="addIcon">@drawable/add_light</item>
69         <item name="addBookmarkIcon">@drawable/create_bookmark_light</item>
70         <item name="addFolderIcon">@drawable/create_folder_light</item>
71         <item name="copyIcon">@drawable/copy_light</item>
72         <item name="clearIcon">@drawable/clear_light</item>
73         <item name="selectAllIcon">@drawable/select_all_light</item>
74         <item name="editIcon">@drawable/edit_light</item>
75         <item name="moveToFolderIcon">@drawable/move_to_folder_light</item>
76         <item name="saveIcon">@drawable/save_light</item>
77         <item name="sortIcon">@drawable/sort_light</item>
78         <item name="actionBarPopupTheme">@style/PrivacyBrowserPopupsLight</item>
79         <item name="appBarTextTheme">@style/PrivacyBrowserAppBarWhiteText</item>
80         <item name="popupsTheme">@style/PrivacyBrowserPopupsLight</item>
81         <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutLight</item>
82     </style>
83
84     <!-- `colorPrimaryDark` is the color of the status bar. -->
85     <style name="PrivacyBrowserSettingsLight" parent="Theme.AppCompat.Light.DarkActionBar" >
86         <item name="colorPrimary">@color/blue_700</item>
87         <item name="colorPrimaryDark">@color/blue_900</item>
88         <item name="colorAccent">@color/blue_700</item>
89         <item name="userAgentIcon">@drawable/user_agent_light</item>
90         <item name="searchIcon">@drawable/search_enabled_light</item>
91         <item name="homepageIcon">@drawable/home_enabled_light</item>
92         <item name="fontSizeIcon">@drawable/font_size_light</item>
93     </style>
94
95     <!-- `ThemeOverlay.AppCompat.ActionBar` makes the hamburger icons dark. -->
96     <style name="PrivacyBrowserAppBarLight" parent="ThemeOverlay.AppCompat.ActionBar" />
97
98     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
99     <style name="PrivacyBrowserAppBarWhiteText" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
100
101     <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a light background with dark text. -->
102     <style name="PrivacyBrowserPopupsLight" parent="ThemeOverlay.AppCompat.Light" />
103
104     <!-- Configure the About and Guide `TabLayouts`. -->
105     <style name="PrivacyBrowserTabLayoutLight" parent="Widget.Design.TabLayout" >
106         <item name="android:textColorPrimary">@color/white</item>
107         <item name="android:textColorSecondary">@color/blue_100</item>
108         <item name="tabIndicatorColor">@color/white</item>
109     </style>
110
111     <style name="PrivacyBrowserTabLayoutDialogLight" parent="Widget.Design.TabLayout" >
112         <item name="android:textColorPrimary">@color/blue_700</item>
113         <item name="android:textColorSecondary">@color/blue_700_50</item>
114     </style>
115
116     <style name="PrivacyBrowserAlertDialogLight" parent="Theme.AppCompat.Light.Dialog.Alert" >
117         <item name="colorAccent">@color/blue_700</item>
118     </style>
119
120     <style name="PrivacyBrowserProgressBar" parent="Widget.AppCompat.ProgressBar.Horizontal" >
121         <item name="android:indeterminateDrawable">@android:drawable/progress_horizontal</item>
122     </style>
123
124
125     <!-- Dark theme styles. -->
126
127     <!-- `android:windowTranslucentStatus` makes the system status bar translucent.  When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
128     <style name="PrivacyBrowserDark" parent="Theme.AppCompat.NoActionBar" >
129         <item name="aboutIcon">@drawable/about_dark</item>
130         <item name="addTabIconTintColor">@color/gray_400</item>
131         <item name="android:textColorHighlight">@color/blue_800</item>
132         <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
133         <item name="android:windowTranslucentStatus">true</item>
134         <item name="appBarTheme">@style/PrivacyBrowserAppBarDark</item>
135         <item name="colorAccent">@color/blue_600</item>
136         <item name="mainStatusBarBackground">@color/black</item>
137         <item name="navigationHeaderBackground">@color/blue_800</item>
138         <item name="navigationHeaderTextColor">@color/gray_300</item>
139         <item name="findOnPageIconTintColor">@color/blue_600</item>
140         <item name="navigationIconTintColor">@color/blue_600</item>
141         <item name="progressTintColor">@color/blue_600</item>
142         <item name="redText">@color/red_900</item>
143         <item name="sslHeader">@color/blue_400</item>
144         <item name="sslTitle">@color/blue_700</item>
145         <item name="urlHistoryText">@color/gray_200</item>
146         <item name="viewSourceIconTintColor">@color/gray_300</item>
147         <item name="webViewBackground">@color/gray_900</item>
148     </style>
149
150     <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar.  `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
151     <style name="PrivacyBrowserDark.SecondaryActivity" >
152         <item name="windowActionModeOverlay">true</item>
153         <item name="android:windowTranslucentStatus">false</item>
154         <item name="colorPrimaryDark">@color/blue_800</item>
155         <item name="android:statusBarColor">@color/blue_900</item>
156         <item name="android:actionModeBackground">@color/blue_800</item>
157         <item name="spinnerHeaderTextColor">@color/gray_300</item>
158         <item name="spinnerBackground">@color/blue_830</item>
159         <item name="spinnerTextColorSelector">@color/spinner_color_selector_dark</item>
160         <item name="appbarSpinnerTextColorSelector">@color/appbar_spinner_color_selector_dark</item>
161         <item name="buttonTextColorSelector">@color/button_text_color_selector_dark</item>
162         <item name="buttonBackgroundColorSelector">@color/button_background_color_selector_dark</item>
163         <item name="aboutTitle">@color/blue_600</item>
164         <item name="aboutText">@color/blue_400</item>
165         <item name="aboutBackground">@color/gray_850</item>
166         <item name="listSelectorDrawable">@drawable/list_selector_dark</item>
167         <item name="domainSettingsIconTintColor">@color/blue_600</item>
168         <item name="deleteIcon">@drawable/delete_dark</item>
169         <item name="addIcon">@drawable/add_dark</item>
170         <item name="addBookmarkIcon">@drawable/create_bookmark_dark</item>
171         <item name="addFolderIcon">@drawable/create_folder_dark</item>
172         <item name="clearIcon">@drawable/clear_dark</item>
173         <item name="copyIcon">@drawable/copy_dark</item>
174         <item name="selectAllIcon">@drawable/select_all_dark</item>
175         <item name="editIcon">@drawable/edit_dark</item>
176         <item name="moveToFolderIcon">@drawable/move_to_folder_dark</item>
177         <item name="saveIcon">@drawable/save_dark</item>
178         <item name="sortIcon">@drawable/sort_dark</item>
179         <item name="android:spinnerDropDownItemStyle">@style/PrivacyBrowserSpinnerDropDownItemStyleDark</item>
180         <item name="appBarTextTheme">@style/PrivacyBrowserAppBarDark</item>
181         <item name="popupsTheme">@style/PrivacyBrowserPopupsDark</item>
182         <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutDark</item>
183     </style>
184
185     <style name="PrivacyBrowserSettingsDark" parent="Theme.AppCompat" >
186         <item name="colorPrimary">@color/blue_800</item>
187         <item name="colorPrimaryDark">@color/blue_900</item>
188         <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
189         <item name="colorAccent">@color/blue_600</item>
190         <item name="userAgentIcon">@drawable/user_agent_dark</item>
191         <item name="searchIcon">@drawable/search_enabled_dark</item>
192         <item name="homepageIcon">@drawable/home_enabled_dark</item>
193         <item name="fontSizeIcon">@drawable/font_size_dark</item>
194     </style>
195
196     <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
197     <style name="PrivacyBrowserAppBarDark" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
198         <item name="android:textColorPrimary">@color/gray_300</item>
199     </style>
200
201     <!-- Configure the About and Guide `TabLayouts`. -->
202     <style name="PrivacyBrowserTabLayoutDark" parent="Widget.Design.TabLayout" >
203         <item name="tabBackground">@color/blue_800</item>
204         <item name="android:textColorSecondary">@color/blue_300</item>
205         <item name="tabIndicatorColor">@color/gray_300</item>
206     </style>
207
208     <style name="PrivacyBrowserAlertDialogDark" parent="Theme.AppCompat.Dialog.Alert" >
209         <item name="android:windowBackground">@color/gray_850</item>
210         <item name="android:textColorPrimary">@color/gray_300</item>
211         <item name="android:textColorSecondary">@color/gray_300</item>
212         <item name="colorAccent">@color/blue_600</item>
213     </style>
214
215     <style name="PrivacyBrowserSpinnerDropDownItemStyleDark" parent="Base.Widget.AppCompat.TextView.SpinnerItem" >
216         <item name="android:textColor">@color/gray_300</item>
217     </style>
218
219     <!-- `ThemeOverlay.AppCompat.Dark` makes the popups have a dark background with light text. -->
220     <style name="PrivacyBrowserPopupsDark" parent="ThemeOverlay.AppCompat.Dark" >
221         <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
222     </style>
223 </resources>