1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
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.
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.
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/>. -->
22 <!-- Light theme styles. -->
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 <item name="sslTitle">@color/blue_900</item>
37 <item name="urlHistoryText">@color/black</item>
40 <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar.
41 `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
42 <style name="PrivacyBrowserLight.SecondaryActivity" >
43 <item name="windowActionModeOverlay">true</item>
44 <item name="colorPrimaryDark">@color/blue_700</item>
45 <item name="android:textColorHighlight">@color/blue_200</item>
46 <item name="android:actionModeBackground">@color/blue_700</item>
47 <item name="aboutTitle">@color/blue_900</item>
48 <item name="aboutText">@color/blue_700</item>
49 <item name="actionBarPopupTheme">@style/PrivacyBrowserPopupsLight</item>
50 <item name="appBarTextTheme">@style/PrivacyBrowserAppBarWhiteText</item>
51 <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutLight</item>
54 <!-- `colorPrimaryDark` is the color of the status bar. -->
55 <style name="PrivacyBrowserSettingsLight" parent="Theme.AppCompat.Light.DarkActionBar" >
56 <item name="colorPrimary">@color/blue_700</item>
57 <item name="colorPrimaryDark">@color/blue_900</item>
58 <item name="colorAccent">@color/blue_700</item>
59 <item name="userAgentIcon">@drawable/user_agent_light</item>
60 <item name="searchIcon">@drawable/search_enabled_light</item>
61 <item name="homepageIcon">@drawable/home_enabled_light</item>
62 <item name="fontSizeIcon">@drawable/font_size_light</item>
65 <!-- `ThemeOverlay.AppCompat.ActionBar` makes the hamburger icons dark. -->
66 <style name="PrivacyBrowserAppBarLight" parent="ThemeOverlay.AppCompat.ActionBar" />
68 <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
69 <style name="PrivacyBrowserAppBarWhiteText" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
71 <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a light background with dark text. -->
72 <style name="PrivacyBrowserPopupsLight" parent="ThemeOverlay.AppCompat.Light" />
74 <!-- Configure the About and Guide `TabLayouts`. -->
75 <style name="PrivacyBrowserTabLayoutLight" parent="Widget.Design.TabLayout" >
76 <item name="android:textColorPrimary">@color/white</item>
77 <item name="android:textColorSecondary">@color/blue_100</item>
78 <item name="tabIndicatorColor">@color/white</item>
81 <style name="PrivacyBrowserAlertDialogLight" parent="Theme.AppCompat.Light.Dialog.Alert" >
82 <item name="colorAccent">@color/blue_700</item>
85 <!-- Dark theme styles. -->
87 <!-- `android:windowTranslucentStatus` makes the system status bar translucent.
88 When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
89 <style name="PrivacyBrowserDark" parent="Theme.AppCompat.NoActionBar" >
90 <item name="android:windowTranslucentStatus">true</item>
91 <item name="android:textColorPrimary">@color/dark_primary_text_color_selector</item>
92 <item name="colorAccent">@color/blue_600</item>
93 <item name="android:textColorHighlight">@color/blue_800</item>
94 <item name="navigationHeaderBackground">@color/blue_800</item>
95 <item name="navigationHeaderTextColor">@color/gray_300</item>
96 <item name="appBarTheme">@style/PrivacyBrowserAppBarDark</item>
97 <item name="progressTintColor">@color/blue_800</item>
98 <item name="navigationIconTintColor">@color/blue_600</item>
99 <item name="findOnPageIconTintColor">@color/blue_600</item>
100 <item name="sslTitle">@color/blue_700</item>
101 <item name="urlHistoryText">@color/gray_200</item>
104 <style name="PrivacyBrowserDark.SecondaryActivity" >
105 <item name="colorPrimaryDark">@color/blue_900</item>
106 <item name="aboutTitle">@color/blue_700</item>
107 <item name="aboutText">@color/blue_400</item>
108 <item name="appBarTextTheme">@style/PrivacyBrowserAppBarDark</item>
109 <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutDark</item>
112 <style name="PrivacyBrowserSettingsDark" parent="Theme.AppCompat" >
113 <item name="android:textColorPrimary">@color/dark_primary_text_color_selector</item>
114 <item name="colorAccent">@color/blue_600</item>
115 <item name="userAgentIcon">@drawable/user_agent_dark</item>
116 <item name="searchIcon">@drawable/search_enabled_dark</item>
117 <item name="homepageIcon">@drawable/home_enabled_dark</item>
118 <item name="fontSizeIcon">@drawable/font_size_dark</item>
121 <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
122 <style name="PrivacyBrowserAppBarDark" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
123 <item name="android:textColorPrimary">@color/gray_300</item>
126 <!-- Configure the About and Guide `TabLayouts`. -->
127 <style name="PrivacyBrowserTabLayoutDark" parent="Widget.Design.TabLayout" >
128 <item name="tabBackground">@color/blue_900</item>
129 <item name="android:textColorSecondary">@color/blue_400</item>
130 <item name="tabIndicatorColor">@color/gray_300</item>
133 <style name="PrivacyBrowserAlertDialogDark" parent="Theme.AppCompat.Dialog.Alert" >
134 <item name="android:windowBackground">@color/gray_900</item>
135 <item name="android:textColor">@color/gray_300</item>
138 <!-- `ThemeOverlay.AppCompat.Dark` makes the popups have a dark background with light text. -->
139 <!-- <style name="PrivacyBrowserPopupOverlayDark" parent="ThemeOverlay.AppCompat.Dark" /> -->
142 <!--<style name="PrivacyBrowserToolbarDark" parent="Widget.AppCompat.Toolbar" >
143 <item name="android:background">@color/gray_900</item>