From 4c496c806380653642f17eb8950ba9efd7d43299 Mon Sep 17 00:00:00 2001 From: jrizzoli Date: Wed, 6 May 2015 20:59:59 +0200 Subject: Browser: update UI * Res - Rename (#themersgottahate) - Vectors - Card-Tabs - CleanUp * Interface - Longpress fab to open incognito tab - New icon - Better urlbar - Fix tab animations - Remap PieControl * Features - Immersive mode (replace jb fullscreen) Change-Id: I2fde4242f477359dc8af18d1b7752750058cd6e9 Signed-off-by: jrizzoli --- Android.mk | 10 +- res/drawable-hdpi/app_web_browser_sm.png | Bin 600 -> 0 bytes res/drawable-hdpi/browsertab_add.png | Bin 257 -> 0 bytes res/drawable-hdpi/browsertab_add_focused.png | Bin 247 -> 0 bytes res/drawable-hdpi/browsertab_inactive.png | Bin 848 -> 0 bytes res/drawable-hdpi/ic_back_hierarchy_dark.png | Bin 273 -> 0 bytes res/drawable-hdpi/ic_bookmark.png | Bin 0 -> 265 bytes res/drawable-hdpi/ic_bookmark_black.png | Bin 265 -> 0 bytes res/drawable-hdpi/ic_bookmark_off.png | Bin 0 -> 638 bytes res/drawable-hdpi/ic_bookmark_off_dark.png | Bin 638 -> 0 bytes res/drawable-hdpi/ic_bookmark_on.png | Bin 0 -> 487 bytes res/drawable-hdpi/ic_bookmark_on_dark.png | Bin 487 -> 0 bytes res/drawable-hdpi/ic_bookmark_widget_bookmark.png | Bin 0 -> 330 bytes .../ic_bookmark_widget_bookmark_dark.png | Bin 330 -> 0 bytes res/drawable-hdpi/ic_delete.png | Bin 0 -> 258 bytes res/drawable-hdpi/ic_delete_black.png | Bin 258 -> 0 bytes res/drawable-hdpi/ic_desktop.png | Bin 0 -> 208 bytes res/drawable-hdpi/ic_desktop_dark.png | Bin 208 -> 0 bytes res/drawable-hdpi/ic_folder.png | Bin 0 -> 808 bytes res/drawable-hdpi/ic_folder_dark.png | Bin 808 -> 0 bytes res/drawable-hdpi/ic_gps_denied.png | Bin 0 -> 526 bytes res/drawable-hdpi/ic_gps_denied_dark.png | Bin 526 -> 0 bytes res/drawable-hdpi/ic_gps_on.png | Bin 0 -> 489 bytes res/drawable-hdpi/ic_gps_on_dark.png | Bin 489 -> 0 bytes res/drawable-hdpi/ic_history.png | Bin 0 -> 638 bytes res/drawable-hdpi/ic_history_dark.png | Bin 638 -> 0 bytes res/drawable-hdpi/ic_home_dark.png | Bin 320 -> 0 bytes res/drawable-hdpi/ic_home_info.png | Bin 0 -> 429 bytes res/drawable-hdpi/ic_home_info_dark.png | Bin 429 -> 0 bytes res/drawable-hdpi/ic_incognito_dark.png | Bin 1663 -> 0 bytes res/drawable-hdpi/ic_new_incognito_dark.png | Bin 946 -> 0 bytes res/drawable-hdpi/ic_refresh_dark.png | Bin 531 -> 0 bytes res/drawable-hdpi/ic_search.png | Bin 0 -> 504 bytes res/drawable-hdpi/ic_search_dark.png | Bin 504 -> 0 bytes res/drawable-hdpi/ic_secure_dark.png | Bin 368 -> 0 bytes res/drawable-hdpi/ic_secure_partial_dark.png | Bin 378 -> 0 bytes res/drawable-hdpi/ic_settings_dark.png | Bin 561 -> 0 bytes res/drawable-hdpi/ic_share.png | Bin 0 -> 986 bytes res/drawable-hdpi/ic_share_dark.png | Bin 986 -> 0 bytes res/drawable-hdpi/ic_tab_close.png | Bin 510 -> 0 bytes res/drawable-hdpi/ic_voice_search.png | Bin 0 -> 511 bytes res/drawable-hdpi/ic_voice_search_dark.png | Bin 511 -> 0 bytes res/drawable-hdpi/ic_web.png | Bin 0 -> 597 bytes res/drawable-hdpi/ic_web_dark.png | Bin 597 -> 0 bytes res/drawable-hdpi/ic_windows_dark.png | Bin 217 -> 0 bytes res/drawable-hdpi/nav_tab_bg.9.png | Bin 280 -> 0 bytes res/drawable-mdpi/app_web_browser_sm.png | Bin 388 -> 0 bytes res/drawable-mdpi/browsertab_add.png | Bin 198 -> 0 bytes res/drawable-mdpi/browsertab_add_focused.png | Bin 198 -> 0 bytes res/drawable-mdpi/browsertab_inactive.png | Bin 493 -> 0 bytes res/drawable-mdpi/ic_back_hierarchy_dark.png | Bin 238 -> 0 bytes res/drawable-mdpi/ic_bookmark.png | Bin 0 -> 217 bytes res/drawable-mdpi/ic_bookmark_black.png | Bin 217 -> 0 bytes res/drawable-mdpi/ic_bookmark_off.png | Bin 0 -> 1148 bytes res/drawable-mdpi/ic_bookmark_off_dark.png | Bin 1148 -> 0 bytes res/drawable-mdpi/ic_bookmark_on.png | Bin 0 -> 1074 bytes res/drawable-mdpi/ic_bookmark_on_dark.png | Bin 1074 -> 0 bytes res/drawable-mdpi/ic_bookmark_widget_bookmark.png | Bin 0 -> 262 bytes .../ic_bookmark_widget_bookmark_dark.png | Bin 262 -> 0 bytes res/drawable-mdpi/ic_delete.png | Bin 0 -> 191 bytes res/drawable-mdpi/ic_delete_black.png | Bin 191 -> 0 bytes res/drawable-mdpi/ic_desktop.png | Bin 0 -> 188 bytes res/drawable-mdpi/ic_desktop_dark.png | Bin 188 -> 0 bytes res/drawable-mdpi/ic_folder.png | Bin 0 -> 649 bytes res/drawable-mdpi/ic_folder_dark.png | Bin 649 -> 0 bytes res/drawable-mdpi/ic_gps_denied.png | Bin 0 -> 406 bytes res/drawable-mdpi/ic_gps_denied_dark.png | Bin 406 -> 0 bytes res/drawable-mdpi/ic_gps_on.png | Bin 0 -> 357 bytes res/drawable-mdpi/ic_gps_on_dark.png | Bin 357 -> 0 bytes res/drawable-mdpi/ic_history.png | Bin 0 -> 447 bytes res/drawable-mdpi/ic_history_dark.png | Bin 447 -> 0 bytes res/drawable-mdpi/ic_home_dark.png | Bin 264 -> 0 bytes res/drawable-mdpi/ic_home_info.png | Bin 0 -> 315 bytes res/drawable-mdpi/ic_home_info_dark.png | Bin 315 -> 0 bytes res/drawable-mdpi/ic_incognito_dark.png | Bin 1098 -> 0 bytes res/drawable-mdpi/ic_new_incognito_dark.png | Bin 621 -> 0 bytes res/drawable-mdpi/ic_refresh_dark.png | Bin 346 -> 0 bytes res/drawable-mdpi/ic_search.png | Bin 0 -> 346 bytes res/drawable-mdpi/ic_search_dark.png | Bin 346 -> 0 bytes res/drawable-mdpi/ic_secure_dark.png | Bin 295 -> 0 bytes res/drawable-mdpi/ic_secure_partial_dark.png | Bin 295 -> 0 bytes res/drawable-mdpi/ic_settings_dark.png | Bin 420 -> 0 bytes res/drawable-mdpi/ic_share.png | Bin 0 -> 705 bytes res/drawable-mdpi/ic_share_dark.png | Bin 705 -> 0 bytes res/drawable-mdpi/ic_tab_close.png | Bin 393 -> 0 bytes res/drawable-mdpi/ic_voice_search.png | Bin 0 -> 344 bytes res/drawable-mdpi/ic_voice_search_dark.png | Bin 344 -> 0 bytes res/drawable-mdpi/ic_web.png | Bin 0 -> 442 bytes res/drawable-mdpi/ic_web_dark.png | Bin 442 -> 0 bytes res/drawable-mdpi/ic_windows_dark.png | Bin 180 -> 0 bytes res/drawable-mdpi/nav_tab_bg.9.png | Bin 213 -> 0 bytes res/drawable-sw600dp-hdpi/ic_secure_holo_dark.png | Bin 770 -> 0 bytes .../ic_secure_partial_holo_dark.png | Bin 3423 -> 0 bytes res/drawable-sw600dp-mdpi/ic_secure_holo_dark.png | Bin 603 -> 0 bytes .../ic_secure_partial_holo_dark.png | Bin 3282 -> 0 bytes res/drawable-sw600dp-nodpi/bg_urlbar.png | Bin 262 -> 0 bytes res/drawable-sw600dp-xhdpi/ic_secure_holo_dark.png | Bin 908 -> 0 bytes .../ic_secure_partial_holo_dark.png | Bin 3567 -> 0 bytes res/drawable-xhdpi/app_web_browser_sm.png | Bin 840 -> 0 bytes res/drawable-xhdpi/browsertab_add.png | Bin 296 -> 0 bytes res/drawable-xhdpi/browsertab_add_focused.png | Bin 296 -> 0 bytes res/drawable-xhdpi/browsertab_inactive.png | Bin 1333 -> 0 bytes res/drawable-xhdpi/ic_back_hierarchy_dark.png | Bin 311 -> 0 bytes res/drawable-xhdpi/ic_bookmark.png | Bin 0 -> 316 bytes res/drawable-xhdpi/ic_bookmark_black.png | Bin 316 -> 0 bytes res/drawable-xhdpi/ic_bookmark_off.png | Bin 0 -> 802 bytes res/drawable-xhdpi/ic_bookmark_off_dark.png | Bin 802 -> 0 bytes res/drawable-xhdpi/ic_bookmark_on.png | Bin 0 -> 588 bytes res/drawable-xhdpi/ic_bookmark_on_dark.png | Bin 588 -> 0 bytes res/drawable-xhdpi/ic_delete.png | Bin 0 -> 253 bytes res/drawable-xhdpi/ic_delete_black.png | Bin 253 -> 0 bytes res/drawable-xhdpi/ic_desktop.png | Bin 0 -> 206 bytes res/drawable-xhdpi/ic_desktop_dark.png | Bin 206 -> 0 bytes res/drawable-xhdpi/ic_folder.png | Bin 0 -> 956 bytes res/drawable-xhdpi/ic_folder_dark.png | Bin 956 -> 0 bytes res/drawable-xhdpi/ic_gps_denied.png | Bin 0 -> 636 bytes res/drawable-xhdpi/ic_gps_denied_dark.png | Bin 636 -> 0 bytes res/drawable-xhdpi/ic_gps_on.png | Bin 0 -> 574 bytes res/drawable-xhdpi/ic_gps_on_dark.png | Bin 574 -> 0 bytes res/drawable-xhdpi/ic_history.png | Bin 0 -> 770 bytes res/drawable-xhdpi/ic_history_dark.png | Bin 770 -> 0 bytes res/drawable-xhdpi/ic_home_dark.png | Bin 345 -> 0 bytes res/drawable-xhdpi/ic_home_info.png | Bin 0 -> 532 bytes res/drawable-xhdpi/ic_home_info_dark.png | Bin 532 -> 0 bytes res/drawable-xhdpi/ic_incognito_dark.png | Bin 2214 -> 0 bytes res/drawable-xhdpi/ic_new_incognito_dark.png | Bin 2023 -> 0 bytes res/drawable-xhdpi/ic_refresh_dark.png | Bin 637 -> 0 bytes res/drawable-xhdpi/ic_search.png | Bin 0 -> 591 bytes res/drawable-xhdpi/ic_search_dark.png | Bin 591 -> 0 bytes res/drawable-xhdpi/ic_secure_dark.png | Bin 479 -> 0 bytes res/drawable-xhdpi/ic_secure_partial_dark.png | Bin 474 -> 0 bytes res/drawable-xhdpi/ic_settings_dark.png | Bin 737 -> 0 bytes res/drawable-xhdpi/ic_share.png | Bin 0 -> 1255 bytes res/drawable-xhdpi/ic_share_dark.png | Bin 1255 -> 0 bytes res/drawable-xhdpi/ic_tab_close.png | Bin 645 -> 0 bytes res/drawable-xhdpi/ic_voice_search.png | Bin 0 -> 614 bytes res/drawable-xhdpi/ic_voice_search_dark.png | Bin 614 -> 0 bytes res/drawable-xhdpi/ic_web.png | Bin 0 -> 761 bytes res/drawable-xhdpi/ic_web_dark.png | Bin 761 -> 0 bytes res/drawable-xhdpi/ic_windows_dark.png | Bin 230 -> 0 bytes res/drawable-xhdpi/nav_tab_bg.9.png | Bin 391 -> 0 bytes res/drawable-xxhdpi/app_web_browser_sm.png | Bin 840 -> 0 bytes res/drawable-xxhdpi/browsertab_add.png | Bin 296 -> 0 bytes res/drawable-xxhdpi/browsertab_add_focused.png | Bin 296 -> 0 bytes res/drawable-xxhdpi/browsertab_inactive.png | Bin 1333 -> 0 bytes res/drawable-xxhdpi/ic_back_hierarchy_dark.png | Bin 365 -> 0 bytes res/drawable-xxhdpi/ic_bookmark.png | Bin 0 -> 390 bytes res/drawable-xxhdpi/ic_bookmark_black.png | Bin 390 -> 0 bytes res/drawable-xxhdpi/ic_bookmark_off.png | Bin 0 -> 1147 bytes res/drawable-xxhdpi/ic_bookmark_off_dark.png | Bin 1147 -> 0 bytes res/drawable-xxhdpi/ic_bookmark_on.png | Bin 0 -> 832 bytes res/drawable-xxhdpi/ic_bookmark_on_dark.png | Bin 832 -> 0 bytes .../ic_bookmark_widget_bookmark.png | Bin 0 -> 430 bytes .../ic_bookmark_widget_bookmark_dark.png | Bin 430 -> 0 bytes res/drawable-xxhdpi/ic_cancel_white_24dp.png | Bin 893 -> 0 bytes res/drawable-xxhdpi/ic_delete.png | Bin 0 -> 301 bytes res/drawable-xxhdpi/ic_delete_black.png | Bin 301 -> 0 bytes res/drawable-xxhdpi/ic_desktop.png | Bin 0 -> 230 bytes res/drawable-xxhdpi/ic_desktop_dark.png | Bin 230 -> 0 bytes res/drawable-xxhdpi/ic_folder.png | Bin 0 -> 956 bytes res/drawable-xxhdpi/ic_folder_dark.png | Bin 956 -> 0 bytes res/drawable-xxhdpi/ic_gps_denied.png | Bin 0 -> 861 bytes res/drawable-xxhdpi/ic_gps_denied_dark.png | Bin 861 -> 0 bytes res/drawable-xxhdpi/ic_gps_on.png | Bin 0 -> 843 bytes res/drawable-xxhdpi/ic_gps_on_dark.png | Bin 843 -> 0 bytes res/drawable-xxhdpi/ic_history.png | Bin 0 -> 1123 bytes res/drawable-xxhdpi/ic_history_dark.png | Bin 1123 -> 0 bytes res/drawable-xxhdpi/ic_home_dark.png | Bin 423 -> 0 bytes res/drawable-xxhdpi/ic_home_info.png | Bin 0 -> 765 bytes res/drawable-xxhdpi/ic_home_info_dark.png | Bin 765 -> 0 bytes res/drawable-xxhdpi/ic_incognito_dark.png | Bin 2214 -> 0 bytes res/drawable-xxhdpi/ic_new_incognito_dark.png | Bin 2023 -> 0 bytes res/drawable-xxhdpi/ic_refresh_dark.png | Bin 875 -> 0 bytes res/drawable-xxhdpi/ic_search.png | Bin 0 -> 871 bytes res/drawable-xxhdpi/ic_search_dark.png | Bin 871 -> 0 bytes res/drawable-xxhdpi/ic_secure_dark.png | Bin 652 -> 0 bytes res/drawable-xxhdpi/ic_secure_partial_dark.png | Bin 651 -> 0 bytes res/drawable-xxhdpi/ic_settings_dark.png | Bin 974 -> 0 bytes res/drawable-xxhdpi/ic_share.png | Bin 0 -> 857 bytes res/drawable-xxhdpi/ic_share_dark.png | Bin 857 -> 0 bytes res/drawable-xxhdpi/ic_tab_close.png | Bin 645 -> 0 bytes res/drawable-xxhdpi/ic_voice_search.png | Bin 0 -> 832 bytes res/drawable-xxhdpi/ic_voice_search_dark.png | Bin 832 -> 0 bytes res/drawable-xxhdpi/ic_web.png | Bin 0 -> 1096 bytes res/drawable-xxhdpi/ic_web_dark.png | Bin 1096 -> 0 bytes res/drawable-xxhdpi/ic_windows_dark.png | Bin 311 -> 0 bytes res/drawable-xxhdpi/nav_tab_bg.9.png | Bin 477 -> 0 bytes res/drawable/add_tab_selector.xml | 4 +- res/drawable/btn_checkbox_star.xml | 4 +- res/drawable/btn_imageview_star.xml | 4 +- res/drawable/card.xml | 16 ++++ res/drawable/ic_back.xml | 11 +++ res/drawable/ic_back_dark.xml | 15 --- res/drawable/ic_back_disabled.xml | 15 +++ res/drawable/ic_back_disabled_dark.xml | 15 --- res/drawable/ic_back_hierarchy.xml | 11 +++ res/drawable/ic_back_hierarchy_dark.xml | 15 --- res/drawable/ic_bookmarks.xml | 16 ++++ res/drawable/ic_bookmarks_dark.xml | 16 ---- res/drawable/ic_bookmarks_history.xml | 16 ++++ res/drawable/ic_bookmarks_history_dark.xml | 16 ---- res/drawable/ic_close_window.xml | 16 ++++ res/drawable/ic_close_window_dark.xml | 16 ---- res/drawable/ic_forward.xml | 11 +++ res/drawable/ic_forward_dark.xml | 15 --- res/drawable/ic_forward_disabled.xml | 15 +++ res/drawable/ic_forward_disabled_dark.xml | 15 --- res/drawable/ic_fullscreen.xml | 12 +++ res/drawable/ic_home.xml | 11 +++ res/drawable/ic_incognito.xml | 17 ++++ res/drawable/ic_menu.xml | 12 +++ res/drawable/ic_menu_bookmark.xml | 16 ++++ res/drawable/ic_menu_forward.xml | 11 +++ res/drawable/ic_menu_stop.xml | 16 ++++ res/drawable/ic_new_window.xml | 15 +++ res/drawable/ic_new_window_dark.xml | 15 --- res/drawable/ic_new_window_incognito.xml | 12 +++ res/drawable/ic_refresh.xml | 13 +++ res/drawable/ic_refresh_dark.xml | 17 ---- res/drawable/ic_settings.xml | 20 ++++ res/drawable/ic_stop.xml | 16 ++++ res/drawable/ic_stop_dark.xml | 16 ---- res/drawable/ic_windows.xml | 11 +++ res/drawable/url_background.xml | 6 +- res/layout-land/nav_screen.xml | 22 +++-- res/layout-sw600dp/suggestion_item.xml | 9 +- res/layout-sw600dp/title_bar_nav.xml | 46 ++++----- res/layout-sw600dp/title_bar_snapshot.xml | 4 +- res/layout/add_new_bookmark.xml | 2 +- res/layout/anim_screen.xml | 4 - res/layout/bookmarks.xml | 4 +- res/layout/bookmarks_drag_actionmode.xml | 6 +- res/layout/browser_add_bookmark_content.xml | 4 +- res/layout/browser_subwindow.xml | 4 +- res/layout/folder_list_item.xml | 2 +- res/layout/four_button_menu_item.xml | 52 +++++++++++ res/layout/nav_screen.xml | 27 ++---- res/layout/nav_tab_view.xml | 60 ++++++------ res/layout/new_folder_layout.xml | 2 +- res/layout/suggestion_item.xml | 9 +- res/layout/tab_bar.xml | 2 +- res/layout/tab_title.xml | 4 +- res/layout/title_bar_nav.xml | 59 +++--------- res/layout/title_bar_snapshot.xml | 6 +- res/layout/widget_account_selection.xml | 1 - res/menu-sw600dp/combined.xml | 2 +- res/menu/browser.xml | 17 ++-- res/menu/url_selection.xml | 2 +- res/mipmap-hdpi/ic_launcher_browser.png | Bin 5753 -> 25542 bytes res/mipmap-mdpi/ic_launcher_browser.png | Bin 3631 -> 23984 bytes res/mipmap-xhdpi/ic_launcher_browser.png | Bin 8188 -> 26960 bytes res/mipmap-xxhdpi/ic_launcher_browser.png | Bin 12749 -> 30574 bytes res/mipmap-xxxhdpi/ic_launcher_browser.png | Bin 18114 -> 33875 bytes res/values/cm_colors.xml | 25 +++++ res/values/cm_strings.xml | 12 +++ res/values/colors.xml | 6 -- res/values/dimensions.xml | 2 +- res/values/styles.xml | 6 +- res/xml-sw600dp/lab_preferences.xml | 24 ----- res/xml/general_preferences.xml | 11 +-- res/xml/interface_preferences.xml | 29 ++++++ res/xml/lab_preferences.xml | 24 ----- res/xml/preference_headers.xml | 4 +- src/com/android/browser/AddBookmarkPage.java | 2 +- src/com/android/browser/BaseUi.java | 93 +++---------------- src/com/android/browser/BreadCrumbView.java | 4 +- src/com/android/browser/BrowserBookmarksPage.java | 2 +- .../android/browser/BrowserPreferencesPage.java | 4 +- src/com/android/browser/BrowserSettings.java | 10 +- src/com/android/browser/Controller.java | 17 +--- src/com/android/browser/NavScreen.java | 29 +++--- src/com/android/browser/NavTabView.java | 42 ++++----- src/com/android/browser/NavigationBarBase.java | 5 - src/com/android/browser/NavigationBarPhone.java | 25 +---- src/com/android/browser/NavigationBarTablet.java | 35 ++----- src/com/android/browser/PhoneUi.java | 66 ++++--------- src/com/android/browser/PieControl.java | 103 ++++++++++----------- src/com/android/browser/PreferenceKeys.java | 1 + src/com/android/browser/SuggestionsAdapter.java | 2 - src/com/android/browser/TabBar.java | 21 +---- src/com/android/browser/UI.java | 2 - src/com/android/browser/UiController.java | 2 - src/com/android/browser/XLargeUi.java | 34 ------- .../browser/addbookmark/FolderSpinnerAdapter.java | 6 +- .../preferences/GeneralPreferencesFragment.java | 2 + .../preferences/InterfacePreferencesFragment.java | 36 +++++++ .../preferences/LabPreferencesFragment.java | 36 ------- .../preferences/WebsiteSettingsFragment.java | 4 +- .../android/browser/provider/BrowserProvider2.java | 4 +- src/com/android/browser/view/PieMenu.java | 2 +- src/com/android/browser/view/StopProgressView.java | 2 +- .../widget/BookmarkThumbnailWidgetService.java | 2 - 292 files changed, 757 insertions(+), 837 deletions(-) delete mode 100644 res/drawable-hdpi/app_web_browser_sm.png delete mode 100644 res/drawable-hdpi/browsertab_add.png delete mode 100644 res/drawable-hdpi/browsertab_add_focused.png delete mode 100644 res/drawable-hdpi/browsertab_inactive.png delete mode 100644 res/drawable-hdpi/ic_back_hierarchy_dark.png create mode 100644 res/drawable-hdpi/ic_bookmark.png delete mode 100644 res/drawable-hdpi/ic_bookmark_black.png create mode 100644 res/drawable-hdpi/ic_bookmark_off.png delete mode 100644 res/drawable-hdpi/ic_bookmark_off_dark.png create mode 100644 res/drawable-hdpi/ic_bookmark_on.png delete mode 100644 res/drawable-hdpi/ic_bookmark_on_dark.png create mode 100644 res/drawable-hdpi/ic_bookmark_widget_bookmark.png delete mode 100644 res/drawable-hdpi/ic_bookmark_widget_bookmark_dark.png create mode 100644 res/drawable-hdpi/ic_delete.png delete mode 100644 res/drawable-hdpi/ic_delete_black.png create mode 100644 res/drawable-hdpi/ic_desktop.png delete mode 100644 res/drawable-hdpi/ic_desktop_dark.png create mode 100644 res/drawable-hdpi/ic_folder.png delete mode 100644 res/drawable-hdpi/ic_folder_dark.png create mode 100644 res/drawable-hdpi/ic_gps_denied.png delete mode 100644 res/drawable-hdpi/ic_gps_denied_dark.png create mode 100644 res/drawable-hdpi/ic_gps_on.png delete mode 100644 res/drawable-hdpi/ic_gps_on_dark.png create mode 100644 res/drawable-hdpi/ic_history.png delete mode 100644 res/drawable-hdpi/ic_history_dark.png delete mode 100644 res/drawable-hdpi/ic_home_dark.png create mode 100644 res/drawable-hdpi/ic_home_info.png delete mode 100644 res/drawable-hdpi/ic_home_info_dark.png delete mode 100644 res/drawable-hdpi/ic_incognito_dark.png delete mode 100644 res/drawable-hdpi/ic_new_incognito_dark.png delete mode 100644 res/drawable-hdpi/ic_refresh_dark.png create mode 100644 res/drawable-hdpi/ic_search.png delete mode 100644 res/drawable-hdpi/ic_search_dark.png delete mode 100644 res/drawable-hdpi/ic_secure_dark.png delete mode 100644 res/drawable-hdpi/ic_secure_partial_dark.png delete mode 100644 res/drawable-hdpi/ic_settings_dark.png create mode 100644 res/drawable-hdpi/ic_share.png delete mode 100644 res/drawable-hdpi/ic_share_dark.png delete mode 100644 res/drawable-hdpi/ic_tab_close.png create mode 100644 res/drawable-hdpi/ic_voice_search.png delete mode 100644 res/drawable-hdpi/ic_voice_search_dark.png create mode 100644 res/drawable-hdpi/ic_web.png delete mode 100644 res/drawable-hdpi/ic_web_dark.png delete mode 100644 res/drawable-hdpi/ic_windows_dark.png delete mode 100644 res/drawable-hdpi/nav_tab_bg.9.png delete mode 100644 res/drawable-mdpi/app_web_browser_sm.png delete mode 100644 res/drawable-mdpi/browsertab_add.png delete mode 100644 res/drawable-mdpi/browsertab_add_focused.png delete mode 100644 res/drawable-mdpi/browsertab_inactive.png delete mode 100644 res/drawable-mdpi/ic_back_hierarchy_dark.png create mode 100644 res/drawable-mdpi/ic_bookmark.png delete mode 100644 res/drawable-mdpi/ic_bookmark_black.png create mode 100644 res/drawable-mdpi/ic_bookmark_off.png delete mode 100644 res/drawable-mdpi/ic_bookmark_off_dark.png create mode 100644 res/drawable-mdpi/ic_bookmark_on.png delete mode 100644 res/drawable-mdpi/ic_bookmark_on_dark.png create mode 100644 res/drawable-mdpi/ic_bookmark_widget_bookmark.png delete mode 100644 res/drawable-mdpi/ic_bookmark_widget_bookmark_dark.png create mode 100644 res/drawable-mdpi/ic_delete.png delete mode 100644 res/drawable-mdpi/ic_delete_black.png create mode 100644 res/drawable-mdpi/ic_desktop.png delete mode 100644 res/drawable-mdpi/ic_desktop_dark.png create mode 100644 res/drawable-mdpi/ic_folder.png delete mode 100644 res/drawable-mdpi/ic_folder_dark.png create mode 100644 res/drawable-mdpi/ic_gps_denied.png delete mode 100644 res/drawable-mdpi/ic_gps_denied_dark.png create mode 100644 res/drawable-mdpi/ic_gps_on.png delete mode 100644 res/drawable-mdpi/ic_gps_on_dark.png create mode 100644 res/drawable-mdpi/ic_history.png delete mode 100644 res/drawable-mdpi/ic_history_dark.png delete mode 100644 res/drawable-mdpi/ic_home_dark.png create mode 100644 res/drawable-mdpi/ic_home_info.png delete mode 100644 res/drawable-mdpi/ic_home_info_dark.png delete mode 100644 res/drawable-mdpi/ic_incognito_dark.png delete mode 100644 res/drawable-mdpi/ic_new_incognito_dark.png delete mode 100644 res/drawable-mdpi/ic_refresh_dark.png create mode 100644 res/drawable-mdpi/ic_search.png delete mode 100644 res/drawable-mdpi/ic_search_dark.png delete mode 100644 res/drawable-mdpi/ic_secure_dark.png delete mode 100644 res/drawable-mdpi/ic_secure_partial_dark.png delete mode 100644 res/drawable-mdpi/ic_settings_dark.png create mode 100644 res/drawable-mdpi/ic_share.png delete mode 100644 res/drawable-mdpi/ic_share_dark.png delete mode 100644 res/drawable-mdpi/ic_tab_close.png create mode 100644 res/drawable-mdpi/ic_voice_search.png delete mode 100644 res/drawable-mdpi/ic_voice_search_dark.png create mode 100644 res/drawable-mdpi/ic_web.png delete mode 100644 res/drawable-mdpi/ic_web_dark.png delete mode 100644 res/drawable-mdpi/ic_windows_dark.png delete mode 100644 res/drawable-mdpi/nav_tab_bg.9.png delete mode 100644 res/drawable-sw600dp-hdpi/ic_secure_holo_dark.png delete mode 100644 res/drawable-sw600dp-hdpi/ic_secure_partial_holo_dark.png delete mode 100644 res/drawable-sw600dp-mdpi/ic_secure_holo_dark.png delete mode 100644 res/drawable-sw600dp-mdpi/ic_secure_partial_holo_dark.png delete mode 100644 res/drawable-sw600dp-nodpi/bg_urlbar.png delete mode 100644 res/drawable-sw600dp-xhdpi/ic_secure_holo_dark.png delete mode 100644 res/drawable-sw600dp-xhdpi/ic_secure_partial_holo_dark.png delete mode 100644 res/drawable-xhdpi/app_web_browser_sm.png delete mode 100644 res/drawable-xhdpi/browsertab_add.png delete mode 100644 res/drawable-xhdpi/browsertab_add_focused.png delete mode 100644 res/drawable-xhdpi/browsertab_inactive.png delete mode 100644 res/drawable-xhdpi/ic_back_hierarchy_dark.png create mode 100644 res/drawable-xhdpi/ic_bookmark.png delete mode 100644 res/drawable-xhdpi/ic_bookmark_black.png create mode 100644 res/drawable-xhdpi/ic_bookmark_off.png delete mode 100644 res/drawable-xhdpi/ic_bookmark_off_dark.png create mode 100644 res/drawable-xhdpi/ic_bookmark_on.png delete mode 100644 res/drawable-xhdpi/ic_bookmark_on_dark.png create mode 100644 res/drawable-xhdpi/ic_delete.png delete mode 100644 res/drawable-xhdpi/ic_delete_black.png create mode 100644 res/drawable-xhdpi/ic_desktop.png delete mode 100644 res/drawable-xhdpi/ic_desktop_dark.png create mode 100644 res/drawable-xhdpi/ic_folder.png delete mode 100644 res/drawable-xhdpi/ic_folder_dark.png create mode 100644 res/drawable-xhdpi/ic_gps_denied.png delete mode 100644 res/drawable-xhdpi/ic_gps_denied_dark.png create mode 100644 res/drawable-xhdpi/ic_gps_on.png delete mode 100644 res/drawable-xhdpi/ic_gps_on_dark.png create mode 100644 res/drawable-xhdpi/ic_history.png delete mode 100644 res/drawable-xhdpi/ic_history_dark.png delete mode 100644 res/drawable-xhdpi/ic_home_dark.png create mode 100644 res/drawable-xhdpi/ic_home_info.png delete mode 100644 res/drawable-xhdpi/ic_home_info_dark.png delete mode 100644 res/drawable-xhdpi/ic_incognito_dark.png delete mode 100644 res/drawable-xhdpi/ic_new_incognito_dark.png delete mode 100644 res/drawable-xhdpi/ic_refresh_dark.png create mode 100644 res/drawable-xhdpi/ic_search.png delete mode 100644 res/drawable-xhdpi/ic_search_dark.png delete mode 100644 res/drawable-xhdpi/ic_secure_dark.png delete mode 100644 res/drawable-xhdpi/ic_secure_partial_dark.png delete mode 100644 res/drawable-xhdpi/ic_settings_dark.png create mode 100644 res/drawable-xhdpi/ic_share.png delete mode 100644 res/drawable-xhdpi/ic_share_dark.png delete mode 100644 res/drawable-xhdpi/ic_tab_close.png create mode 100644 res/drawable-xhdpi/ic_voice_search.png delete mode 100644 res/drawable-xhdpi/ic_voice_search_dark.png create mode 100644 res/drawable-xhdpi/ic_web.png delete mode 100644 res/drawable-xhdpi/ic_web_dark.png delete mode 100644 res/drawable-xhdpi/ic_windows_dark.png delete mode 100644 res/drawable-xhdpi/nav_tab_bg.9.png delete mode 100644 res/drawable-xxhdpi/app_web_browser_sm.png delete mode 100644 res/drawable-xxhdpi/browsertab_add.png delete mode 100644 res/drawable-xxhdpi/browsertab_add_focused.png delete mode 100644 res/drawable-xxhdpi/browsertab_inactive.png delete mode 100644 res/drawable-xxhdpi/ic_back_hierarchy_dark.png create mode 100644 res/drawable-xxhdpi/ic_bookmark.png delete mode 100644 res/drawable-xxhdpi/ic_bookmark_black.png create mode 100644 res/drawable-xxhdpi/ic_bookmark_off.png delete mode 100644 res/drawable-xxhdpi/ic_bookmark_off_dark.png create mode 100644 res/drawable-xxhdpi/ic_bookmark_on.png delete mode 100644 res/drawable-xxhdpi/ic_bookmark_on_dark.png create mode 100644 res/drawable-xxhdpi/ic_bookmark_widget_bookmark.png delete mode 100644 res/drawable-xxhdpi/ic_bookmark_widget_bookmark_dark.png delete mode 100644 res/drawable-xxhdpi/ic_cancel_white_24dp.png create mode 100644 res/drawable-xxhdpi/ic_delete.png delete mode 100644 res/drawable-xxhdpi/ic_delete_black.png create mode 100644 res/drawable-xxhdpi/ic_desktop.png delete mode 100644 res/drawable-xxhdpi/ic_desktop_dark.png create mode 100644 res/drawable-xxhdpi/ic_folder.png delete mode 100644 res/drawable-xxhdpi/ic_folder_dark.png create mode 100644 res/drawable-xxhdpi/ic_gps_denied.png delete mode 100644 res/drawable-xxhdpi/ic_gps_denied_dark.png create mode 100644 res/drawable-xxhdpi/ic_gps_on.png delete mode 100644 res/drawable-xxhdpi/ic_gps_on_dark.png create mode 100644 res/drawable-xxhdpi/ic_history.png delete mode 100644 res/drawable-xxhdpi/ic_history_dark.png delete mode 100644 res/drawable-xxhdpi/ic_home_dark.png create mode 100644 res/drawable-xxhdpi/ic_home_info.png delete mode 100644 res/drawable-xxhdpi/ic_home_info_dark.png delete mode 100644 res/drawable-xxhdpi/ic_incognito_dark.png delete mode 100644 res/drawable-xxhdpi/ic_new_incognito_dark.png delete mode 100644 res/drawable-xxhdpi/ic_refresh_dark.png create mode 100644 res/drawable-xxhdpi/ic_search.png delete mode 100644 res/drawable-xxhdpi/ic_search_dark.png delete mode 100644 res/drawable-xxhdpi/ic_secure_dark.png delete mode 100644 res/drawable-xxhdpi/ic_secure_partial_dark.png delete mode 100644 res/drawable-xxhdpi/ic_settings_dark.png create mode 100644 res/drawable-xxhdpi/ic_share.png delete mode 100644 res/drawable-xxhdpi/ic_share_dark.png delete mode 100644 res/drawable-xxhdpi/ic_tab_close.png create mode 100644 res/drawable-xxhdpi/ic_voice_search.png delete mode 100644 res/drawable-xxhdpi/ic_voice_search_dark.png create mode 100644 res/drawable-xxhdpi/ic_web.png delete mode 100644 res/drawable-xxhdpi/ic_web_dark.png delete mode 100644 res/drawable-xxhdpi/ic_windows_dark.png delete mode 100644 res/drawable-xxhdpi/nav_tab_bg.9.png create mode 100644 res/drawable/card.xml create mode 100644 res/drawable/ic_back.xml delete mode 100644 res/drawable/ic_back_dark.xml create mode 100644 res/drawable/ic_back_disabled.xml delete mode 100644 res/drawable/ic_back_disabled_dark.xml create mode 100644 res/drawable/ic_back_hierarchy.xml delete mode 100644 res/drawable/ic_back_hierarchy_dark.xml create mode 100644 res/drawable/ic_bookmarks.xml delete mode 100644 res/drawable/ic_bookmarks_dark.xml create mode 100644 res/drawable/ic_bookmarks_history.xml delete mode 100644 res/drawable/ic_bookmarks_history_dark.xml create mode 100644 res/drawable/ic_close_window.xml delete mode 100644 res/drawable/ic_close_window_dark.xml create mode 100644 res/drawable/ic_forward.xml delete mode 100644 res/drawable/ic_forward_dark.xml create mode 100644 res/drawable/ic_forward_disabled.xml delete mode 100644 res/drawable/ic_forward_disabled_dark.xml create mode 100644 res/drawable/ic_fullscreen.xml create mode 100644 res/drawable/ic_home.xml create mode 100644 res/drawable/ic_incognito.xml create mode 100644 res/drawable/ic_menu.xml create mode 100644 res/drawable/ic_menu_bookmark.xml create mode 100644 res/drawable/ic_menu_forward.xml create mode 100644 res/drawable/ic_menu_stop.xml create mode 100644 res/drawable/ic_new_window.xml delete mode 100644 res/drawable/ic_new_window_dark.xml create mode 100644 res/drawable/ic_new_window_incognito.xml create mode 100644 res/drawable/ic_refresh.xml delete mode 100644 res/drawable/ic_refresh_dark.xml create mode 100644 res/drawable/ic_settings.xml create mode 100644 res/drawable/ic_stop.xml delete mode 100644 res/drawable/ic_stop_dark.xml create mode 100644 res/drawable/ic_windows.xml create mode 100644 res/layout/four_button_menu_item.xml create mode 100644 res/values/cm_colors.xml delete mode 100644 res/xml-sw600dp/lab_preferences.xml create mode 100644 res/xml/interface_preferences.xml delete mode 100644 res/xml/lab_preferences.xml create mode 100644 src/com/android/browser/preferences/InterfacePreferencesFragment.java delete mode 100644 src/com/android/browser/preferences/LabPreferencesFragment.java diff --git a/Android.mk b/Android.mk index dff63a7..838d768 100644 --- a/Android.mk +++ b/Android.mk @@ -3,11 +3,15 @@ include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional +LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, res) \ + frameworks/support/v7/cardview/res + LOCAL_STATIC_JAVA_LIBRARIES := \ android-common \ guava \ android-support-v13 \ - android-support-v4 + android-support-v4 \ + android-support-v7-cardview LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ @@ -17,6 +21,10 @@ LOCAL_PACKAGE_NAME := Browser LOCAL_PROGUARD_FLAG_FILES := proguard.flags +LOCAL_AAPT_FLAGS := \ + --auto-add-overlay \ + --extra-packages android.support.v7.cardview + LOCAL_EMMA_COVERAGE_FILTER := *,-com.android.common.* # We need the sound recorder for the Media Capture API. diff --git a/res/drawable-hdpi/app_web_browser_sm.png b/res/drawable-hdpi/app_web_browser_sm.png deleted file mode 100644 index 62d5cc3..0000000 Binary files a/res/drawable-hdpi/app_web_browser_sm.png and /dev/null differ diff --git a/res/drawable-hdpi/browsertab_add.png b/res/drawable-hdpi/browsertab_add.png deleted file mode 100644 index 768ec1d..0000000 Binary files a/res/drawable-hdpi/browsertab_add.png and /dev/null differ diff --git a/res/drawable-hdpi/browsertab_add_focused.png b/res/drawable-hdpi/browsertab_add_focused.png deleted file mode 100644 index 30c371b..0000000 Binary files a/res/drawable-hdpi/browsertab_add_focused.png and /dev/null differ diff --git a/res/drawable-hdpi/browsertab_inactive.png b/res/drawable-hdpi/browsertab_inactive.png deleted file mode 100644 index 3ba90b1..0000000 Binary files a/res/drawable-hdpi/browsertab_inactive.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_back_hierarchy_dark.png b/res/drawable-hdpi/ic_back_hierarchy_dark.png deleted file mode 100644 index 86fa337..0000000 Binary files a/res/drawable-hdpi/ic_back_hierarchy_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_bookmark.png b/res/drawable-hdpi/ic_bookmark.png new file mode 100644 index 0000000..15aaccf Binary files /dev/null and b/res/drawable-hdpi/ic_bookmark.png differ diff --git a/res/drawable-hdpi/ic_bookmark_black.png b/res/drawable-hdpi/ic_bookmark_black.png deleted file mode 100644 index 15aaccf..0000000 Binary files a/res/drawable-hdpi/ic_bookmark_black.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_bookmark_off.png b/res/drawable-hdpi/ic_bookmark_off.png new file mode 100644 index 0000000..99dc3dc Binary files /dev/null and b/res/drawable-hdpi/ic_bookmark_off.png differ diff --git a/res/drawable-hdpi/ic_bookmark_off_dark.png b/res/drawable-hdpi/ic_bookmark_off_dark.png deleted file mode 100644 index 99dc3dc..0000000 Binary files a/res/drawable-hdpi/ic_bookmark_off_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_bookmark_on.png b/res/drawable-hdpi/ic_bookmark_on.png new file mode 100644 index 0000000..c31388b Binary files /dev/null and b/res/drawable-hdpi/ic_bookmark_on.png differ diff --git a/res/drawable-hdpi/ic_bookmark_on_dark.png b/res/drawable-hdpi/ic_bookmark_on_dark.png deleted file mode 100644 index c31388b..0000000 Binary files a/res/drawable-hdpi/ic_bookmark_on_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_bookmark_widget_bookmark.png b/res/drawable-hdpi/ic_bookmark_widget_bookmark.png new file mode 100644 index 0000000..b29d9a2 Binary files /dev/null and b/res/drawable-hdpi/ic_bookmark_widget_bookmark.png differ diff --git a/res/drawable-hdpi/ic_bookmark_widget_bookmark_dark.png b/res/drawable-hdpi/ic_bookmark_widget_bookmark_dark.png deleted file mode 100644 index b29d9a2..0000000 Binary files a/res/drawable-hdpi/ic_bookmark_widget_bookmark_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_delete.png b/res/drawable-hdpi/ic_delete.png new file mode 100644 index 0000000..4e34e33 Binary files /dev/null and b/res/drawable-hdpi/ic_delete.png differ diff --git a/res/drawable-hdpi/ic_delete_black.png b/res/drawable-hdpi/ic_delete_black.png deleted file mode 100644 index 4e34e33..0000000 Binary files a/res/drawable-hdpi/ic_delete_black.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_desktop.png b/res/drawable-hdpi/ic_desktop.png new file mode 100644 index 0000000..4bb18fa Binary files /dev/null and b/res/drawable-hdpi/ic_desktop.png differ diff --git a/res/drawable-hdpi/ic_desktop_dark.png b/res/drawable-hdpi/ic_desktop_dark.png deleted file mode 100644 index 4bb18fa..0000000 Binary files a/res/drawable-hdpi/ic_desktop_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_folder.png b/res/drawable-hdpi/ic_folder.png new file mode 100644 index 0000000..139d79b Binary files /dev/null and b/res/drawable-hdpi/ic_folder.png differ diff --git a/res/drawable-hdpi/ic_folder_dark.png b/res/drawable-hdpi/ic_folder_dark.png deleted file mode 100644 index 139d79b..0000000 Binary files a/res/drawable-hdpi/ic_folder_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_gps_denied.png b/res/drawable-hdpi/ic_gps_denied.png new file mode 100644 index 0000000..9ac0cd3 Binary files /dev/null and b/res/drawable-hdpi/ic_gps_denied.png differ diff --git a/res/drawable-hdpi/ic_gps_denied_dark.png b/res/drawable-hdpi/ic_gps_denied_dark.png deleted file mode 100644 index 9ac0cd3..0000000 Binary files a/res/drawable-hdpi/ic_gps_denied_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_gps_on.png b/res/drawable-hdpi/ic_gps_on.png new file mode 100644 index 0000000..65aa70b Binary files /dev/null and b/res/drawable-hdpi/ic_gps_on.png differ diff --git a/res/drawable-hdpi/ic_gps_on_dark.png b/res/drawable-hdpi/ic_gps_on_dark.png deleted file mode 100644 index 65aa70b..0000000 Binary files a/res/drawable-hdpi/ic_gps_on_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_history.png b/res/drawable-hdpi/ic_history.png new file mode 100644 index 0000000..b2b1332 Binary files /dev/null and b/res/drawable-hdpi/ic_history.png differ diff --git a/res/drawable-hdpi/ic_history_dark.png b/res/drawable-hdpi/ic_history_dark.png deleted file mode 100644 index b2b1332..0000000 Binary files a/res/drawable-hdpi/ic_history_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_home_dark.png b/res/drawable-hdpi/ic_home_dark.png deleted file mode 100644 index 24d2df3..0000000 Binary files a/res/drawable-hdpi/ic_home_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_home_info.png b/res/drawable-hdpi/ic_home_info.png new file mode 100644 index 0000000..aa5817a Binary files /dev/null and b/res/drawable-hdpi/ic_home_info.png differ diff --git a/res/drawable-hdpi/ic_home_info_dark.png b/res/drawable-hdpi/ic_home_info_dark.png deleted file mode 100644 index aa5817a..0000000 Binary files a/res/drawable-hdpi/ic_home_info_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_incognito_dark.png b/res/drawable-hdpi/ic_incognito_dark.png deleted file mode 100644 index 3e44913..0000000 Binary files a/res/drawable-hdpi/ic_incognito_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_new_incognito_dark.png b/res/drawable-hdpi/ic_new_incognito_dark.png deleted file mode 100644 index 2d2f5bf..0000000 Binary files a/res/drawable-hdpi/ic_new_incognito_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_refresh_dark.png b/res/drawable-hdpi/ic_refresh_dark.png deleted file mode 100644 index cd16fdd..0000000 Binary files a/res/drawable-hdpi/ic_refresh_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_search.png b/res/drawable-hdpi/ic_search.png new file mode 100644 index 0000000..a2fc5b2 Binary files /dev/null and b/res/drawable-hdpi/ic_search.png differ diff --git a/res/drawable-hdpi/ic_search_dark.png b/res/drawable-hdpi/ic_search_dark.png deleted file mode 100644 index a2fc5b2..0000000 Binary files a/res/drawable-hdpi/ic_search_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_secure_dark.png b/res/drawable-hdpi/ic_secure_dark.png deleted file mode 100644 index 76348f7..0000000 Binary files a/res/drawable-hdpi/ic_secure_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_secure_partial_dark.png b/res/drawable-hdpi/ic_secure_partial_dark.png deleted file mode 100644 index d7e3e5b..0000000 Binary files a/res/drawable-hdpi/ic_secure_partial_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_settings_dark.png b/res/drawable-hdpi/ic_settings_dark.png deleted file mode 100644 index f9a8915..0000000 Binary files a/res/drawable-hdpi/ic_settings_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_share.png b/res/drawable-hdpi/ic_share.png new file mode 100644 index 0000000..2094394 Binary files /dev/null and b/res/drawable-hdpi/ic_share.png differ diff --git a/res/drawable-hdpi/ic_share_dark.png b/res/drawable-hdpi/ic_share_dark.png deleted file mode 100644 index 2094394..0000000 Binary files a/res/drawable-hdpi/ic_share_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_tab_close.png b/res/drawable-hdpi/ic_tab_close.png deleted file mode 100644 index 794b7b7..0000000 Binary files a/res/drawable-hdpi/ic_tab_close.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_voice_search.png b/res/drawable-hdpi/ic_voice_search.png new file mode 100644 index 0000000..e5c2e8a Binary files /dev/null and b/res/drawable-hdpi/ic_voice_search.png differ diff --git a/res/drawable-hdpi/ic_voice_search_dark.png b/res/drawable-hdpi/ic_voice_search_dark.png deleted file mode 100644 index e5c2e8a..0000000 Binary files a/res/drawable-hdpi/ic_voice_search_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_web.png b/res/drawable-hdpi/ic_web.png new file mode 100644 index 0000000..0e3e7a9 Binary files /dev/null and b/res/drawable-hdpi/ic_web.png differ diff --git a/res/drawable-hdpi/ic_web_dark.png b/res/drawable-hdpi/ic_web_dark.png deleted file mode 100644 index 0e3e7a9..0000000 Binary files a/res/drawable-hdpi/ic_web_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_windows_dark.png b/res/drawable-hdpi/ic_windows_dark.png deleted file mode 100644 index 7eb5f5d..0000000 Binary files a/res/drawable-hdpi/ic_windows_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/nav_tab_bg.9.png b/res/drawable-hdpi/nav_tab_bg.9.png deleted file mode 100644 index d7e8693..0000000 Binary files a/res/drawable-hdpi/nav_tab_bg.9.png and /dev/null differ diff --git a/res/drawable-mdpi/app_web_browser_sm.png b/res/drawable-mdpi/app_web_browser_sm.png deleted file mode 100644 index 0bbc682..0000000 Binary files a/res/drawable-mdpi/app_web_browser_sm.png and /dev/null differ diff --git a/res/drawable-mdpi/browsertab_add.png b/res/drawable-mdpi/browsertab_add.png deleted file mode 100644 index fbbe32b..0000000 Binary files a/res/drawable-mdpi/browsertab_add.png and /dev/null differ diff --git a/res/drawable-mdpi/browsertab_add_focused.png b/res/drawable-mdpi/browsertab_add_focused.png deleted file mode 100644 index 6b6f538..0000000 Binary files a/res/drawable-mdpi/browsertab_add_focused.png and /dev/null differ diff --git a/res/drawable-mdpi/browsertab_inactive.png b/res/drawable-mdpi/browsertab_inactive.png deleted file mode 100644 index aa50b1b..0000000 Binary files a/res/drawable-mdpi/browsertab_inactive.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_back_hierarchy_dark.png b/res/drawable-mdpi/ic_back_hierarchy_dark.png deleted file mode 100644 index 5513b05..0000000 Binary files a/res/drawable-mdpi/ic_back_hierarchy_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_bookmark.png b/res/drawable-mdpi/ic_bookmark.png new file mode 100644 index 0000000..d7cd384 Binary files /dev/null and b/res/drawable-mdpi/ic_bookmark.png differ diff --git a/res/drawable-mdpi/ic_bookmark_black.png b/res/drawable-mdpi/ic_bookmark_black.png deleted file mode 100644 index d7cd384..0000000 Binary files a/res/drawable-mdpi/ic_bookmark_black.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_bookmark_off.png b/res/drawable-mdpi/ic_bookmark_off.png new file mode 100644 index 0000000..825970c Binary files /dev/null and b/res/drawable-mdpi/ic_bookmark_off.png differ diff --git a/res/drawable-mdpi/ic_bookmark_off_dark.png b/res/drawable-mdpi/ic_bookmark_off_dark.png deleted file mode 100644 index 825970c..0000000 Binary files a/res/drawable-mdpi/ic_bookmark_off_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_bookmark_on.png b/res/drawable-mdpi/ic_bookmark_on.png new file mode 100644 index 0000000..82da4ea Binary files /dev/null and b/res/drawable-mdpi/ic_bookmark_on.png differ diff --git a/res/drawable-mdpi/ic_bookmark_on_dark.png b/res/drawable-mdpi/ic_bookmark_on_dark.png deleted file mode 100644 index 82da4ea..0000000 Binary files a/res/drawable-mdpi/ic_bookmark_on_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_bookmark_widget_bookmark.png b/res/drawable-mdpi/ic_bookmark_widget_bookmark.png new file mode 100644 index 0000000..ec69d41 Binary files /dev/null and b/res/drawable-mdpi/ic_bookmark_widget_bookmark.png differ diff --git a/res/drawable-mdpi/ic_bookmark_widget_bookmark_dark.png b/res/drawable-mdpi/ic_bookmark_widget_bookmark_dark.png deleted file mode 100644 index ec69d41..0000000 Binary files a/res/drawable-mdpi/ic_bookmark_widget_bookmark_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_delete.png b/res/drawable-mdpi/ic_delete.png new file mode 100644 index 0000000..213fe67 Binary files /dev/null and b/res/drawable-mdpi/ic_delete.png differ diff --git a/res/drawable-mdpi/ic_delete_black.png b/res/drawable-mdpi/ic_delete_black.png deleted file mode 100644 index 213fe67..0000000 Binary files a/res/drawable-mdpi/ic_delete_black.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_desktop.png b/res/drawable-mdpi/ic_desktop.png new file mode 100644 index 0000000..b74276c Binary files /dev/null and b/res/drawable-mdpi/ic_desktop.png differ diff --git a/res/drawable-mdpi/ic_desktop_dark.png b/res/drawable-mdpi/ic_desktop_dark.png deleted file mode 100644 index b74276c..0000000 Binary files a/res/drawable-mdpi/ic_desktop_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_folder.png b/res/drawable-mdpi/ic_folder.png new file mode 100644 index 0000000..a9bebb9 Binary files /dev/null and b/res/drawable-mdpi/ic_folder.png differ diff --git a/res/drawable-mdpi/ic_folder_dark.png b/res/drawable-mdpi/ic_folder_dark.png deleted file mode 100644 index a9bebb9..0000000 Binary files a/res/drawable-mdpi/ic_folder_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_gps_denied.png b/res/drawable-mdpi/ic_gps_denied.png new file mode 100644 index 0000000..61f8c9b Binary files /dev/null and b/res/drawable-mdpi/ic_gps_denied.png differ diff --git a/res/drawable-mdpi/ic_gps_denied_dark.png b/res/drawable-mdpi/ic_gps_denied_dark.png deleted file mode 100644 index 61f8c9b..0000000 Binary files a/res/drawable-mdpi/ic_gps_denied_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_gps_on.png b/res/drawable-mdpi/ic_gps_on.png new file mode 100644 index 0000000..a125035 Binary files /dev/null and b/res/drawable-mdpi/ic_gps_on.png differ diff --git a/res/drawable-mdpi/ic_gps_on_dark.png b/res/drawable-mdpi/ic_gps_on_dark.png deleted file mode 100644 index a125035..0000000 Binary files a/res/drawable-mdpi/ic_gps_on_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_history.png b/res/drawable-mdpi/ic_history.png new file mode 100644 index 0000000..b93da10 Binary files /dev/null and b/res/drawable-mdpi/ic_history.png differ diff --git a/res/drawable-mdpi/ic_history_dark.png b/res/drawable-mdpi/ic_history_dark.png deleted file mode 100644 index b93da10..0000000 Binary files a/res/drawable-mdpi/ic_history_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_home_dark.png b/res/drawable-mdpi/ic_home_dark.png deleted file mode 100644 index 80545ce..0000000 Binary files a/res/drawable-mdpi/ic_home_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_home_info.png b/res/drawable-mdpi/ic_home_info.png new file mode 100644 index 0000000..97f0e3b Binary files /dev/null and b/res/drawable-mdpi/ic_home_info.png differ diff --git a/res/drawable-mdpi/ic_home_info_dark.png b/res/drawable-mdpi/ic_home_info_dark.png deleted file mode 100644 index 97f0e3b..0000000 Binary files a/res/drawable-mdpi/ic_home_info_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_incognito_dark.png b/res/drawable-mdpi/ic_incognito_dark.png deleted file mode 100644 index 197599c..0000000 Binary files a/res/drawable-mdpi/ic_incognito_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_new_incognito_dark.png b/res/drawable-mdpi/ic_new_incognito_dark.png deleted file mode 100644 index e8a7f49..0000000 Binary files a/res/drawable-mdpi/ic_new_incognito_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_refresh_dark.png b/res/drawable-mdpi/ic_refresh_dark.png deleted file mode 100644 index 235c84f..0000000 Binary files a/res/drawable-mdpi/ic_refresh_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_search.png b/res/drawable-mdpi/ic_search.png new file mode 100644 index 0000000..dff1e3a Binary files /dev/null and b/res/drawable-mdpi/ic_search.png differ diff --git a/res/drawable-mdpi/ic_search_dark.png b/res/drawable-mdpi/ic_search_dark.png deleted file mode 100644 index dff1e3a..0000000 Binary files a/res/drawable-mdpi/ic_search_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_secure_dark.png b/res/drawable-mdpi/ic_secure_dark.png deleted file mode 100644 index 8568256..0000000 Binary files a/res/drawable-mdpi/ic_secure_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_secure_partial_dark.png b/res/drawable-mdpi/ic_secure_partial_dark.png deleted file mode 100644 index cc8f039..0000000 Binary files a/res/drawable-mdpi/ic_secure_partial_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_settings_dark.png b/res/drawable-mdpi/ic_settings_dark.png deleted file mode 100644 index fdcf657..0000000 Binary files a/res/drawable-mdpi/ic_settings_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_share.png b/res/drawable-mdpi/ic_share.png new file mode 100644 index 0000000..d02cbad Binary files /dev/null and b/res/drawable-mdpi/ic_share.png differ diff --git a/res/drawable-mdpi/ic_share_dark.png b/res/drawable-mdpi/ic_share_dark.png deleted file mode 100644 index d02cbad..0000000 Binary files a/res/drawable-mdpi/ic_share_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_tab_close.png b/res/drawable-mdpi/ic_tab_close.png deleted file mode 100644 index df332ef..0000000 Binary files a/res/drawable-mdpi/ic_tab_close.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_voice_search.png b/res/drawable-mdpi/ic_voice_search.png new file mode 100644 index 0000000..75730cd Binary files /dev/null and b/res/drawable-mdpi/ic_voice_search.png differ diff --git a/res/drawable-mdpi/ic_voice_search_dark.png b/res/drawable-mdpi/ic_voice_search_dark.png deleted file mode 100644 index 75730cd..0000000 Binary files a/res/drawable-mdpi/ic_voice_search_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_web.png b/res/drawable-mdpi/ic_web.png new file mode 100644 index 0000000..9083c63 Binary files /dev/null and b/res/drawable-mdpi/ic_web.png differ diff --git a/res/drawable-mdpi/ic_web_dark.png b/res/drawable-mdpi/ic_web_dark.png deleted file mode 100644 index 9083c63..0000000 Binary files a/res/drawable-mdpi/ic_web_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_windows_dark.png b/res/drawable-mdpi/ic_windows_dark.png deleted file mode 100644 index 2cd98cc..0000000 Binary files a/res/drawable-mdpi/ic_windows_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/nav_tab_bg.9.png b/res/drawable-mdpi/nav_tab_bg.9.png deleted file mode 100644 index d30ba95..0000000 Binary files a/res/drawable-mdpi/nav_tab_bg.9.png and /dev/null differ diff --git a/res/drawable-sw600dp-hdpi/ic_secure_holo_dark.png b/res/drawable-sw600dp-hdpi/ic_secure_holo_dark.png deleted file mode 100644 index c11b709..0000000 Binary files a/res/drawable-sw600dp-hdpi/ic_secure_holo_dark.png and /dev/null differ diff --git a/res/drawable-sw600dp-hdpi/ic_secure_partial_holo_dark.png b/res/drawable-sw600dp-hdpi/ic_secure_partial_holo_dark.png deleted file mode 100644 index a90425a..0000000 Binary files a/res/drawable-sw600dp-hdpi/ic_secure_partial_holo_dark.png and /dev/null differ diff --git a/res/drawable-sw600dp-mdpi/ic_secure_holo_dark.png b/res/drawable-sw600dp-mdpi/ic_secure_holo_dark.png deleted file mode 100644 index fac7629..0000000 Binary files a/res/drawable-sw600dp-mdpi/ic_secure_holo_dark.png and /dev/null differ diff --git a/res/drawable-sw600dp-mdpi/ic_secure_partial_holo_dark.png b/res/drawable-sw600dp-mdpi/ic_secure_partial_holo_dark.png deleted file mode 100644 index a7b6cf9..0000000 Binary files a/res/drawable-sw600dp-mdpi/ic_secure_partial_holo_dark.png and /dev/null differ diff --git a/res/drawable-sw600dp-nodpi/bg_urlbar.png b/res/drawable-sw600dp-nodpi/bg_urlbar.png deleted file mode 100644 index 31c6443..0000000 Binary files a/res/drawable-sw600dp-nodpi/bg_urlbar.png and /dev/null differ diff --git a/res/drawable-sw600dp-xhdpi/ic_secure_holo_dark.png b/res/drawable-sw600dp-xhdpi/ic_secure_holo_dark.png deleted file mode 100644 index 1ce6c3f..0000000 Binary files a/res/drawable-sw600dp-xhdpi/ic_secure_holo_dark.png and /dev/null differ diff --git a/res/drawable-sw600dp-xhdpi/ic_secure_partial_holo_dark.png b/res/drawable-sw600dp-xhdpi/ic_secure_partial_holo_dark.png deleted file mode 100644 index 01feec8..0000000 Binary files a/res/drawable-sw600dp-xhdpi/ic_secure_partial_holo_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/app_web_browser_sm.png b/res/drawable-xhdpi/app_web_browser_sm.png deleted file mode 100644 index 45a5f12..0000000 Binary files a/res/drawable-xhdpi/app_web_browser_sm.png and /dev/null differ diff --git a/res/drawable-xhdpi/browsertab_add.png b/res/drawable-xhdpi/browsertab_add.png deleted file mode 100644 index 84f1123..0000000 Binary files a/res/drawable-xhdpi/browsertab_add.png and /dev/null differ diff --git a/res/drawable-xhdpi/browsertab_add_focused.png b/res/drawable-xhdpi/browsertab_add_focused.png deleted file mode 100644 index 56ea166..0000000 Binary files a/res/drawable-xhdpi/browsertab_add_focused.png and /dev/null differ diff --git a/res/drawable-xhdpi/browsertab_inactive.png b/res/drawable-xhdpi/browsertab_inactive.png deleted file mode 100644 index a4e93df..0000000 Binary files a/res/drawable-xhdpi/browsertab_inactive.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_back_hierarchy_dark.png b/res/drawable-xhdpi/ic_back_hierarchy_dark.png deleted file mode 100644 index 815b155..0000000 Binary files a/res/drawable-xhdpi/ic_back_hierarchy_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_bookmark.png b/res/drawable-xhdpi/ic_bookmark.png new file mode 100644 index 0000000..9992141 Binary files /dev/null and b/res/drawable-xhdpi/ic_bookmark.png differ diff --git a/res/drawable-xhdpi/ic_bookmark_black.png b/res/drawable-xhdpi/ic_bookmark_black.png deleted file mode 100644 index 9992141..0000000 Binary files a/res/drawable-xhdpi/ic_bookmark_black.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_bookmark_off.png b/res/drawable-xhdpi/ic_bookmark_off.png new file mode 100644 index 0000000..1472f6a Binary files /dev/null and b/res/drawable-xhdpi/ic_bookmark_off.png differ diff --git a/res/drawable-xhdpi/ic_bookmark_off_dark.png b/res/drawable-xhdpi/ic_bookmark_off_dark.png deleted file mode 100644 index 1472f6a..0000000 Binary files a/res/drawable-xhdpi/ic_bookmark_off_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_bookmark_on.png b/res/drawable-xhdpi/ic_bookmark_on.png new file mode 100644 index 0000000..46de0e9 Binary files /dev/null and b/res/drawable-xhdpi/ic_bookmark_on.png differ diff --git a/res/drawable-xhdpi/ic_bookmark_on_dark.png b/res/drawable-xhdpi/ic_bookmark_on_dark.png deleted file mode 100644 index 46de0e9..0000000 Binary files a/res/drawable-xhdpi/ic_bookmark_on_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_delete.png b/res/drawable-xhdpi/ic_delete.png new file mode 100644 index 0000000..e677071 Binary files /dev/null and b/res/drawable-xhdpi/ic_delete.png differ diff --git a/res/drawable-xhdpi/ic_delete_black.png b/res/drawable-xhdpi/ic_delete_black.png deleted file mode 100644 index e677071..0000000 Binary files a/res/drawable-xhdpi/ic_delete_black.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_desktop.png b/res/drawable-xhdpi/ic_desktop.png new file mode 100644 index 0000000..92b187d Binary files /dev/null and b/res/drawable-xhdpi/ic_desktop.png differ diff --git a/res/drawable-xhdpi/ic_desktop_dark.png b/res/drawable-xhdpi/ic_desktop_dark.png deleted file mode 100644 index 92b187d..0000000 Binary files a/res/drawable-xhdpi/ic_desktop_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_folder.png b/res/drawable-xhdpi/ic_folder.png new file mode 100644 index 0000000..6bdb7d0 Binary files /dev/null and b/res/drawable-xhdpi/ic_folder.png differ diff --git a/res/drawable-xhdpi/ic_folder_dark.png b/res/drawable-xhdpi/ic_folder_dark.png deleted file mode 100644 index 6bdb7d0..0000000 Binary files a/res/drawable-xhdpi/ic_folder_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_gps_denied.png b/res/drawable-xhdpi/ic_gps_denied.png new file mode 100644 index 0000000..1894424 Binary files /dev/null and b/res/drawable-xhdpi/ic_gps_denied.png differ diff --git a/res/drawable-xhdpi/ic_gps_denied_dark.png b/res/drawable-xhdpi/ic_gps_denied_dark.png deleted file mode 100644 index 1894424..0000000 Binary files a/res/drawable-xhdpi/ic_gps_denied_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_gps_on.png b/res/drawable-xhdpi/ic_gps_on.png new file mode 100644 index 0000000..a5683f9 Binary files /dev/null and b/res/drawable-xhdpi/ic_gps_on.png differ diff --git a/res/drawable-xhdpi/ic_gps_on_dark.png b/res/drawable-xhdpi/ic_gps_on_dark.png deleted file mode 100644 index a5683f9..0000000 Binary files a/res/drawable-xhdpi/ic_gps_on_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_history.png b/res/drawable-xhdpi/ic_history.png new file mode 100644 index 0000000..7681ac8 Binary files /dev/null and b/res/drawable-xhdpi/ic_history.png differ diff --git a/res/drawable-xhdpi/ic_history_dark.png b/res/drawable-xhdpi/ic_history_dark.png deleted file mode 100644 index 7681ac8..0000000 Binary files a/res/drawable-xhdpi/ic_history_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_home_dark.png b/res/drawable-xhdpi/ic_home_dark.png deleted file mode 100644 index d00f914..0000000 Binary files a/res/drawable-xhdpi/ic_home_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_home_info.png b/res/drawable-xhdpi/ic_home_info.png new file mode 100644 index 0000000..16e375d Binary files /dev/null and b/res/drawable-xhdpi/ic_home_info.png differ diff --git a/res/drawable-xhdpi/ic_home_info_dark.png b/res/drawable-xhdpi/ic_home_info_dark.png deleted file mode 100644 index 16e375d..0000000 Binary files a/res/drawable-xhdpi/ic_home_info_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_incognito_dark.png b/res/drawable-xhdpi/ic_incognito_dark.png deleted file mode 100644 index 94bf80e..0000000 Binary files a/res/drawable-xhdpi/ic_incognito_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_new_incognito_dark.png b/res/drawable-xhdpi/ic_new_incognito_dark.png deleted file mode 100644 index 2f21240..0000000 Binary files a/res/drawable-xhdpi/ic_new_incognito_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_refresh_dark.png b/res/drawable-xhdpi/ic_refresh_dark.png deleted file mode 100644 index 5f89fc2..0000000 Binary files a/res/drawable-xhdpi/ic_refresh_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_search.png b/res/drawable-xhdpi/ic_search.png new file mode 100644 index 0000000..043759a Binary files /dev/null and b/res/drawable-xhdpi/ic_search.png differ diff --git a/res/drawable-xhdpi/ic_search_dark.png b/res/drawable-xhdpi/ic_search_dark.png deleted file mode 100644 index 043759a..0000000 Binary files a/res/drawable-xhdpi/ic_search_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_secure_dark.png b/res/drawable-xhdpi/ic_secure_dark.png deleted file mode 100644 index 81a3542..0000000 Binary files a/res/drawable-xhdpi/ic_secure_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_secure_partial_dark.png b/res/drawable-xhdpi/ic_secure_partial_dark.png deleted file mode 100644 index 1df4dd9..0000000 Binary files a/res/drawable-xhdpi/ic_secure_partial_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_settings_dark.png b/res/drawable-xhdpi/ic_settings_dark.png deleted file mode 100644 index 12e5d10..0000000 Binary files a/res/drawable-xhdpi/ic_settings_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_share.png b/res/drawable-xhdpi/ic_share.png new file mode 100644 index 0000000..5c3047a Binary files /dev/null and b/res/drawable-xhdpi/ic_share.png differ diff --git a/res/drawable-xhdpi/ic_share_dark.png b/res/drawable-xhdpi/ic_share_dark.png deleted file mode 100644 index 5c3047a..0000000 Binary files a/res/drawable-xhdpi/ic_share_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_tab_close.png b/res/drawable-xhdpi/ic_tab_close.png deleted file mode 100644 index e9e9c7a..0000000 Binary files a/res/drawable-xhdpi/ic_tab_close.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_voice_search.png b/res/drawable-xhdpi/ic_voice_search.png new file mode 100644 index 0000000..a6f37ee Binary files /dev/null and b/res/drawable-xhdpi/ic_voice_search.png differ diff --git a/res/drawable-xhdpi/ic_voice_search_dark.png b/res/drawable-xhdpi/ic_voice_search_dark.png deleted file mode 100644 index a6f37ee..0000000 Binary files a/res/drawable-xhdpi/ic_voice_search_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_web.png b/res/drawable-xhdpi/ic_web.png new file mode 100644 index 0000000..bded242 Binary files /dev/null and b/res/drawable-xhdpi/ic_web.png differ diff --git a/res/drawable-xhdpi/ic_web_dark.png b/res/drawable-xhdpi/ic_web_dark.png deleted file mode 100644 index bded242..0000000 Binary files a/res/drawable-xhdpi/ic_web_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_windows_dark.png b/res/drawable-xhdpi/ic_windows_dark.png deleted file mode 100644 index 5b07ad6..0000000 Binary files a/res/drawable-xhdpi/ic_windows_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/nav_tab_bg.9.png b/res/drawable-xhdpi/nav_tab_bg.9.png deleted file mode 100644 index 9fa2234..0000000 Binary files a/res/drawable-xhdpi/nav_tab_bg.9.png and /dev/null differ diff --git a/res/drawable-xxhdpi/app_web_browser_sm.png b/res/drawable-xxhdpi/app_web_browser_sm.png deleted file mode 100644 index 45a5f12..0000000 Binary files a/res/drawable-xxhdpi/app_web_browser_sm.png and /dev/null differ diff --git a/res/drawable-xxhdpi/browsertab_add.png b/res/drawable-xxhdpi/browsertab_add.png deleted file mode 100644 index 60cc858..0000000 Binary files a/res/drawable-xxhdpi/browsertab_add.png and /dev/null differ diff --git a/res/drawable-xxhdpi/browsertab_add_focused.png b/res/drawable-xxhdpi/browsertab_add_focused.png deleted file mode 100644 index 4ccee3d..0000000 Binary files a/res/drawable-xxhdpi/browsertab_add_focused.png and /dev/null differ diff --git a/res/drawable-xxhdpi/browsertab_inactive.png b/res/drawable-xxhdpi/browsertab_inactive.png deleted file mode 100644 index 07d7e0e..0000000 Binary files a/res/drawable-xxhdpi/browsertab_inactive.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_back_hierarchy_dark.png b/res/drawable-xxhdpi/ic_back_hierarchy_dark.png deleted file mode 100644 index 69ac65e..0000000 Binary files a/res/drawable-xxhdpi/ic_back_hierarchy_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_bookmark.png b/res/drawable-xxhdpi/ic_bookmark.png new file mode 100644 index 0000000..1e4c01b Binary files /dev/null and b/res/drawable-xxhdpi/ic_bookmark.png differ diff --git a/res/drawable-xxhdpi/ic_bookmark_black.png b/res/drawable-xxhdpi/ic_bookmark_black.png deleted file mode 100644 index 1e4c01b..0000000 Binary files a/res/drawable-xxhdpi/ic_bookmark_black.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_bookmark_off.png b/res/drawable-xxhdpi/ic_bookmark_off.png new file mode 100644 index 0000000..ba8eccb Binary files /dev/null and b/res/drawable-xxhdpi/ic_bookmark_off.png differ diff --git a/res/drawable-xxhdpi/ic_bookmark_off_dark.png b/res/drawable-xxhdpi/ic_bookmark_off_dark.png deleted file mode 100644 index ba8eccb..0000000 Binary files a/res/drawable-xxhdpi/ic_bookmark_off_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_bookmark_on.png b/res/drawable-xxhdpi/ic_bookmark_on.png new file mode 100644 index 0000000..33a28c0 Binary files /dev/null and b/res/drawable-xxhdpi/ic_bookmark_on.png differ diff --git a/res/drawable-xxhdpi/ic_bookmark_on_dark.png b/res/drawable-xxhdpi/ic_bookmark_on_dark.png deleted file mode 100644 index 33a28c0..0000000 Binary files a/res/drawable-xxhdpi/ic_bookmark_on_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_bookmark_widget_bookmark.png b/res/drawable-xxhdpi/ic_bookmark_widget_bookmark.png new file mode 100644 index 0000000..7267a25 Binary files /dev/null and b/res/drawable-xxhdpi/ic_bookmark_widget_bookmark.png differ diff --git a/res/drawable-xxhdpi/ic_bookmark_widget_bookmark_dark.png b/res/drawable-xxhdpi/ic_bookmark_widget_bookmark_dark.png deleted file mode 100644 index 7267a25..0000000 Binary files a/res/drawable-xxhdpi/ic_bookmark_widget_bookmark_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_cancel_white_24dp.png b/res/drawable-xxhdpi/ic_cancel_white_24dp.png deleted file mode 100644 index faa409f..0000000 Binary files a/res/drawable-xxhdpi/ic_cancel_white_24dp.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_delete.png b/res/drawable-xxhdpi/ic_delete.png new file mode 100644 index 0000000..8d86e58 Binary files /dev/null and b/res/drawable-xxhdpi/ic_delete.png differ diff --git a/res/drawable-xxhdpi/ic_delete_black.png b/res/drawable-xxhdpi/ic_delete_black.png deleted file mode 100644 index 8d86e58..0000000 Binary files a/res/drawable-xxhdpi/ic_delete_black.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_desktop.png b/res/drawable-xxhdpi/ic_desktop.png new file mode 100644 index 0000000..b54a561 Binary files /dev/null and b/res/drawable-xxhdpi/ic_desktop.png differ diff --git a/res/drawable-xxhdpi/ic_desktop_dark.png b/res/drawable-xxhdpi/ic_desktop_dark.png deleted file mode 100644 index b54a561..0000000 Binary files a/res/drawable-xxhdpi/ic_desktop_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_folder.png b/res/drawable-xxhdpi/ic_folder.png new file mode 100644 index 0000000..6bdb7d0 Binary files /dev/null and b/res/drawable-xxhdpi/ic_folder.png differ diff --git a/res/drawable-xxhdpi/ic_folder_dark.png b/res/drawable-xxhdpi/ic_folder_dark.png deleted file mode 100644 index 6bdb7d0..0000000 Binary files a/res/drawable-xxhdpi/ic_folder_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_gps_denied.png b/res/drawable-xxhdpi/ic_gps_denied.png new file mode 100644 index 0000000..0478775 Binary files /dev/null and b/res/drawable-xxhdpi/ic_gps_denied.png differ diff --git a/res/drawable-xxhdpi/ic_gps_denied_dark.png b/res/drawable-xxhdpi/ic_gps_denied_dark.png deleted file mode 100644 index 0478775..0000000 Binary files a/res/drawable-xxhdpi/ic_gps_denied_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_gps_on.png b/res/drawable-xxhdpi/ic_gps_on.png new file mode 100644 index 0000000..72f948e Binary files /dev/null and b/res/drawable-xxhdpi/ic_gps_on.png differ diff --git a/res/drawable-xxhdpi/ic_gps_on_dark.png b/res/drawable-xxhdpi/ic_gps_on_dark.png deleted file mode 100644 index 72f948e..0000000 Binary files a/res/drawable-xxhdpi/ic_gps_on_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_history.png b/res/drawable-xxhdpi/ic_history.png new file mode 100644 index 0000000..3e438ec Binary files /dev/null and b/res/drawable-xxhdpi/ic_history.png differ diff --git a/res/drawable-xxhdpi/ic_history_dark.png b/res/drawable-xxhdpi/ic_history_dark.png deleted file mode 100644 index 3e438ec..0000000 Binary files a/res/drawable-xxhdpi/ic_history_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_home_dark.png b/res/drawable-xxhdpi/ic_home_dark.png deleted file mode 100644 index fd40ac3..0000000 Binary files a/res/drawable-xxhdpi/ic_home_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_home_info.png b/res/drawable-xxhdpi/ic_home_info.png new file mode 100644 index 0000000..c67573f Binary files /dev/null and b/res/drawable-xxhdpi/ic_home_info.png differ diff --git a/res/drawable-xxhdpi/ic_home_info_dark.png b/res/drawable-xxhdpi/ic_home_info_dark.png deleted file mode 100644 index c67573f..0000000 Binary files a/res/drawable-xxhdpi/ic_home_info_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_incognito_dark.png b/res/drawable-xxhdpi/ic_incognito_dark.png deleted file mode 100644 index 94bf80e..0000000 Binary files a/res/drawable-xxhdpi/ic_incognito_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_new_incognito_dark.png b/res/drawable-xxhdpi/ic_new_incognito_dark.png deleted file mode 100644 index 2f21240..0000000 Binary files a/res/drawable-xxhdpi/ic_new_incognito_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_refresh_dark.png b/res/drawable-xxhdpi/ic_refresh_dark.png deleted file mode 100644 index 72128fe..0000000 Binary files a/res/drawable-xxhdpi/ic_refresh_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_search.png b/res/drawable-xxhdpi/ic_search.png new file mode 100644 index 0000000..0bbeab1 Binary files /dev/null and b/res/drawable-xxhdpi/ic_search.png differ diff --git a/res/drawable-xxhdpi/ic_search_dark.png b/res/drawable-xxhdpi/ic_search_dark.png deleted file mode 100644 index 0bbeab1..0000000 Binary files a/res/drawable-xxhdpi/ic_search_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_secure_dark.png b/res/drawable-xxhdpi/ic_secure_dark.png deleted file mode 100644 index 850e06e..0000000 Binary files a/res/drawable-xxhdpi/ic_secure_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_secure_partial_dark.png b/res/drawable-xxhdpi/ic_secure_partial_dark.png deleted file mode 100644 index aa32a7e..0000000 Binary files a/res/drawable-xxhdpi/ic_secure_partial_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_settings_dark.png b/res/drawable-xxhdpi/ic_settings_dark.png deleted file mode 100644 index 6bb8f6e..0000000 Binary files a/res/drawable-xxhdpi/ic_settings_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_share.png b/res/drawable-xxhdpi/ic_share.png new file mode 100644 index 0000000..9963c6a Binary files /dev/null and b/res/drawable-xxhdpi/ic_share.png differ diff --git a/res/drawable-xxhdpi/ic_share_dark.png b/res/drawable-xxhdpi/ic_share_dark.png deleted file mode 100644 index 9963c6a..0000000 Binary files a/res/drawable-xxhdpi/ic_share_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_tab_close.png b/res/drawable-xxhdpi/ic_tab_close.png deleted file mode 100644 index e9e9c7a..0000000 Binary files a/res/drawable-xxhdpi/ic_tab_close.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_voice_search.png b/res/drawable-xxhdpi/ic_voice_search.png new file mode 100644 index 0000000..077f8d8 Binary files /dev/null and b/res/drawable-xxhdpi/ic_voice_search.png differ diff --git a/res/drawable-xxhdpi/ic_voice_search_dark.png b/res/drawable-xxhdpi/ic_voice_search_dark.png deleted file mode 100644 index 077f8d8..0000000 Binary files a/res/drawable-xxhdpi/ic_voice_search_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_web.png b/res/drawable-xxhdpi/ic_web.png new file mode 100644 index 0000000..56e7246 Binary files /dev/null and b/res/drawable-xxhdpi/ic_web.png differ diff --git a/res/drawable-xxhdpi/ic_web_dark.png b/res/drawable-xxhdpi/ic_web_dark.png deleted file mode 100644 index 56e7246..0000000 Binary files a/res/drawable-xxhdpi/ic_web_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_windows_dark.png b/res/drawable-xxhdpi/ic_windows_dark.png deleted file mode 100644 index 9ff2296..0000000 Binary files a/res/drawable-xxhdpi/ic_windows_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/nav_tab_bg.9.png b/res/drawable-xxhdpi/nav_tab_bg.9.png deleted file mode 100644 index b980597..0000000 Binary files a/res/drawable-xxhdpi/nav_tab_bg.9.png and /dev/null differ diff --git a/res/drawable/add_tab_selector.xml b/res/drawable/add_tab_selector.xml index 4898f8f..35a0404 100644 --- a/res/drawable/add_tab_selector.xml +++ b/res/drawable/add_tab_selector.xml @@ -18,7 +18,7 @@ + android:drawable="@color/primary" /> + android:drawable="@color/primary" /> diff --git a/res/drawable/btn_checkbox_star.xml b/res/drawable/btn_checkbox_star.xml index 6f2c75b..ddbcb53 100644 --- a/res/drawable/btn_checkbox_star.xml +++ b/res/drawable/btn_checkbox_star.xml @@ -16,7 +16,7 @@ + android:drawable="@drawable/ic_bookmark_on" /> + android:drawable="@drawable/ic_bookmark_off" /> diff --git a/res/drawable/btn_imageview_star.xml b/res/drawable/btn_imageview_star.xml index 319c199..6de9801 100644 --- a/res/drawable/btn_imageview_star.xml +++ b/res/drawable/btn_imageview_star.xml @@ -16,7 +16,7 @@ + android:drawable="@drawable/ic_bookmark_on" /> + android:drawable="@drawable/ic_bookmark_off" /> diff --git a/res/drawable/card.xml b/res/drawable/card.xml new file mode 100644 index 0000000..fbbf095 --- /dev/null +++ b/res/drawable/card.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/res/drawable/ic_back.xml b/res/drawable/ic_back.xml new file mode 100644 index 0000000..2f704c5 --- /dev/null +++ b/res/drawable/ic_back.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/res/drawable/ic_back_dark.xml b/res/drawable/ic_back_dark.xml deleted file mode 100644 index f470923..0000000 --- a/res/drawable/ic_back_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_back_disabled.xml b/res/drawable/ic_back_disabled.xml new file mode 100644 index 0000000..f470923 --- /dev/null +++ b/res/drawable/ic_back_disabled.xml @@ -0,0 +1,15 @@ + + + + + + + + diff --git a/res/drawable/ic_back_disabled_dark.xml b/res/drawable/ic_back_disabled_dark.xml deleted file mode 100644 index f470923..0000000 --- a/res/drawable/ic_back_disabled_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_back_hierarchy.xml b/res/drawable/ic_back_hierarchy.xml new file mode 100644 index 0000000..2b1a1b9 --- /dev/null +++ b/res/drawable/ic_back_hierarchy.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/res/drawable/ic_back_hierarchy_dark.xml b/res/drawable/ic_back_hierarchy_dark.xml deleted file mode 100644 index 07defc9..0000000 --- a/res/drawable/ic_back_hierarchy_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_bookmarks.xml b/res/drawable/ic_bookmarks.xml new file mode 100644 index 0000000..a7d7342 --- /dev/null +++ b/res/drawable/ic_bookmarks.xml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/res/drawable/ic_bookmarks_dark.xml b/res/drawable/ic_bookmarks_dark.xml deleted file mode 100644 index a7d7342..0000000 --- a/res/drawable/ic_bookmarks_dark.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_bookmarks_history.xml b/res/drawable/ic_bookmarks_history.xml new file mode 100644 index 0000000..a7d7342 --- /dev/null +++ b/res/drawable/ic_bookmarks_history.xml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/res/drawable/ic_bookmarks_history_dark.xml b/res/drawable/ic_bookmarks_history_dark.xml deleted file mode 100644 index a7d7342..0000000 --- a/res/drawable/ic_bookmarks_history_dark.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_close_window.xml b/res/drawable/ic_close_window.xml new file mode 100644 index 0000000..5e49748 --- /dev/null +++ b/res/drawable/ic_close_window.xml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/res/drawable/ic_close_window_dark.xml b/res/drawable/ic_close_window_dark.xml deleted file mode 100644 index 5e49748..0000000 --- a/res/drawable/ic_close_window_dark.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_forward.xml b/res/drawable/ic_forward.xml new file mode 100644 index 0000000..1489d5e --- /dev/null +++ b/res/drawable/ic_forward.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/res/drawable/ic_forward_dark.xml b/res/drawable/ic_forward_dark.xml deleted file mode 100644 index b75da6c..0000000 --- a/res/drawable/ic_forward_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_forward_disabled.xml b/res/drawable/ic_forward_disabled.xml new file mode 100644 index 0000000..b75da6c --- /dev/null +++ b/res/drawable/ic_forward_disabled.xml @@ -0,0 +1,15 @@ + + + + + + + + diff --git a/res/drawable/ic_forward_disabled_dark.xml b/res/drawable/ic_forward_disabled_dark.xml deleted file mode 100644 index b75da6c..0000000 --- a/res/drawable/ic_forward_disabled_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_fullscreen.xml b/res/drawable/ic_fullscreen.xml new file mode 100644 index 0000000..d955ed7 --- /dev/null +++ b/res/drawable/ic_fullscreen.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/res/drawable/ic_home.xml b/res/drawable/ic_home.xml new file mode 100644 index 0000000..9b8ebbe --- /dev/null +++ b/res/drawable/ic_home.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/res/drawable/ic_incognito.xml b/res/drawable/ic_incognito.xml new file mode 100644 index 0000000..e88d891 --- /dev/null +++ b/res/drawable/ic_incognito.xml @@ -0,0 +1,17 @@ + + + + + diff --git a/res/drawable/ic_menu.xml b/res/drawable/ic_menu.xml new file mode 100644 index 0000000..8cf152f --- /dev/null +++ b/res/drawable/ic_menu.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/res/drawable/ic_menu_bookmark.xml b/res/drawable/ic_menu_bookmark.xml new file mode 100644 index 0000000..2646064 --- /dev/null +++ b/res/drawable/ic_menu_bookmark.xml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/res/drawable/ic_menu_forward.xml b/res/drawable/ic_menu_forward.xml new file mode 100644 index 0000000..cdf04d7 --- /dev/null +++ b/res/drawable/ic_menu_forward.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/res/drawable/ic_menu_stop.xml b/res/drawable/ic_menu_stop.xml new file mode 100644 index 0000000..3189848 --- /dev/null +++ b/res/drawable/ic_menu_stop.xml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/res/drawable/ic_new_window.xml b/res/drawable/ic_new_window.xml new file mode 100644 index 0000000..2339658 --- /dev/null +++ b/res/drawable/ic_new_window.xml @@ -0,0 +1,15 @@ + + + + + + + + diff --git a/res/drawable/ic_new_window_dark.xml b/res/drawable/ic_new_window_dark.xml deleted file mode 100644 index 2339658..0000000 --- a/res/drawable/ic_new_window_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_new_window_incognito.xml b/res/drawable/ic_new_window_incognito.xml new file mode 100644 index 0000000..46a950e --- /dev/null +++ b/res/drawable/ic_new_window_incognito.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/res/drawable/ic_refresh.xml b/res/drawable/ic_refresh.xml new file mode 100644 index 0000000..4f870dc --- /dev/null +++ b/res/drawable/ic_refresh.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/res/drawable/ic_refresh_dark.xml b/res/drawable/ic_refresh_dark.xml deleted file mode 100644 index 674c8fd..0000000 --- a/res/drawable/ic_refresh_dark.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_settings.xml b/res/drawable/ic_settings.xml new file mode 100644 index 0000000..1600440 --- /dev/null +++ b/res/drawable/ic_settings.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/res/drawable/ic_stop.xml b/res/drawable/ic_stop.xml new file mode 100644 index 0000000..5e49748 --- /dev/null +++ b/res/drawable/ic_stop.xml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/res/drawable/ic_stop_dark.xml b/res/drawable/ic_stop_dark.xml deleted file mode 100644 index 5e49748..0000000 --- a/res/drawable/ic_stop_dark.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/res/drawable/ic_windows.xml b/res/drawable/ic_windows.xml new file mode 100644 index 0000000..64f4b3a --- /dev/null +++ b/res/drawable/ic_windows.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/res/drawable/url_background.xml b/res/drawable/url_background.xml index f719c29..42d812c 100644 --- a/res/drawable/url_background.xml +++ b/res/drawable/url_background.xml @@ -18,8 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android"> + android:drawable="@color/primary" /> - \ No newline at end of file + android:drawable="@color/primary" /> + diff --git a/res/layout-land/nav_screen.xml b/res/layout-land/nav_screen.xml index dc95217..4091573 100644 --- a/res/layout-land/nav_screen.xml +++ b/res/layout-land/nav_screen.xml @@ -37,41 +37,43 @@ android:id="@+id/gotohome" android:layout_width="wrap_content" android:layout_height="match_parent" - style="@style/HoloButton" + style="@style/BrowserButton" android:gravity="center_vertical" android:contentDescription="@string/accessibility_button_homescreen" - android:src="@drawable/ic_home_dark" /> + android:visibility="gone" + android:src="@drawable/ic_home" /> + android:visibility="gone" + android:src="@drawable/ic_incognito" /> + android:src="@drawable/ic_new_window" /> + android:src="@drawable/ic_bookmarks_history" + style="@style/BrowserButton" /> @@ -90,6 +92,6 @@ android:layout_width="56dp" android:layout_height="56dp" android:background="@drawable/floating_action_button" - android:src="@drawable/ic_new_window_dark"/> + android:src="@drawable/ic_new_window"/> diff --git a/res/layout-sw600dp/suggestion_item.xml b/res/layout-sw600dp/suggestion_item.xml index b1a809b..b106ae6 100644 --- a/res/layout-sw600dp/suggestion_item.xml +++ b/res/layout-sw600dp/suggestion_item.xml @@ -68,17 +68,10 @@ - diff --git a/res/layout-sw600dp/title_bar_nav.xml b/res/layout-sw600dp/title_bar_nav.xml index 62e0d78..444ea43 100644 --- a/res/layout-sw600dp/title_bar_nav.xml +++ b/res/layout-sw600dp/title_bar_nav.xml @@ -26,26 +26,26 @@ android:orientation="horizontal"> + style="@style/BrowserButton" /> + style="@style/BrowserButton" /> + android:src="@drawable/ic_stop" /> - - + android:background="@color/primary"> + style="@style/BrowserButton" /> + style="@style/BrowserButton" /> + style="@style/BrowserButton" /> + style="@style/BrowserButton" /> + android:src="@drawable/ic_bookmarks_history" /> diff --git a/res/layout-sw600dp/title_bar_snapshot.xml b/res/layout-sw600dp/title_bar_snapshot.xml index 2155e70..1669233 100644 --- a/res/layout-sw600dp/title_bar_snapshot.xml +++ b/res/layout-sw600dp/title_bar_snapshot.xml @@ -49,7 +49,7 @@ android:layout_height="match_parent" android:scaleType="center" android:paddingRight="16dip" - style="@style/HoloButton" - android:src="@drawable/ic_bookmarks_history_dark" + style="@style/BrowserButton" + android:src="@drawable/ic_bookmarks_history" android:contentDescription="@string/accessibility_button_bookmarks" /> diff --git a/res/layout/add_new_bookmark.xml b/res/layout/add_new_bookmark.xml index 730b74e..f00374d 100644 --- a/res/layout/add_new_bookmark.xml +++ b/res/layout/add_new_bookmark.xml @@ -31,7 +31,7 @@ android:layout_marginLeft="5dip" android:layout_marginRight="11dip" android:focusable="false" - android:src="@drawable/ic_bookmark_on_dark" + android:src="@drawable/ic_bookmark_on" android:scaleType="fitCenter" /> - + android:src="@drawable/ic_web" /> + android:src="@drawable/ic_new_window" /> + android:src="@drawable/ic_home_info" /> diff --git a/res/layout/browser_add_bookmark_content.xml b/res/layout/browser_add_bookmark_content.xml index 6b4bad9..bf76592 100644 --- a/res/layout/browser_add_bookmark_content.xml +++ b/res/layout/browser_add_bookmark_content.xml @@ -61,7 +61,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:gravity="center_vertical" - android:drawableLeft="@drawable/ic_bookmark_black" + android:drawableLeft="@drawable/ic_bookmark" android:text="@string/bookmark_this_page" android:textAppearance="?android:attr/textAppearanceMedium" /> diff --git a/res/layout/browser_subwindow.xml b/res/layout/browser_subwindow.xml index e1f05d7..c206a2b 100644 --- a/res/layout/browser_subwindow.xml +++ b/res/layout/browser_subwindow.xml @@ -27,11 +27,11 @@ android:layout_gravity="right" android:gravity="right" > + android:src="@drawable/ic_close_window" /> + android:src="@drawable/ic_folder" /> + + + + + + + + + + + diff --git a/res/layout/nav_screen.xml b/res/layout/nav_screen.xml index 46a86cf..d028ea1 100644 --- a/res/layout/nav_screen.xml +++ b/res/layout/nav_screen.xml @@ -19,7 +19,7 @@ android:id="@+id/nav_screen" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@drawable/browser_background_holo"> + android:background="@color/white"> - + android:visibility="gone" + android:src="@drawable/ic_incognito" /> + android:src="@drawable/ic_new_window" /> + android:src="@drawable/ic_bookmarks_history" + style="@style/BrowserButton" /> @@ -91,6 +84,6 @@ android:layout_width="56dp" android:layout_height="56dp" android:background="@drawable/floating_action_button" - android:src="@drawable/ic_new_window_dark"/> + android:src="@drawable/ic_new_window"/> diff --git a/res/layout/nav_tab_view.xml b/res/layout/nav_tab_view.xml index 5b1b55c..4f9c70f 100644 --- a/res/layout/nav_tab_view.xml +++ b/res/layout/nav_tab_view.xml @@ -12,52 +12,46 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + android:background="@drawable/card" --> - + android:elevation="6dp" + card_view:cardCornerRadius="2dp" + card_view:cardElevation="4dp" + card_view:cardBackgroundColor="@color/primary" + card_view:contentPaddingLeft="8dp" + card_view:contentPaddingRight="8dp" + card_view:contentPaddingTop="8dp" + card_view:contentPaddingBottom="4dp" + card_view:cardUseCompatPadding="true"> + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal"> + - + android:textAppearance="?android:attr/textAppearanceSmallInverse" /> - - + diff --git a/res/layout/new_folder_layout.xml b/res/layout/new_folder_layout.xml index 76cc2f2..d2ebdb4 100644 --- a/res/layout/new_folder_layout.xml +++ b/res/layout/new_folder_layout.xml @@ -26,7 +26,7 @@ android:layout_height="wrap_content" android:gravity="center_vertical" android:minHeight="?android:attr/listPreferredItemHeight" - android:src="@drawable/ic_folder_dark" /> + android:src="@drawable/ic_folder" /> - diff --git a/res/layout/tab_bar.xml b/res/layout/tab_bar.xml index 7d32a8c..144222c 100644 --- a/res/layout/tab_bar.xml +++ b/res/layout/tab_bar.xml @@ -28,6 +28,6 @@ android:src="@drawable/ic_menu_new_window" android:layout_width="wrap_content" android:layout_height="match_parent" - style="@style/HoloButton" + style="@style/BrowserButton" android:background="@drawable/add_tab_selector" /> diff --git a/res/layout/tab_title.xml b/res/layout/tab_title.xml index 954ffa3..226e18d 100644 --- a/res/layout/tab_title.xml +++ b/res/layout/tab_title.xml @@ -22,7 +22,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center_vertical" - android:src="@drawable/ic_incognito_dark" + android:src="@drawable/ic_incognito" android:contentDescription="@string/accessibility_state_incognito" android:visibility="gone" /> - - - - - + android:src="@drawable/ic_search" /> + android:src="@drawable/ic_stop" + style="@style/BrowserButton" /> - + + android:src="@drawable/ic_windows" + style="@style/BrowserButton" /> diff --git a/res/layout/title_bar_snapshot.xml b/res/layout/title_bar_snapshot.xml index c203a80..4dbc4e3 100644 --- a/res/layout/title_bar_snapshot.xml +++ b/res/layout/title_bar_snapshot.xml @@ -57,14 +57,14 @@ android:id="@+id/tab_switcher" android:layout_width="wrap_content" android:layout_height="match_parent" - android:src="@drawable/ic_windows_dark" + android:src="@drawable/ic_windows" android:contentDescription="@string/accessibility_button_navscreen" - style="@style/HoloButton" /> + style="@style/BrowserButton" /> diff --git a/res/layout/widget_account_selection.xml b/res/layout/widget_account_selection.xml index 5dcd210..a66d7b8 100644 --- a/res/layout/widget_account_selection.xml +++ b/res/layout/widget_account_selection.xml @@ -54,4 +54,3 @@ - diff --git a/res/menu-sw600dp/combined.xml b/res/menu-sw600dp/combined.xml index 3c02d03..96ab79a 100644 --- a/res/menu-sw600dp/combined.xml +++ b/res/menu-sw600dp/combined.xml @@ -18,7 +18,7 @@ diff --git a/res/menu/browser.xml b/res/menu/browser.xml index 73f988c..afd9565 100644 --- a/res/menu/browser.xml +++ b/res/menu/browser.xml @@ -1,12 +1,9 @@ diff --git a/res/mipmap-hdpi/ic_launcher_browser.png b/res/mipmap-hdpi/ic_launcher_browser.png index a346c60..8c877ea 100644 Binary files a/res/mipmap-hdpi/ic_launcher_browser.png and b/res/mipmap-hdpi/ic_launcher_browser.png differ diff --git a/res/mipmap-mdpi/ic_launcher_browser.png b/res/mipmap-mdpi/ic_launcher_browser.png index 5f41c8e..9def2da 100644 Binary files a/res/mipmap-mdpi/ic_launcher_browser.png and b/res/mipmap-mdpi/ic_launcher_browser.png differ diff --git a/res/mipmap-xhdpi/ic_launcher_browser.png b/res/mipmap-xhdpi/ic_launcher_browser.png index 4e1f08e..aee578b 100644 Binary files a/res/mipmap-xhdpi/ic_launcher_browser.png and b/res/mipmap-xhdpi/ic_launcher_browser.png differ diff --git a/res/mipmap-xxhdpi/ic_launcher_browser.png b/res/mipmap-xxhdpi/ic_launcher_browser.png index 3c99526..1cc15be 100644 Binary files a/res/mipmap-xxhdpi/ic_launcher_browser.png and b/res/mipmap-xxhdpi/ic_launcher_browser.png differ diff --git a/res/mipmap-xxxhdpi/ic_launcher_browser.png b/res/mipmap-xxxhdpi/ic_launcher_browser.png index 531d05b..852323f 100644 Binary files a/res/mipmap-xxxhdpi/ic_launcher_browser.png and b/res/mipmap-xxxhdpi/ic_launcher_browser.png differ diff --git a/res/values/cm_colors.xml b/res/values/cm_colors.xml new file mode 100644 index 0000000..c9dd6af --- /dev/null +++ b/res/values/cm_colors.xml @@ -0,0 +1,25 @@ + + + + #fafafa + #212121 + #4caf50 + #388e3c + #1b5e20 + #388e3c + #00000000 + diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index ebcc697..e5f22ac 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -27,4 +27,16 @@ User agent + + + Interface + + + Fullscreen + Enable immersive navigation + + + OneHand Navigation + Easier web navigation with swipes and quick actions + diff --git a/res/values/colors.xml b/res/values/colors.xml index 3b362aa..706180d 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -20,12 +20,6 @@ - #fafafa - #212121 - #4caf50 - #388e3c - #1b5e20 - #388e3c #383847 #383847 #2b2b3c diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml index b285344..59e235e 100644 --- a/res/values/dimensions.xml +++ b/res/values/dimensions.xml @@ -69,7 +69,7 @@ 160dip 240dip 160dip - 32dip + 24dip 18sp 14sp 8dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 0ad7ffe..6541904 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -62,7 +62,7 @@ ?android:attr/textColorHintInverse - diff --git a/res/xml-sw600dp/lab_preferences.xml b/res/xml-sw600dp/lab_preferences.xml deleted file mode 100644 index a7151e0..0000000 --- a/res/xml-sw600dp/lab_preferences.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/res/xml/general_preferences.xml b/res/xml/general_preferences.xml index d2b9c51..b12df57 100644 --- a/res/xml/general_preferences.xml +++ b/res/xml/general_preferences.xml @@ -22,13 +22,10 @@ android:entryValues="@array/pref_homepage_values" android:title="@string/pref_content_homepage" /> - - - - diff --git a/res/xml/interface_preferences.xml b/res/xml/interface_preferences.xml new file mode 100644 index 0000000..f4fbc71 --- /dev/null +++ b/res/xml/interface_preferences.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/res/xml/lab_preferences.xml b/res/xml/lab_preferences.xml deleted file mode 100644 index a7151e0..0000000 --- a/res/xml/lab_preferences.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/res/xml/preference_headers.xml b/res/xml/preference_headers.xml index 2c80835..9265a2c 100644 --- a/res/xml/preference_headers.xml +++ b/res/xml/preference_headers.xml @@ -36,8 +36,8 @@ android:title="@string/pref_data_title" /> -
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index 6f3779a..c4365e4 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -669,7 +669,7 @@ public class AddBookmarkPage extends Activity mCrumbs = (BreadCrumbView) findViewById(R.id.crumbs); mCrumbs.setUseBackButton(true); mCrumbs.setController(this); - mHeaderIcon = getResources().getDrawable(R.drawable.ic_folder_dark); + mHeaderIcon = getResources().getDrawable(R.drawable.ic_folder); mCrumbHolder = findViewById(R.id.crumb_holder); mCrumbs.setMaxVisible(MAX_CRUMBS_SHOWN); diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 939874f..cdfc5a2 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java @@ -34,6 +34,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.text.TextUtils; +import android.view.GestureDetector; import android.view.Gravity; import android.view.LayoutInflater; import android.view.Menu; @@ -87,16 +88,13 @@ public abstract class BaseUi implements UI { protected Tab mActiveTab; private InputMethodManager mInputManager; - private Drawable mLockIconSecure; - private Drawable mLockIconMixed; - protected Drawable mGenericFavicon; - protected FrameLayout mContentView; protected FrameLayout mCustomViewContainer; protected FrameLayout mFullscreenContainer; private FrameLayout mFixedTitlebarContainer; private View mCustomView; + private View mDecorView; private WebChromeClient.CustomViewCallback mCustomViewCallback; private int mOriginalOrientation; @@ -125,8 +123,6 @@ public abstract class BaseUi implements UI { Resources res = mActivity.getResources(); mInputManager = (InputMethodManager) browser.getSystemService(Activity.INPUT_METHOD_SERVICE); - mLockIconSecure = res.getDrawable(R.drawable.ic_secure_dark); - mLockIconMixed = res.getDrawable(R.drawable.ic_secure_partial_dark); FrameLayout frameLayout = (FrameLayout) mActivity.getWindow() .getDecorView().findViewById(android.R.id.content); LayoutInflater.from(mActivity) @@ -139,9 +135,7 @@ public abstract class BaseUi implements UI { R.id.fullscreen_custom_content); mErrorConsoleContainer = (LinearLayout) frameLayout .findViewById(R.id.error_console); - setFullscreen(false); - mGenericFavicon = res.getDrawable( - R.drawable.app_web_browser_sm); + setImmersiveFullscreen(BrowserSettings.getInstance().useFullscreen()); mTitleBar = new TitleBar(mActivity, mUiController, this, mContentView); mTitleBar.setProgress(100); @@ -149,6 +143,8 @@ public abstract class BaseUi implements UI { mUrlBarAutoShowManager = new UrlBarAutoShowManager(this); } + + private void cancelStopToast() { if (mStopToast != null) { mStopToast.cancel(); @@ -223,8 +219,6 @@ public abstract class BaseUi implements UI { @Override public void onTabDataChanged(Tab tab) { setUrlTitle(tab); - setFavicon(tab); - updateLockIconToLatest(tab); updateNavigationState(tab); mTitleBar.onTabDataChanged(tab); mNavigationBar.onTabDataChanged(tab); @@ -603,31 +597,6 @@ public abstract class BaseUi implements UI { mTitleBar.updateAutoLogin(tab, animate); } - /** - * Update the lock icon to correspond to our latest state. - */ - protected void updateLockIconToLatest(Tab t) { - if (t != null && t.inForeground()) { - updateLockIconImage(t.getSecurityState()); - } - } - - /** - * Updates the lock-icon image in the title-bar. - */ - private void updateLockIconImage(SecurityState securityState) { - Drawable d = null; - if (securityState == SecurityState.SECURITY_STATE_SECURE) { - d = mLockIconSecure; - } else if (securityState == SecurityState.SECURITY_STATE_MIXED - || securityState == SecurityState.SECURITY_STATE_BAD_CERTIFICATE) { - // TODO: It would be good to have different icons for insecure vs mixed content. - // See http://b/5403800 - d = mLockIconMixed; - } - mNavigationBar.setLock(d); - } - protected void setUrlTitle(Tab tab) { String url = tab.getUrl(); String title = tab.getTitle(); @@ -639,14 +608,6 @@ public abstract class BaseUi implements UI { } } - // Set the favicon in the title bar. - protected void setFavicon(Tab tab) { - if (tab.inForeground()) { - Bitmap icon = tab.getFavicon(); - mNavigationBar.setFavicon(icon); - } - } - @Override public void onActionModeFinished(boolean inLoad) { } @@ -775,27 +736,19 @@ public abstract class BaseUi implements UI { } public void setFullscreen(boolean enabled) { - Window win = mActivity.getWindow(); - WindowManager.LayoutParams winParams = win.getAttributes(); - final int bits = WindowManager.LayoutParams.FLAG_FULLSCREEN; + FrameLayout decor = (FrameLayout) mActivity.getWindow().getDecorView(); + int systemUiVisibility = decor.getSystemUiVisibility(); + final int bits = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION + | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION + | View.SYSTEM_UI_FLAG_FULLSCREEN + | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY; if (enabled) { - winParams.flags |= bits; + systemUiVisibility |= bits; } else { - winParams.flags &= ~bits; - if (mCustomView != null) { - mCustomView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE); - } else { - mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE); - } + systemUiVisibility &= ~bits; } - win.setAttributes(winParams); - } - - public boolean isFullscreen() { - Window win = mActivity.getWindow(); - WindowManager.LayoutParams winParams = win.getAttributes(); - final int bits = WindowManager.LayoutParams.FLAG_FULLSCREEN; - return (winParams.flags & bits) == bits; + decor.setSystemUiVisibility(systemUiVisibility); } protected void setImmersiveFullscreen (boolean enabled) { @@ -814,22 +767,6 @@ public abstract class BaseUi implements UI { decor.setSystemUiVisibility(systemUiVisibility); } - public Drawable getFaviconDrawable(Bitmap icon) { - Drawable[] array = new Drawable[3]; - array[0] = new PaintDrawable(Color.BLACK); - PaintDrawable p = new PaintDrawable(Color.WHITE); - array[1] = p; - if (icon == null) { - array[2] = mGenericFavicon; - } else { - array[2] = new BitmapDrawable(icon); - } - LayerDrawable d = new LayerDrawable(array); - d.setLayerInset(1, 1, 1, 1, 1); - d.setLayerInset(2, 2, 2, 2, 2); - return d; - } - public boolean isLoading() { return mActiveTab != null ? mActiveTab.inPageLoad() : false; } diff --git a/src/com/android/browser/BreadCrumbView.java b/src/com/android/browser/BreadCrumbView.java index c8d0f2b..b6810d9 100644 --- a/src/com/android/browser/BreadCrumbView.java +++ b/src/com/android/browser/BreadCrumbView.java @@ -169,10 +169,10 @@ public class BreadCrumbView extends LinearLayout implements OnClickListener { private void addBackButton() { mBackButton = new ImageButton(mContext); - mBackButton.setImageResource(R.drawable.ic_back_hierarchy_dark); + mBackButton.setImageResource(R.drawable.ic_back_hierarchy); TypedValue outValue = new TypedValue(); getContext().getTheme().resolveAttribute( - android.R.attr.selectableItemBackground, outValue, true); + android.R.attr.selectableItemBackgroundBorderless, outValue, true); int resid = outValue.resourceId; mBackButton.setBackgroundResource(resid); mBackButton.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index 3a0c65a..a83c00b 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -309,7 +309,7 @@ public class BrowserBookmarksPage extends Fragment implements View.OnCreateConte if (isFolder) { item.setUrl(null); Bitmap bitmap = - BitmapFactory.decodeResource(getResources(), R.drawable.ic_folder_dark); + BitmapFactory.decodeResource(getResources(), R.drawable.ic_folder); item.setFavicon(bitmap); new LookupBookmarkCount(getActivity(), item) .execute(cursor.getLong(BookmarksLoader.COLUMN_INDEX_ID)); diff --git a/src/com/android/browser/BrowserPreferencesPage.java b/src/com/android/browser/BrowserPreferencesPage.java index 323b9b8..75cee06 100644 --- a/src/com/android/browser/BrowserPreferencesPage.java +++ b/src/com/android/browser/BrowserPreferencesPage.java @@ -27,7 +27,7 @@ import com.android.browser.preferences.AdvancedPreferencesFragment; import com.android.browser.preferences.BandwidthPreferencesFragment; import com.android.browser.preferences.DebugPreferencesFragment; import com.android.browser.preferences.GeneralPreferencesFragment; -import com.android.browser.preferences.LabPreferencesFragment; +import com.android.browser.preferences.InterfacePreferencesFragment; import com.android.browser.preferences.PrivacySecurityPreferencesFragment; import com.android.browser.preferences.WebsiteSettingsFragment; @@ -111,7 +111,7 @@ public class BrowserPreferencesPage extends PreferenceActivity { BandwidthPreferencesFragment.class.getName().equals(fragmentName) || DebugPreferencesFragment.class.getName().equals(fragmentName) || GeneralPreferencesFragment.class.getName().equals(fragmentName) || - LabPreferencesFragment.class.getName().equals(fragmentName) || + InterfacePreferencesFragment.class.getName().equals(fragmentName) || PrivacySecurityPreferencesFragment.class.getName().equals(fragmentName) || WebsiteSettingsFragment.class.getName().equals(fragmentName); diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 95b7706..e76fa5d 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -340,6 +340,10 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, syncManagedSettings(); if (PREF_SEARCH_ENGINE.equals(key)) { updateSearchEngine(false); + } else if (PREF_FULLSCREEN.equals(key)) { + if (mController != null && mController.getUi() != null) { + mController.getUi().setFullscreen(useFullscreen()); + } } else if (PREF_ENABLE_QUICK_CONTROLS.equals(key)) { if (mController != null && mController.getUi() != null) { mController.getUi().setUseQuickControls(sharedPreferences.getBoolean(key, false)); @@ -762,7 +766,7 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, } // ----------------------------- - // getter/setters for lab_preferences.xml + // getter/setters for interface.xml // ----------------------------- public boolean useQuickControls() { @@ -773,6 +777,10 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, return HomeProvider.MOST_VISITED.equals(getHomePage()); } + public boolean useFullscreen() { + return mPrefs.getBoolean(PREF_FULLSCREEN, false); + } + public boolean useInvertedRendering() { return mPrefs.getBoolean(PREF_INVERTED, false); } diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 8c77270..f006986 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -79,6 +79,8 @@ import android.webkit.WebChromeClient.FileChooserParams; import android.webkit.WebIconDatabase; import android.webkit.WebSettings; import android.webkit.WebView; +import android.widget.Button; +import android.widget.EditText; import android.widget.Toast; import com.android.browser.IntentHandler.UrlData; @@ -365,6 +367,7 @@ public class Controller && BrowserActivity.ACTION_SHOW_BOOKMARKS.equals(intent.getAction())) { bookmarksOrHistoryPicker(ComboViews.Bookmarks); } + } private static class PruneThumbnails implements Runnable { @@ -396,7 +399,6 @@ public class Controller cr.delete(Thumbnails.CONTENT_URI, where.toString(), null); } } - } @Override @@ -1586,9 +1588,6 @@ public class Controller final MenuItem uaSwitcher = menu.findItem(R.id.ua_desktop_menu_id); uaSwitcher.setChecked(isDesktopUa); - final MenuItem fullscreen = menu.findItem(R.id.fullscreen_menu_id); - fullscreen.setChecked(mUi.isFullscreen()); - menu.setGroupVisible(R.id.LIVE_MENU, isLive); menu.setGroupVisible(R.id.SNAPSHOT_MENU, !isLive); menu.setGroupVisible(R.id.COMBO_MENU, false); @@ -1652,7 +1651,7 @@ public class Controller case R.id.back_menu_id: getCurrentTab().goBack(); - break; + break; case R.id.forward_menu_id: getCurrentTab().goForward(); @@ -1716,9 +1715,6 @@ public class Controller toggleUserAgent(); break; - case R.id.fullscreen_menu_id: - toggleFullscreen(); - case R.id.window_one_menu_id: case R.id.window_two_menu_id: case R.id.window_three_menu_id: @@ -1756,11 +1752,6 @@ public class Controller } @Override - public void toggleFullscreen() { - mUi.setFullscreen(!mUi.isFullscreen()); - } - - @Override public void findOnPage() { getCurrentTopWebView().showFindDialog(null, true); } diff --git a/src/com/android/browser/NavScreen.java b/src/com/android/browser/NavScreen.java index f7b73df..887ffca 100644 --- a/src/com/android/browser/NavScreen.java +++ b/src/com/android/browser/NavScreen.java @@ -65,7 +65,6 @@ public class NavScreen extends RelativeLayout FrameLayout mHolder; TextView mTitle; - ImageView mFavicon; ImageButton mCloseTab; ImageView mNewTabFab; @@ -128,7 +127,6 @@ public class NavScreen extends RelativeLayout mNewTab = (ImageButton) findViewById(R.id.newtab); mMore = (ImageButton) findViewById(R.id.more); mBookmarks.setOnClickListener(this); - mHomeTab.setOnClickListener(this); mNewIncognitoTab.setOnClickListener(this); mNewTab.setOnClickListener(this); mMore.setOnClickListener(this); @@ -148,13 +146,19 @@ public class NavScreen extends RelativeLayout } }); mNewTabFab = (ImageView) findViewById(R.id.floating_action_button); - mNewTabFab.setOnClickListener( - new View.OnClickListener() { + mNewTabFab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { openNewTab(false); } }); + mNewTabFab.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View v) { + openNewTab(true); + return true; + } + }); } @Override @@ -223,14 +227,14 @@ public class NavScreen extends RelativeLayout } } - private Tab findCenteredTab(){ + private Tab findCenteredTab() { View v = mScroller.findViewAt(mScroller.getWidth() / 2, mScroller.getHeight() / 2); - if( v != null && v instanceof NavTabView ){ - Long tabId = ((NavTabView)v).getWebViewId(); - if( tabId != null ){ + if (v != null && v instanceof NavTabView) { + long tabId = ((NavTabView)v).getWebViewId(); + if (tabId != -1) { List tabs = mUiController.getTabs(); - for( int i=0; i 0 && tbar.getEmbeddedHeight() > 0) { - if (mTitleBarBitmap == null - || mTitleBarBitmap.getWidth() != tbar.getWidth() - || mTitleBarBitmap.getHeight() != tbar.getEmbeddedHeight()) { - mTitleBarBitmap = safeCreateBitmap(tbar.getWidth(), - tbar.getEmbeddedHeight()); - } - if (mTitleBarBitmap != null) { - Canvas c = new Canvas(mTitleBarBitmap); - tbar.draw(c); - c.setBitmap(null); - } - } else { - mTitleBarBitmap = null; - } - mTitle.setImageBitmap(mTitleBarBitmap); - mTitle.setVisibility(View.VISIBLE); - int h = web.getHeight() - tbar.getEmbeddedHeight(); + int h = web.getHeight(); if (mContentBitmap == null || mContentBitmap.getWidth() != web.getWidth() || mContentBitmap.getHeight() != h) { @@ -506,9 +479,7 @@ public class PhoneUi extends BaseUi { } if (mContentBitmap != null) { Canvas c = new Canvas(mContentBitmap); - int tx = web.getScrollX(); - int ty = web.getScrollY(); - c.translate(-tx, -ty - tbar.getEmbeddedHeight()); + c.translate(-web.getScrollX(), -web.getScrollY()); web.draw(c); c.setBitmap(null); } @@ -525,7 +496,6 @@ public class PhoneUi extends BaseUi { } public void set(Bitmap image) { - mTitle.setVisibility(View.GONE); mContent.setImageBitmap(image); } diff --git a/src/com/android/browser/PieControl.java b/src/com/android/browser/PieControl.java index 18c348e..c7cfa29 100644 --- a/src/com/android/browser/PieControl.java +++ b/src/com/android/browser/PieControl.java @@ -43,7 +43,24 @@ import java.util.ArrayList; import java.util.List; /** - * Controller for Quick Controls pie menu + * Controller for OneHand pie menu + * + * "Swype" actions: + * (0~45)° = Opened tabs (swype up) + * (45~90)° = Open Tab (swype middle-up) + * (90~135)° = Back (swype middle-down) + * (135-180)°= URLBar (swype down) + * + * |-Switch - OpenedTabs + * |-AddTab - Incognito + * | - Close + * | - Reload + * |-Back - Forward + * | - Home + * | - Share + * |-Url - History + * | - Desktop/Mobile + * | - Bookmarks */ public class PieControl implements PieMenu.PieController, OnClickListener { @@ -65,8 +82,6 @@ public class PieControl implements PieMenu.PieController, OnClickListener { private PieItem mIncognito; private PieItem mClose; private PieItem mShowTabs; - private PieItem mInfo; - private PieItem mFind; private PieItem mShare; private PieItem mRDS; private TabAdapter mTabAdapter; @@ -125,30 +140,28 @@ public class PieControl implements PieMenu.PieController, OnClickListener { if (mUiController.getSettings().hasDesktopUseragent(view)) { icon.setImageResource(R.drawable.ic_mobile); } else { - icon.setImageResource(R.drawable.ic_desktop_dark); + icon.setImageResource(R.drawable.ic_desktop); } } return true; } protected void populateMenu() { - mBack = makeItem(R.drawable.ic_back_dark, 1); - mUrl = makeItem(R.drawable.ic_web_dark, 1); - mBookmarks = makeItem(R.drawable.ic_bookmarks_dark, 1); - mHistory = makeItem(R.drawable.ic_history_dark, 1); - mAddBookmark = makeItem(R.drawable.ic_bookmark_on_dark, 1); - mRefresh = makeItem(R.drawable.ic_refresh_dark, 1); - mForward = makeItem(R.drawable.ic_forward_dark, 1); - mNewTab = makeItem(R.drawable.ic_new_window_dark, 1); - mIncognito = makeItem(R.drawable.ic_new_incognito_dark, 1); - mClose = makeItem(R.drawable.ic_close_window_dark, 1); - mInfo = makeItem(android.R.drawable.ic_menu_info_details, 1); - mFind = makeItem(R.drawable.ic_search_dark, 1); - mShare = makeItem(R.drawable.ic_share_dark, 1); + mBack = makeItem(R.drawable.ic_back, 1); + mUrl = makeItem(R.drawable.ic_web, 1); + mBookmarks = makeItem(R.drawable.ic_bookmarks, 1); + mHistory = makeItem(R.drawable.ic_history, 1); + mAddBookmark = makeItem(R.drawable.ic_bookmark_on, 1); + mRefresh = makeItem(R.drawable.ic_refresh, 1); + mForward = makeItem(R.drawable.ic_forward, 1); + mNewTab = makeItem(R.drawable.ic_new_window, 1); + mIncognito = makeItem(R.drawable.ic_incognito, 1); + mClose = makeItem(R.drawable.ic_close_window, 1); + mShare = makeItem(R.drawable.ic_share, 1); View tabs = makeTabsView(); mShowTabs = new PieItem(tabs, 1); - mOptions = makeItem(R.drawable.ic_settings_dark, 1); - mRDS = makeItem(R.drawable.ic_desktop_dark, 1); + mOptions = makeItem(R.drawable.ic_settings, 1); + mRDS = makeItem(R.drawable.ic_desktop, 1); mTabAdapter = new TabAdapter(mActivity, mUiController); PieStackView stack = new PieStackView(mActivity); stack.setLayoutListener(new OnLayoutListener() { @@ -160,43 +173,30 @@ public class PieControl implements PieMenu.PieController, OnClickListener { stack.setOnCurrentListener(mTabAdapter); stack.setAdapter(mTabAdapter); mShowTabs.setPieView(stack); - setClickListener(this, mBack, mRefresh, mForward, mUrl, mFind, mInfo, + setClickListener(this, mBack, mRefresh, mForward, mUrl, mShare, mBookmarks, mNewTab, mIncognito, mClose, mHistory, mAddBookmark, mOptions, mRDS); if (!BrowserActivity.isTablet(mActivity)) { mShowTabs.getView().setOnClickListener(this); } - // level 1 - mPie.addItem(mOptions); - mOptions.addItem(mRDS); - mOptions.addItem(makeFiller()); - mOptions.addItem(makeFiller()); - mOptions.addItem(makeFiller()); + // 0-45: up + mPie.addItem(mShowTabs); + // 45-90: middle-up + mPie.addItem(mNewTab); + mNewTab.addItem(mIncognito); + mNewTab.addItem(mClose); + mNewTab.addItem(mRefresh); + // 90-135: middle-down mPie.addItem(mBack); - mBack.addItem(mRefresh); - mBack.addItem(mForward); - mBack.addItem(makeFiller()); mBack.addItem(makeFiller()); + mBack.addItem(mForward); + mBack.addItem(mShare); + // 135-180: down mPie.addItem(mUrl); - mUrl.addItem(mFind); - mUrl.addItem(mShare); - mUrl.addItem(makeFiller()); - mUrl.addItem(makeFiller()); - mPie.addItem(mShowTabs); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { - mShowTabs.addItem(makeFiller()); - mShowTabs.addItem(mClose); - } else { - mShowTabs.addItem(mClose); - mShowTabs.addItem(mIncognito); - } - mShowTabs.addItem(mNewTab); - mShowTabs.addItem(makeFiller()); - mPie.addItem(mBookmarks); - mBookmarks.addItem(makeFiller()); - mBookmarks.addItem(makeFiller()); - mBookmarks.addItem(mAddBookmark); - mBookmarks.addItem(mHistory); + mUrl.addItem(mOptions); + mUrl.addItem(mRDS); + mUrl.addItem(mBookmarks); + mUrl.addItem(mHistory); } @Override @@ -233,10 +233,6 @@ public class PieControl implements PieMenu.PieController, OnClickListener { mUiController.openPreferences(); } else if (mShare.getView() == v) { mUiController.shareCurrentPage(); - } else if (mInfo.getView() == v) { - mUiController.showPageInfo(); - } else if (mFind.getView() == v) { - mUiController.findOnPage(); } else if (mRDS.getView() == v) { mUiController.toggleUserAgent(); } else if (mShowTabs.getView() == v) { @@ -267,12 +263,13 @@ public class PieControl implements PieMenu.PieController, OnClickListener { return new PieItem(null, 1); } + protected View makeTabsView() { View v = mActivity.getLayoutInflater().inflate(R.layout.qc_tabs_view, null); mTabsCount = (TextView) v.findViewById(R.id.label); mTabsCount.setText("1"); ImageView image = (ImageView) v.findViewById(R.id.icon); - image.setImageResource(R.drawable.ic_windows_dark); + image.setImageResource(R.drawable.ic_windows); image.setScaleType(ScaleType.CENTER); LayoutParams lp = new LayoutParams(mItemSize, mItemSize); v.setLayoutParams(lp); diff --git a/src/com/android/browser/PreferenceKeys.java b/src/com/android/browser/PreferenceKeys.java index 1828032..3bb2438 100644 --- a/src/com/android/browser/PreferenceKeys.java +++ b/src/com/android/browser/PreferenceKeys.java @@ -62,6 +62,7 @@ public interface PreferenceKeys { static final String PREF_AUTOFILL_PROFILE = "autofill_profile"; static final String PREF_HOMEPAGE = "homepage"; static final String PREF_SYNC_WITH_CHROME = "sync_with_chrome"; + static final String PREF_FULL_SCREEN = "full_screen"; // ---------------------- // Keys for hidden_debug_preferences.xml diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java index 9f66e3c..62fa0bc 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -161,7 +161,6 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, TextView tv2 = (TextView) view.findViewById(android.R.id.text2); ImageView ic1 = (ImageView) view.findViewById(R.id.icon1); View ic2 = view.findViewById(R.id.icon2); - View div = view.findViewById(R.id.divider); tv1.setText(Html.fromHtml(item.title)); if (TextUtils.isEmpty(item.url)) { tv2.setVisibility(View.GONE); @@ -195,7 +194,6 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, ic2.setVisibility(((TYPE_SUGGEST == item.type) || (TYPE_SEARCH == item.type)) ? View.VISIBLE : View.GONE); - div.setVisibility(ic2.getVisibility()); ic2.setOnClickListener(this); view.findViewById(R.id.suggestion).setOnClickListener(this); } diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java index d6c02f9..c8e068a 100644 --- a/src/com/android/browser/TabBar.java +++ b/src/com/android/browser/TabBar.java @@ -95,7 +95,7 @@ public class TabBar extends LinearLayout implements OnClickListener { Resources res = activity.getResources(); mTabWidth = (int) res.getDimension(R.dimen.tab_width); mActiveDrawable = res.getDrawable(R.drawable.bg_urlbar); - mInactiveDrawable = res.getDrawable(R.drawable.browsertab_inactive); + mInactiveDrawable = res.getDrawable(R.color.primary); mTabMap = new HashMap(); LayoutInflater factory = LayoutInflater.from(activity); @@ -244,7 +244,6 @@ public class TabBar extends LinearLayout implements OnClickListener { Tab mTab; View mTabContent; TextView mTitle; - View mIncognito; View mSnapshot; ImageView mIconView; ImageView mLock; @@ -274,7 +273,6 @@ public class TabBar extends LinearLayout implements OnClickListener { mLock = (ImageView) mTabContent.findViewById(R.id.lock); mClose = (ImageView) mTabContent.findViewById(R.id.close); mClose.setOnClickListener(this); - mIncognito = mTabContent.findViewById(R.id.incognito); mSnapshot = mTabContent.findViewById(R.id.snapshot); mSelected = false; // update the status @@ -294,16 +292,10 @@ public class TabBar extends LinearLayout implements OnClickListener { displayTitle = mTab.getUrl(); } setDisplayTitle(displayTitle); - if (mTab.getFavicon() != null) { - setFavicon(mUi.getFaviconDrawable(mTab.getFavicon())); - } updateTabIcons(); } private void updateTabIcons() { - mIncognito.setVisibility( - mTab.isPrivateBrowsingEnabled() ? - View.VISIBLE : View.GONE); mSnapshot.setVisibility(mTab.isSnapshot() ? View.VISIBLE : View.GONE); } @@ -333,10 +325,6 @@ public class TabBar extends LinearLayout implements OnClickListener { mTitle.setText(title); } - void setFavicon(Drawable d) { - mIconView.setImageDrawable(d); - } - void setLock(Drawable d) { if (null == d) { mLock.setVisibility(View.GONE); @@ -491,13 +479,6 @@ public class TabBar extends LinearLayout implements OnClickListener { mTabs.setSelectedTab(mTabControl.getTabPosition(tab)); } - public void onFavicon(Tab tab, Bitmap favicon) { - TabView tv = mTabMap.get(tab); - if (tv != null) { - tv.setFavicon(mUi.getFaviconDrawable(favicon)); - } - } - public void onNewTab(Tab tab) { TabView tv = buildTabView(tab); animateTabIn(tab, tv); diff --git a/src/com/android/browser/UI.java b/src/com/android/browser/UI.java index d9bb3bc..677c3d3 100644 --- a/src/com/android/browser/UI.java +++ b/src/com/android/browser/UI.java @@ -142,8 +142,6 @@ public interface UI { void setFullscreen(boolean enabled); - boolean isFullscreen(); - void setUseQuickControls(boolean enabled); public boolean shouldCaptureThumbnails(); diff --git a/src/com/android/browser/UiController.java b/src/com/android/browser/UiController.java index 643fb40..f00f1a2 100644 --- a/src/com/android/browser/UiController.java +++ b/src/com/android/browser/UiController.java @@ -105,8 +105,6 @@ public interface UiController { void toggleUserAgent(); - void toggleFullscreen(); - BrowserSettings getSettings(); boolean supportsVoice(); diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java index 0d9b00e..f031c8c 100644 --- a/src/com/android/browser/XLargeUi.java +++ b/src/com/android/browser/XLargeUi.java @@ -152,7 +152,6 @@ public class XLargeUi extends BaseUi { return; } mTabBar.onSetActiveTab(tab); - updateLockIconToLatest(tab); mTitleBar.setSkipTitleBarAnimations(false); } @@ -224,13 +223,6 @@ public class XLargeUi extends BaseUi { mTabBar.onUrlAndTitle(tab, tab.getUrl(), tab.getTitle()); } - // Set the favicon in the title bar. - @Override - public void setFavicon(Tab tab) { - super.setFavicon(tab); - mTabBar.onFavicon(tab, tab.getFavicon()); - } - @Override public void onHideCustomView() { super.onHideCustomView(); @@ -274,30 +266,4 @@ public class XLargeUi extends BaseUi { return mUseQuickControls; } - private Drawable getFaviconBackground() { - if (mFaviconBackground == null) { - mFaviconBackground = new PaintDrawable(); - Resources res = mActivity.getResources(); - mFaviconBackground.getPaint().setColor( - res.getColor(R.color.tabFaviconBackground)); - mFaviconBackground.setCornerRadius( - res.getDimension(R.dimen.tab_favicon_corner_radius)); - } - return mFaviconBackground; - } - - @Override - public Drawable getFaviconDrawable(Bitmap icon) { - Drawable[] array = new Drawable[2]; - array[0] = getFaviconBackground(); - if (icon == null) { - array[1] = mGenericFavicon; - } else { - array[1] = new BitmapDrawable(mActivity.getResources(), icon); - } - LayerDrawable d = new LayerDrawable(array); - d.setLayerInset(1, 2, 2, 2, 2); - return d; - } - } diff --git a/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java b/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java index 1cad1dd..4ae417b 100644 --- a/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java +++ b/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java @@ -69,17 +69,17 @@ public class FolderSpinnerAdapter extends BaseAdapter { switch (position) { case HOME_SCREEN: labelResource = R.string.add_to_homescreen_menu_option; - drawableResource = R.drawable.ic_home_dark; + drawableResource = R.drawable.ic_home; break; case ROOT_FOLDER: labelResource = R.string.add_to_bookmarks_menu_option; - drawableResource = R.drawable.ic_bookmarks_dark; + drawableResource = R.drawable.ic_bookmarks; break; case RECENT_FOLDER: // Fall through and use the same icon resource case OTHER_FOLDER: labelResource = R.string.add_to_other_folder_menu_option; - drawableResource = R.drawable.ic_folder_dark; + drawableResource = R.drawable.ic_folder; break; default: labelResource = 0; diff --git a/src/com/android/browser/preferences/GeneralPreferencesFragment.java b/src/com/android/browser/preferences/GeneralPreferencesFragment.java index 26fb05f..2e1fdb4 100644 --- a/src/com/android/browser/preferences/GeneralPreferencesFragment.java +++ b/src/com/android/browser/preferences/GeneralPreferencesFragment.java @@ -17,6 +17,8 @@ package com.android.browser.preferences; import android.app.AlertDialog; +import android.app.Dialog; +import android.app.DialogFragment; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.res.Resources; diff --git a/src/com/android/browser/preferences/InterfacePreferencesFragment.java b/src/com/android/browser/preferences/InterfacePreferencesFragment.java new file mode 100644 index 0000000..474f03a --- /dev/null +++ b/src/com/android/browser/preferences/InterfacePreferencesFragment.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2015 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License + */ + +package com.android.browser.preferences; + +import android.os.Bundle; +import android.preference.Preference; +import android.preference.PreferenceFragment; + +import com.android.browser.BrowserSettings; +import com.android.browser.PreferenceKeys; +import com.android.browser.R; +import com.android.browser.search.SearchEngine; + +public class InterfacePreferencesFragment extends PreferenceFragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + // Load the XML preferences file + addPreferencesFromResource(R.xml.interface_preferences); + } +} diff --git a/src/com/android/browser/preferences/LabPreferencesFragment.java b/src/com/android/browser/preferences/LabPreferencesFragment.java deleted file mode 100644 index 222b5fa..0000000 --- a/src/com/android/browser/preferences/LabPreferencesFragment.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2010 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -package com.android.browser.preferences; - -import android.os.Bundle; -import android.preference.Preference; -import android.preference.PreferenceFragment; - -import com.android.browser.BrowserSettings; -import com.android.browser.PreferenceKeys; -import com.android.browser.R; -import com.android.browser.search.SearchEngine; - -public class LabPreferencesFragment extends PreferenceFragment { - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - // Load the XML preferences file - addPreferencesFromResource(R.xml.lab_preferences); - } -} diff --git a/src/com/android/browser/preferences/WebsiteSettingsFragment.java b/src/com/android/browser/preferences/WebsiteSettingsFragment.java index be38f3e..d1a3cc8 100644 --- a/src/com/android/browser/preferences/WebsiteSettingsFragment.java +++ b/src/com/android/browser/preferences/WebsiteSettingsFragment.java @@ -219,9 +219,9 @@ public class WebsiteSettingsFragment extends ListFragment implements OnClickList mUsageHighIcon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_list_data_large); mLocationAllowedIcon = BitmapFactory.decodeResource(getResources(), - R.drawable.ic_gps_on_dark); + R.drawable.ic_gps_on); mLocationDisallowedIcon = BitmapFactory.decodeResource(getResources(), - R.drawable.ic_gps_denied_dark); + R.drawable.ic_gps_denied); mCurrentSite = site; if (mCurrentSite == null) { askForOrigins(); diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index e791a98..44fd8e9 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -129,8 +129,8 @@ public class BrowserProvider2 extends SQLiteContentProvider { qualifyColumn(TABLE_HISTORY, History.URL), bookmarkOrHistoryColumn(Combined.TITLE), bookmarkOrHistoryLiteral(Combined.URL, - Integer.toString(R.drawable.ic_bookmark_off_dark), - Integer.toString(R.drawable.ic_history_dark)), + Integer.toString(R.drawable.ic_bookmark_off), + Integer.toString(R.drawable.ic_history)), qualifyColumn(TABLE_HISTORY, History.DATE_LAST_VISITED)}; private static final String SUGGEST_SELECTION = diff --git a/src/com/android/browser/view/PieMenu.java b/src/com/android/browser/view/PieMenu.java index 1699c27..cb8f9da 100644 --- a/src/com/android/browser/view/PieMenu.java +++ b/src/com/android/browser/view/PieMenu.java @@ -45,7 +45,7 @@ import java.util.List; public class PieMenu extends FrameLayout { private static final int MAX_LEVELS = 5; - private static final long ANIMATION = 80; + private static final long ANIMATION = 40; public interface PieController { /** diff --git a/src/com/android/browser/view/StopProgressView.java b/src/com/android/browser/view/StopProgressView.java index 5da3e15..05d86b4 100644 --- a/src/com/android/browser/view/StopProgressView.java +++ b/src/com/android/browser/view/StopProgressView.java @@ -58,7 +58,7 @@ public class StopProgressView extends ProgressBar { private void init(AttributeSet attrs) { mProgressDrawable = getIndeterminateDrawable(); setImageDrawable(mContext.getResources() - .getDrawable(R.drawable.ic_stop_dark)); + .getDrawable(R.drawable.ic_stop)); } public void hideProgress() { diff --git a/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java b/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java index 3c40645..8168c3b 100644 --- a/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java +++ b/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java @@ -246,8 +246,6 @@ public class BookmarkThumbnailWidgetService extends RemoteViewsService { } else { views.setImageViewResource(R.id.thumb, R.drawable.thumb_bookmark_widget_folder_holo); } - views.setImageViewResource(R.id.favicon, R.drawable.ic_bookmark_widget_bookmark_dark); - views.setDrawableParameters(R.id.thumb, true, 0, -1, null, -1); } else { // RemoteViews require a valid bitmap config Options options = new Options(); -- cgit v1.1