<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
+ Copyright © 2015-2020 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>. -->
<resources>
- <!-- Light theme styles. -->
+ <style name="PrivacyBrowser" parent="Theme.AppCompat.DayNight.NoActionBar" >
+ <!-- Main Items. -->
+ <item name="windowActionModeOverlay">true</item> <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar. -->
- <!-- `android:windowTranslucentStatus` makes the system status bar translucent. When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
- <style name="PrivacyBrowserLight" parent="Theme.AppCompat.Light.NoActionBar" >
- <item name="android:windowTranslucentStatus">true</item>
- <item name="colorAccent">@color/blue_700</item>
+ <!-- Colors. -->
+ <item name="android:actionModeBackground">?android:attr/colorBackground</item>
<item name="android:textColorHighlight">@color/blue_200</item>
- <item name="navigationHeaderBackground">@color/blue_700</item>
- <item name="navigationHeaderTextColor">@color/white</item>
- <item name="appBarTheme">@style/PrivacyBrowserAppBarLight</item>
- <item name="progressTintColor">@color/blue_700</item>
- <item name="navigationIconTintColor">@color/blue_800</item>
- <item name="findOnPageIconTintColor">@color/blue_800</item>
- <item name="sslHeader">@color/blue_700</item>
- <item name="sslTitle">@color/blue_900</item>
- <item name="urlHistoryText">@color/black</item>
- <item name="redText">@color/red_a700</item>
- <item name="dialogTabLayoutTheme">@style/PrivacyBrowserTabLayoutDialogLight</item>
- </style>
-
- <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar. `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
- <style name="PrivacyBrowserLight.SecondaryActivity" >
- <item name="windowActionModeOverlay">true</item>
- <item name="colorPrimaryDark">@color/blue_700</item>
- <item name="android:textColorHighlight">@color/blue_200</item>
- <item name="android:actionModeBackground">@color/blue_700</item>
- <item name="primaryTextColorSelector">@color/primary_text_color_selector_light</item>
- <item name="listSelectorDrawable">@drawable/list_selector_light</item>
- <item name="aboutTitle">@color/blue_900</item>
- <item name="aboutText">@color/blue_700</item>
- <item name="iconTintColor">@color/blue_800</item>
- <item name="deleteIcon">@drawable/delete_light</item>
- <item name="addIcon">@drawable/add_light</item>
- <item name="createFolderIcon">@drawable/create_folder_light</item>
- <item name="selectAllIcon">@drawable/select_all_light</item>
- <item name="editIcon">@drawable/edit_light</item>
- <item name="moveToFolderIcon">@drawable/move_to_folder_light</item>
- <item name="actionBarPopupTheme">@style/PrivacyBrowserPopupsLight</item>
- <item name="appBarTextTheme">@style/PrivacyBrowserAppBarWhiteText</item>
- <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutLight</item>
- <item name="popupsTheme">@style/PrivacyBrowserPopupsLight</item>
- </style>
-
- <!-- `colorPrimaryDark` is the color of the status bar. -->
- <style name="PrivacyBrowserSettingsLight" parent="Theme.AppCompat.Light.DarkActionBar" >
- <item name="colorPrimary">@color/blue_700</item>
- <item name="colorPrimaryDark">@color/blue_900</item>
+ <item name="blueTextColor">@color/blue_700</item>
+ <item name="blueTitleTextColor">@color/blue_900</item>
+ <item name="buttonBackgroundColorSelector">@color/button_background_color_selector_day</item>
+ <item name="buttonTextColorSelector">@color/button_text_color_selector_day</item>
<item name="colorAccent">@color/blue_700</item>
- <item name="userAgentIcon">@drawable/user_agent_light</item>
- <item name="searchIcon">@drawable/search_enabled_light</item>
- <item name="homepageIcon">@drawable/home_enabled_light</item>
- <item name="fontSizeIcon">@drawable/font_size_light</item>
- </style>
-
- <!-- `ThemeOverlay.AppCompat.ActionBar` makes the hamburger icons dark. -->
- <style name="PrivacyBrowserAppBarLight" parent="ThemeOverlay.AppCompat.ActionBar" />
+ <item name="redTextColor">@color/red_a700</item>
- <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
- <style name="PrivacyBrowserAppBarWhiteText" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
-
- <!-- `ThemeOverlay.AppCompat.Light` makes the popups have a light background with dark text. -->
- <style name="PrivacyBrowserPopupsLight" parent="ThemeOverlay.AppCompat.Light" />
+ <!-- Tints. -->
+ <item name="addTabIconTintColor">@color/gray_925</item>
+ <item name="domainSettingsIconTintColor">@color/blue_800</item>
+ <item name="fabIconTintColor">@color/white</item>
+ <item name="findOnPageIconTintColor">@color/blue_800</item>
+ <item name="navigationIconTintColor">@color/blue_800</item>
+ <item name="progressTintColor">@color/blue_700</item>
- <!-- Configure the About and Guide `TabLayouts`. -->
- <style name="PrivacyBrowserTabLayoutLight" parent="Widget.Design.TabLayout" >
- <item name="android:textColorPrimary">@color/white</item>
- <item name="android:textColorSecondary">@color/blue_100</item>
- <item name="tabIndicatorColor">@color/white</item>
+ <!-- Drawables. -->
+ <item name="listSelectorDrawable">@drawable/list_selector_day</item>
+
+ <!-- Options Icons. -->
+ <item name="aboutIcon">@drawable/about_day</item>
+ <item name="closeIcon">@drawable/close_day</item>
+ <item name="copyIcon">@drawable/copy_day</item>
+ <item name="deleteIcon">@drawable/delete_day</item>
+ <item name="editIcon">@drawable/edit_day</item>
+ <item name="moveToFolderIcon">@drawable/move_to_folder_day</item>
+ <item name="saveIcon">@drawable/save_day</item>
+ <item name="saveImageIcon">@drawable/images_options_day</item>
+ <item name="saveTextIcon">@drawable/save_text_day</item>
+ <item name="selectAllIcon">@drawable/select_all_day</item>
+ <item name="shareIcon">@drawable/share_day</item>
+ <item name="sortIcon">@drawable/sort_day</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_day</item>
+ <item name="domainsBlueIcon">@drawable/domains_day</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_day</item>
+ <item name="lockBlueIcon">@drawable/lock_day</item>
</style>
- <style name="PrivacyBrowserTabLayoutDialogLight" parent="Widget.Design.TabLayout" >
- <item name="android:textColorPrimary">@color/blue_700</item>
- <item name="android:textColorSecondary">@color/blue_700_50</item>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/blue_200</item>
</style>
- <style name="PrivacyBrowserAlertDialogLight" parent="Theme.AppCompat.Light.Dialog.Alert" >
+ <style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
+ <!-- Colors. -->
<item name="colorAccent">@color/blue_700</item>
+ <item name="colorPrimary">?android:attr/colorBackground</item> <!-- `colorPrimary` sets the background color of the app bar. -->
+
+ <!-- Icons. -->
+ <item name="appThemeIcon">@drawable/app_theme_day</item>
+ <item name="downloadIcon">@drawable/downloads_enabled_day</item>
+ <item name="fontSizeIcon">@drawable/font_size_day</item>
+ <item name="homepageIcon">@drawable/home_enabled_day</item>
+ <item name="searchIcon">@drawable/search_enabled_day</item>
+ <item name="userAgentIcon">@drawable/user_agent_day</item>
</style>
-
- <!-- Dark theme styles. -->
-
- <!-- `android:windowTranslucentStatus` makes the system status bar translucent. When it is specified the root layout should include `android:fitsSystemWindows="true"`. -->
- <style name="PrivacyBrowserDark" parent="Theme.AppCompat.NoActionBar" >
- <item name="android:windowTranslucentStatus">true</item>
- <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
- <item name="colorAccent">@color/blue_600</item>
- <item name="android:textColorHighlight">@color/blue_800</item>
- <item name="navigationHeaderBackground">@color/blue_800</item>
- <item name="navigationHeaderTextColor">@color/gray_300</item>
- <item name="appBarTheme">@style/PrivacyBrowserAppBarDark</item>
- <item name="progressTintColor">@color/blue_600</item>
- <item name="navigationIconTintColor">@color/blue_600</item>
- <item name="findOnPageIconTintColor">@color/blue_600</item>
- <item name="sslHeader">@color/blue_400</item>
- <item name="sslTitle">@color/blue_700</item>
- <item name="urlHistoryText">@color/gray_200</item>
- <item name="redText">@color/red_900</item>
- </style>
-
- <!-- `windowActionModeOverlay` makes the contextual app bar cover the support app bar. `colorPrimaryDark` goes behind the status bar, which is then darkened by the overlay.-->
- <style name="PrivacyBrowserDark.SecondaryActivity" >
- <item name="windowActionModeOverlay">true</item>
- <item name="colorPrimaryDark">@color/blue_800</item>
- <item name="android:actionModeBackground">@color/blue_800</item>
- <item name="primaryTextColorSelector">@color/primary_text_color_selector_dark</item>
- <item name="aboutTitle">@color/blue_600</item>
- <item name="aboutText">@color/blue_400</item>
- <item name="listSelectorDrawable">@drawable/list_selector_dark</item>
- <item name="iconTintColor">@color/blue_600</item>
- <item name="deleteIcon">@drawable/delete_dark</item>
- <item name="addIcon">@drawable/add_dark</item>
- <item name="createFolderIcon">@drawable/create_folder_dark</item>
- <item name="selectAllIcon">@drawable/select_all_dark</item>
- <item name="editIcon">@drawable/edit_dark</item>
- <item name="moveToFolderIcon">@drawable/move_to_folder_dark</item>
- <item name="appBarTextTheme">@style/PrivacyBrowserAppBarDark</item>
- <item name="tabLayoutTheme">@style/PrivacyBrowserTabLayoutDark</item>
- <item name="popupsTheme">@style/PrivacyBrowserPopupsDark</item>
- <item name="android:spinnerDropDownItemStyle">@style/PrivacyBrowserSpinnerDropDownItemStyleDark</item>
- </style>
-
- <style name="PrivacyBrowserSettingsDark" parent="Theme.AppCompat" >
- <item name="colorPrimary">@color/blue_800</item>
- <item name="colorPrimaryDark">@color/blue_900</item>
- <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
- <item name="colorAccent">@color/blue_600</item>
- <item name="userAgentIcon">@drawable/user_agent_dark</item>
- <item name="searchIcon">@drawable/search_enabled_dark</item>
- <item name="homepageIcon">@drawable/home_enabled_dark</item>
- <item name="fontSizeIcon">@drawable/font_size_dark</item>
- </style>
-
- <!-- `ThemeOverlay.AppCompat.Dark.ActionBar` makes the text and the icons in the AppBar white. -->
- <style name="PrivacyBrowserAppBarDark" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
- <item name="android:textColorPrimary">@color/gray_300</item>
- </style>
-
- <!-- Configure the About and Guide `TabLayouts`. -->
- <style name="PrivacyBrowserTabLayoutDark" parent="Widget.Design.TabLayout" >
- <item name="tabBackground">@color/blue_900</item>
- <item name="android:textColorSecondary">@color/blue_300</item>
- <item name="tabIndicatorColor">@color/gray_300</item>
- </style>
-
- <style name="PrivacyBrowserAlertDialogDark" parent="Theme.AppCompat.Dialog.Alert" >
- <item name="android:windowBackground">@color/gray_850</item>
- <item name="android:textColorPrimary">@color/gray_300</item>
- <item name="android:textColorSecondary">@color/gray_300</item>
- <item name="colorAccent">@color/blue_600</item>
- </style>
-
- <style name="PrivacyBrowserSpinnerDropDownItemStyleDark" parent="Base.Widget.AppCompat.TextView.SpinnerItem" >
- <item name="android:textColor">@color/gray_300</item>
- </style>
-
- <!-- `ThemeOverlay.AppCompat.Dark` makes the popups have a dark background with light text. -->
- <style name="PrivacyBrowserPopupsDark" parent="ThemeOverlay.AppCompat.Dark" >
- <item name="android:textColorPrimary">@color/primary_text_color_selector_dark</item>
+ <style name="PrivacyBrowserAlertDialog" parent="Theme.AppCompat.DayNight.Dialog.Alert" >
+ <item name="colorAccent">@color/blue_700</item>
</style>
</resources>
\ No newline at end of file