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